:root {
    --primary: #857064;       /* Taupe / Brun doux */
    --primary-light: #E8E2DD; /* Lin très clair */
    --accent: #6A7B62;        /* Vert sauge */
    --bg-white: #FCFBF9;      /* Blanc cassé très doux */
    --bg-alt: #E3D9D0;        /* Beige-taupe légèrement plus foncé et chaleureux */
    --text-dark: #362E2A;     /* Brun très foncé */
    --text-muted: #736760;    /* Taupe moyen */
    --surface-card: #FFFFFF;  /* Blanc pur */
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* =======================================================
   🌍 1. SITE VITRINE (ACCUEIL)
======================================================= */

/* ---- HEADER / NAVIGATION ---- */
header {
    background-color: var(--bg-white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 10px rgba(54, 46, 42, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none !important;
    color: inherit !important;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-cta-nav {
    background-color: var(--accent);
    color: white !important;
    padding: 10px 22px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(106, 123, 98, 0.25);
	text-decoration: none;
}

.btn-cta-nav:hover {
    background-color: #5D6B56;
}

.mot-footer { padding: 40px 20px; text-align: center; background: #38302c; font-size: 0.9rem; color: #c4bdaf; }

/* ---- MENU MOBILE (Hamburger) ---- */
.menu-toggle {
    display: none; 
    background-color: var(--primary); 
    color: white;
    border: none;
    font-size: 1.8rem;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background-color: #6d5b51;
}

/* ---- HERO SECTION ---- */
.hero {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10rem;
    background: linear-gradient(135deg, #e3d9d04f, #e3d9d0);
    border-radius: 50%;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(54, 46, 42, 0.05);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ---- SERVICES SECTION ---- */
.services {
    background-color: var(--bg-alt);
    padding: 80px 40px;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

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

.service-card {
    background-color: var(--surface-card);
    padding: 30px;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #E6DED8; 
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(54, 46, 42, 0.06);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---- CESU & ADVANTAGES ---- */
.advantages {
    background-color: var(--bg-white);
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.advantages-graphics {
    background: linear-gradient(135deg, var(--surface-card), var(--primary-light));
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(54, 46, 42, 0.05);
    border: 1px solid #E6DED8;
}

.big-badge {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.advantages-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.advantages-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li::before {
    content: '✨';
    color: var(--primary);
}

/* ---- ZONE D'INTERVENTION ---- */
.intervention-zone {
    background-color: var(--bg-alt);
    padding: 80px 40px;
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface-card);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(54, 46, 42, 0.05);
    border: 1px solid #E6DED8;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: calc(var(--radius) - 8px);
    z-index: 1;
}

/* ---- SECTION ESPACE CLIENT (Vitrine) ---- */
.client-portal-intro {
    background-color: var(--bg-white);
    padding: 80px 40px;
}

.portal-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.portal-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.portal-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.portal-graphic {
    display: flex;
    justify-content: center;
}

.portal-mockup {
    width: 260px;
    height: 360px;
    background: white;
    border-radius: 30px;
    border: 8px solid #362E2A;
    position: relative;
    box-shadow: 0 20px 40px rgba(54, 46, 42, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 40px;
    background: var(--bg-alt);
    border-bottom: 1px solid #E6DED8;
}

.mockup-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mockup-line {
    height: 10px;
    background: #F0EBE5;
    border-radius: 5px;
    width: 100%;
}

.mockup-line.short { width: 60%; }

.mockup-box {
    margin-top: 20px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 900;
    font-size: 1.5rem;
}

/* ---- CONTACT SECTION ---- */
.contact {
    background-color: var(--bg-alt);
    padding: 60px 40px;
    text-align: center;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    background: var(--surface-card);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(54, 46, 42, 0.05);
    color: var(--text-dark);
    transition: transform 0.2s;
    border: 1px solid #E6DED8;
}

.contact-item:hover {
    transform: translateY(-2px);
}

/* ---- FOOTER ---- */
footer {
    background-color: #38302C; 
    color: #C4BDB8;
    padding: 40px;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 15px;
}

.footer-link { 
    color: inherit; 
    text-decoration: underline; 
}

.btn-private-access {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #A39993;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    transition: all 0.2s;
}

.btn-private-access:hover {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}


/* =======================================================
   🔑 2. ESPACE CLIENT PRIVÉ (CLIENT.PHP)
======================================================= */

.client-login-wrapper {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-alt);
    padding: 20px;
}

.client-login-card {
    background: var(--surface-card);
    padding: 50px 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(54, 46, 42, 0.05);
    text-align: center;
    max-width: 450px;
    width: 100%;
    border: 1px solid #E6DED8;
}

.client-login-card h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
}

.login-subtitle {
    color: var(--text-muted); 
    margin-bottom: 20px;
}

.client-login-card input[type="password"] {
    width: 100%;
    padding: 14px 20px;
    margin: 25px 0;
    border: 1px solid #DCD3CB;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.2s;
    background-color: var(--bg-white);
}

.client-login-card input[type="password"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(133, 112, 100, 0.1);
}

.login-error { 
    color: #BA5010; 
    font-weight: bold; 
    margin-bottom: 15px; 
}

.btn-login-submit { 
    width: 100%; 
    border: none; 
    font-size: 1.05rem; 
    cursor: pointer; 
}

.btn-logout {
    background-color: var(--text-muted) !important;
}

/* --- EN-TÊTE CLIENT --- */
.tuto-header {
    background-color: var(--bg-white);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #E6DED8;
}

.tuto-main-title { 
    font-size: 2.2rem; 
    color: var(--text-dark); 
    margin: 10px 0; 
}

.tuto-container {
    max-width: 900px;
    margin: 30px auto 50px auto;
    padding: 0 20px;
}

.error-banner { 
    background: #FDF2EE; 
    color: #BA5010; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    text-align: center; 
    font-weight: bold; 
}

/* --- ONGLETS CLIENTS --- */
.client-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px auto 40px auto;
    max-width: 840px;
    background: transparent;
    border: none;
    padding: 0;
}

.c-tab-btn {
    flex: 1;
    background: var(--surface-card);
    border: 2px solid #E6DED8;
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 800;
    padding: 16px 20px;
    border-radius: 40px; 
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(54, 46, 42, 0.04);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.c-tab-btn:hover {
    background: #F7F2ED;
    border-color: #DCD3CB;
    color: var(--text-dark);
}

.c-tab-btn.active {
    background: var(--primary); 
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(133, 112, 100, 0.18);
}

/* --- ACTUALITÉS & TUTORIELS --- */
.actu-card {
    background: var(--surface-card);
    border-radius: var(--radius);
    padding: 35px 40px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(106, 123, 98, 0.08); 
    border: 1px solid #E6DED8;
    border-left: 6px solid var(--accent); 
}

.actu-card h2 {
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 40px;
}

.actu-card p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.6;
}

.bbcode-link {
    color: var(--accent);
    font-weight: 800;
    text-decoration: underline;
}

.tuto-card {
    background: var(--surface-card);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(54, 46, 42, 0.03);
    border: 1px solid #E6DED8;
    position: relative;
    overflow: hidden;
}

.tuto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--primary);
}

.tuto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.tuto-step:last-child {
    margin-bottom: 0;
}

.tuto-step-number {
    background: var(--primary-light);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tuto-step-content {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    border: 1px solid #E6DED8;
}

.tuto-step-content h4 {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.tuto-step-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* --- ZONE DE RÉDACTION NEWSLETTER CLIENT --- */
.edit-zone-card {
    background: #FFF;
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.edit-zone-card h3 {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.edit-zone-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    margin-top: 10px;
    text-align: left;
}

.actu-title-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #DCD3CB;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    background-color: var(--bg-white);
    text-align: left; 
    letter-spacing: 0;
}

.actu-textarea {
    width: 100%; 
    min-height: 180px; 
    padding: 12px; 
    border-radius: 0 0 8px 8px; 
    border: 1px solid #DCD3CB; 
    border-top: none;
}

.actu-textarea:focus, .actu-title-input:focus {
    border-color: var(--primary);
    outline: none;
}

.edit-zone-actions {
    display: flex; 
    gap: 10px; 
    margin-top: 15px;
}

.btn-save-actu {
    flex: 2; 
    border: none; 
    cursor: pointer;
}

.btn-delete-actu {
    flex: 1; 
    background-color: #dc3545 !important; 
    text-align: center; 
    text-decoration: none;
}

/* Outils d'édition texte */
.bbcode-toolbar {
    display: flex;
    gap: 6px;
    background: #E8E2DD; 
    padding: 8px;
    border-radius: 8px 8px 0 0; 
    border: 1px solid #DCD3CB;
    flex-wrap: wrap; 
    align-items: center;
}

.bb-btn {
    background: #FFFFFF;
    border: 1px solid #DCD3CB;
    color: var(--text-dark);
    padding: 6px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    min-width: 35px;
    transition: all 0.2s ease;
}

.bb-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.bb-btn-link {
    color: var(--accent);
    border-color: #BCC8B7;
}

.bb-select {
    background: #FFFFFF;
    border: 1px solid #DCD3CB;
    color: var(--text-dark);
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    height: 31px;
}

.bb-select:hover {
    border-color: var(--primary);
}

/* --- BOITE D'ACCÈS EDITION --- */
.admin-access-container { 
    text-align: center; 
    margin-top: 40px; 
}

.edit-auth-box { 
    max-width: 300px; 
    margin: 15px auto; 
    background: #FFF; 
    padding: 15px; 
    border-radius: 12px; 
    border: 1px solid #E6DED8; 
}

.edit-auth-input { 
    width: 100%; 
    padding: 8px; 
    text-align: center; 
    margin-bottom: 10px; 
    border-radius: 20px; 
    border: 1px solid #DCD3CB; 
}

.btn-auth-submit { 
    width: 100%; 
    padding: 8px; 
    border: none; 
    font-size: 0.9rem; 
    cursor: pointer; 
}

.tuto-footer-help { 
    text-align: center; 
    margin-top: 40px; 
    border-top: 1px solid #E6DED8; 
    padding-top: 40px; 
}

.help-text { 
    color: var(--text-muted); 
    margin-bottom: 15px; 
    font-weight: 600; 
}

.btn-tuto-link { 
    padding: 18px 40px; 
    font-size: 1.2rem; 
    border-radius: 40px; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    background-color: var(--primary) !important; 
}

/* --- ONGLET MES HEURES CLIENT --- */
.heures-title { 
    color: var(--primary); 
    margin-bottom: 25px; 
    font-size: 1.5rem; 
    text-align: center; 
}

.c-dashboard { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.c-stat-card { 
    background: var(--surface-card); 
    padding: 20px; 
    border-radius: var(--radius); 
    text-align: center; 
    border: 1px solid #E6DED8; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
}

.c-bubble-orange { border-top: 4px solid #BA5010; }
.c-bubble-green { border-top: 4px solid #586B52; }

.c-stat-label { 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: var(--text-muted); 
    text-transform: uppercase; 
}

.c-stat-amount { 
    font-size: 1.1rem; 
    font-weight: 800; 
    margin-top: 5px; 
}

.c-stat-amount.orange { color: #BA5010; }
.c-stat-amount.green { color: #586B52; }

.c-stat-card strong { 
    font-size: 1.6rem; 
    display: block; 
    margin-top: 8px; 
    font-weight: 900; 
}

.c-bubble-orange strong { color: #BA5010; }
.c-bubble-green strong { color: #586B52; }

.heures-subtitle { 
    margin: 40px 0 15px 0; 
    font-size: 1.2rem; 
    color: var(--text-dark); 
}

.empty-interventions { 
    text-align: center; 
    color: var(--text-muted); 
    font-style: italic; 
}

.interventions-list { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.c-item-card { 
    background: var(--surface-card); 
    padding: 15px 20px; 
    border-radius: var(--radius); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border: 1px solid #E6DED8; 
    margin-bottom: 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); 
}

/* NOUVEAU : C'est pour les retards clients */
.late-payment-card {
    background-color: #FFF5F5 !important;
    border-color: #FFD6D6 !important;
}

.c-item-info h3 { 
    font-size: 1.15rem; 
    color: var(--primary); 
    margin-bottom: 4px; 
    font-weight: 800;
}

.c-item-info p { 
    color: var(--text-muted); 
    font-size: 1rem; 
}

.status-badge { 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: bold; 
    border: 1px solid; 
}

.status-paid { 
    background: #EAF4EA; 
    color: #4B6E4B; 
    border-color: #C3DFC3; 
}

.status-pending { 
    background: #FDF2EE; 
    color: #BA5010; 
    border-color: #FADED5; 
}

/* --- CALENDRIER DISPONIBILITÉS (OPTIMISÉ) --- */
.flatpickr-calendar.inline {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(54, 46, 42, 0.08) !important;
    border: 1px solid #DCD3CB !important;
    border-radius: 16px !important;
    padding: 15px !important;
    font-family: inherit !important;
    background-color: var(--surface-card) !important;
}

/* Mois et Année (En-tête) */
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
    color: var(--text-dark) !important;
    font-weight: 900 !important;
    font-size: 1.2rem !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: transparent !important;
}

/* Flèches de navigation (Mois suivant/précédent) */
.flatpickr-prev-month svg, .flatpickr-next-month svg {
    fill: var(--primary) !important;
}
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg {
    fill: var(--text-dark) !important;
}

/* Jours de la semaine (Lun, Mar...) */
span.flatpickr-weekday {
    color: var(--primary) !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
}

/* Les jours du mois (Chiffres de base) */
.flatpickr-day {
    color: var(--text-dark) !important;
    font-weight: 700;
    border-radius: 8px !important; /* Petits carrés arrondis au lieu de cercles */
}

/* Les jours désactivés (Sans créneaux / Passé) */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #A39993 !important; /* Gris-taupe bien plus lisible que le gris clair par défaut */
    opacity: 0.7;
}

/* Jours libres (Avec créneau dispo) */
.day-free { 
    background-color: #EAF4EA !important; 
    border-color: #C3DFC3 !important; 
    color: #4B6E4B !important; 
    font-weight: 900 !important; 
}

/* Animation au survol d'un jour disponible */
.day-free:hover {
    background-color: #DDF0DD !important;
    transform: scale(1.05);
    transition: all 0.2s;
}

/* Jours planifiés (Planning - À venir) */
.day-planned { 
    background-color: #E8E2DD !important; 
    border-color: #DCD3CB !important; 
    color: #857064 !important; 
    font-weight: 900 !important; 
}

/* Jours planifiés (Planning - À venir) */
.day-planned { 
    background-color: #E8E2DD !important; 
    border-color: #DCD3CB !important; 
    color: #857064 !important; 
    font-weight: 900 !important; 
}

/* Jours planifiés (Planning - Passé) */
.day-planned-past { 
    background-color: #F2EFED !important; 
    border-color: #E6DED8 !important; 
    color: #A39993 !important; 
    font-weight: 700 !important; 
}

.day-planned:hover, .day-planned-past:hover {
    transform: scale(1.05);
    transition: all 0.2s;
    opacity: 0.9;
}


/* =======================================================
   📱 3. RESPONSIVE DESIGN (MOBILES & TABLETTES)
======================================================= */

@media (max-width: 768px) {
    header { 
        padding: 15px 20px; 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        position: relative; 
    }

    .menu-toggle {
        display: block; 
    }

    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface-card);
        flex-direction: column;
        padding: 20px 0; 
        box-shadow: 0 10px 15px rgba(54, 46, 42, 0.1);
        border-top: 1px solid #E6DED8;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: inline-block;
        font-size: 1.15rem;
        padding: 10px 20px;
    }

    .hero { grid-template-columns: 1fr; padding: 40px 20px; text-align: center; }
    .hero-illustration { width: 220px; height: 220px; font-size: 7rem; margin-top: 20px; }
    
    .advantages { grid-template-columns: 1fr; padding: 40px 20px; }
    .services, .intervention-zone { padding: 40px 20px; }
    #map { height: 300px; }
    
    .portal-container { grid-template-columns: 1fr; text-align: left; }
    .portal-graphic { order: -1; margin-bottom: 30px; }
}

@media (max-width: 600px) {
    .client-tabs { flex-direction: column; gap: 10px; max-width: 100%; margin-bottom: 28px; }
    .c-tab-btn { width: 100%; font-size: 1rem; padding: 13px 16px; white-space: nowrap; }
    .c-dashboard { grid-template-columns: 1fr; }
    .c-item-card { flex-direction: column; align-items: stretch; gap: 15px; }
    .c-item-card div:last-child { text-align: right; }
}
/* ---- Espace client : onglet factures V2 ---- */
.client-invoice-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.client-invoice-card {
    background: var(--surface-card);
    border: 1px solid #E1D7CF;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    box-shadow: 0 8px 22px rgba(54, 46, 42, 0.06);
}
.client-invoice-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.client-invoice-head h3 {
    color: var(--primary);
    font-size: 1.05rem;
    margin: 0;
}
.client-invoice-main p {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 0;
}
.client-invoice-badge {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .76rem;
    font-weight: 900;
}
.client-invoice-badge.paid {
    background: #EAF4EA;
    color: #4B6E4B;
    border: 1px solid #C3DFC3;
}
.client-invoice-badge.issued {
    background: #FDF2EE;
    color: #BA5010;
    border: 1px solid #FADED5;
}
.client-invoice-badge.cancelled {
    background: #FFF5F5;
    color: #9b1c1c;
    border: 1px solid #FFD6D6;
}
.client-invoice-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    white-space: nowrap;
}
.client-invoice-side strong {
    color: var(--primary);
    font-size: 1.2rem;
}
.client-invoice-link {
    color: white !important;
    background: var(--primary);
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    font-size: .85rem;
}
.client-invoice-empty {
    background: var(--surface-card);
    border: 1px dashed #D6C9BF;
    border-radius: 18px;
    padding: 26px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 800;
}
.client-invoice-note {
    margin-top: 8px !important;
    background: #FFF5F5;
    border-left: 4px solid #FFD6D6;
    border-radius: 10px;
    padding: 8px 10px;
}
.client-invoice-cancelled {
    opacity: .82;
}

@media (max-width: 600px) {
    .client-invoice-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .client-invoice-side {
        align-items: stretch;
        text-align: left;
        white-space: normal;
    }
    .client-invoice-link {
        display: block;
        text-align: center;
    }
}

/* ---- Espace client : boutons sans animation, hover couleur uniquement ---- */
.client-login-card .btn-cta-nav,
.tuto-container .btn-cta-nav,
.client-invoice-link {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}
.client-login-card .btn-cta-nav:hover,
.client-login-card .btn-cta-nav:active,
.tuto-container .btn-cta-nav:hover,
.tuto-container .btn-cta-nav:active,
.client-invoice-link:hover,
.client-invoice-link:active {
    transform: none !important;
}
.client-invoice-link:hover,
.client-login-card .btn-cta-nav:hover,
.tuto-container .btn-cta-nav:hover {
    background: #6d5b51 !important;
    color: #fff !important;
}
@media (max-width: 480px) {
    .tuto-container { padding: 0 12px; }
    .client-tabs { gap: 8px; }
    .c-tab-btn { font-size: .95rem; padding: 12px 10px; }
    .client-invoice-card { padding: 14px; }
}
