/* === DESIGN SYSTEM OneClim === */

:root {
    --primary: #4dabf7;
    --primary-dark: #339af0;
    --accent: #ffd43b;
    --accent-dark: #fcc419;
    --bg-dark: #0a1929;
    /* Matches header exactly */
    --bg-gradient: linear-gradient(135deg, #0a1929 0%, #1a2332 50%, #0d1b2a 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(77, 171, 247, 0.2);
    --text-main: #e0e7ff;
    --text-muted: #b8c5d6;
    --danger: #ff6b6b;
    --success: #51cf66;
    --radius-pill: 50rem;
    --radius-lg: 24px;
    --radius-md: 12px;
}

::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
    opacity: 1;
    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: rgba(255, 255, 255, 0.45) !important;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: rgba(255, 255, 255, 0.45) !important;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient) fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

/* --- Global Utilities --- */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
}

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* --- Buttons (GLOBAL PILL SHAPE) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.2rem;
    font-weight: 700;
    border-radius: 50rem !important;
    /* Force pill shape everywhere */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    text-transform: none;
    font-size: 0.95rem;
}

/* All functional buttons should be pill & theme colored */
.btn-cta,
.btn-primary,
.btn-submit,
.btn-warning,
.btn-next-step:not(:disabled) {
    background: var(--accent) !important;
    color: #000 !important;
    border-radius: var(--radius-pill) !important;
}

.btn-cta:hover,
.btn-primary:hover,
.btn-submit:hover:not(:disabled),
.btn-warning:hover,
.btn-next-step:not(:disabled):hover {
    background: var(--accent-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 212, 59, 0.4);
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
    color: #000;
}

#btn-edit-mode,
#btn-cancel-edit {
    transition: all 0.3s ease;
}

#btn-edit-mode:hover,
#btn-cancel-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

#btn-cancel-edit:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}


.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    background: rgba(77, 171, 247, 0.05);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 0.4rem 1.2rem !important;
    font-size: 0.85rem !important;
}

/* Espacement vertical entre les créneaux */
.slots-container.d-flex.flex-column {
    gap: 15px !important;
    /* Plus d'espace que gap-2 (8px) */
}

/* --- Agenda Styles --- */
.day-column {
    flex: 0 0 auto;
    /* Ne pas rétrécir, ne pas grandir indéfiniment en mode scroll */
    width: 100%;
    /* base */
}

/* Responsive adjustment for column widths to trigger scroll */
@media (min-width: 993px) {
    .day-column {
        min-width: 180px;
        /* Sur PC/Tablette: largeur min confortable */
        flex: 1;
        /* Essaie de prendre la place si y'en a */
    }

    /* Si l'écran est trop petit pour afficher 7 * 180px = 1260px, la scrollbar apparaitra */
}

/* Ensure padding inside slots scales down on small screens */
.slot-item {
    padding: 2px !important;
}

/* Responsive Font Sizes for Agenda */
@media (max-width: 768px) {
    .d-day {
        font-size: 0.9rem;
    }

    .d-date {
        font-size: 0.75rem;
    }

    .slot-item strong {
        font-size: 0.8rem;
    }

    .slot-item small {
        font-size: 0.6rem !important;
    }
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control,
.form-select,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: 0.3s;
}

/* Prefilled / Readonly inputs: Light Grey text for readability */
.form-control:read-only,
.form-control:disabled {
    color: #b0b0b0 !important;
    /* Gris plus clair */
    background: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(77, 171, 247, 0.1);
}

/* --- Admin Styles --- */
.admin-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--warning);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Bulk actions container in day header */
.day-header .d-flex.justify-content-center.gap-2.mt-2 {
    flex-wrap: wrap;
    /* Permet le retour à la ligne si trop serré */
    margin-top: 5px !important;
    /* Remonte un peu */
    margin-bottom: 5px;
    /* Marge interne */
}

.btn-bulk-action {
    width: 24px;
    /* Un peu plus petit */
    height: 24px;
    font-size: 0.9rem;
}

/* --- Header & Navigation --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-dark);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-main {
    padding: 15px 0;
}

.logo brand-logo img {
    transition: 0.3s;
}

.logo brand-logo:hover img {
    transform: scale(1.02);
}

.header-nav {
    padding-bottom: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    border-top: none;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 700;
    padding: 1.1rem 1.6rem;
    font-size: 0.92rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 30px;
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    /* Matches header exactly */
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    filter: brightness(0) invert(1) !important;
    /* Full White Logo */
    /* Full White Logo */
    max-height: 90px !important;
    /* Adjusted size */
    margin: 0 !important;
    opacity: 1 !important;
}

.footer-title {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 15rem 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 41, 0.75), rgba(10, 25, 41, 0.85)), url('../img/OneClim_photo2.png');
    background-size: cover;
    background-position: 55% 20%;
    background-repeat: no-repeat;
    transform: scale(1.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* --- Nos Services Grid Redesign --- */
.services-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Cartes plus adaptées aux petits écrans */
    gap: 2rem;
    padding: 2rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-card {
    background: linear-gradient(145deg, rgba(23, 42, 69, 0.9), rgba(13, 27, 42, 0.95));
    /* Fond riche */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Uniformise les hauteurs */
    display: flex;
    flex-direction: column;
}

/* Effet de lueur au survol */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

/* Style de l'icône */
.service-card .mb-3.text-primary {
    background: rgba(77, 171, 247, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem !important;
    transition: 0.3s;
}

.service-card:hover .mb-3.text-primary {
    background: var(--primary);
    color: white !important;
    transform: scale(1.1) rotate(5deg);
}

.service-card i {
    font-size: 2.5rem;
    /* Ajusté pour le cercle */
    margin: 0;
    color: inherit;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    /* Pousse le contenu vers le bas */
}

.service-card ul {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    color: var(--text-main);
    font-size: 0.95rem;
}

.service-card ul li i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--success);
    /* Coche verte pour valider */
}


/* --- Agenda & Modals --- */
.agenda-wrapper {
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.day-column {
    flex: 1;
    min-width: 0;
    /* border-right removed for cleaner look */
}

.day-column:last-child {
    border-right: none;
}

.time-column {
    min-width: 80px;
    flex-shrink: 0;
}

.day-header {
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 1.2rem;
    transition: 0.3s;
}

.day-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.today-highlight .day-header {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.2) 0%, rgba(51, 154, 240, 0.1) 100%) !important;
    border: 1px solid rgba(77, 171, 247, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slot-item {
    height: 75px;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.slot-item:hover {
    background: rgba(255, 255, 255, 0.06);
    filter: brightness(1.1);
}

/* --- Wizard & Reservation --- */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
    z-index: 1;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    top: 18px;
    left: 20px;
    right: 20px;
    width: auto;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a2332;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 800;
    color: var(--text-muted);
    transition: 0.4s;
}

.active .step-circle {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(255, 212, 59, 0.5);
}

.completed .step-circle {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.step-label {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    white-space: nowrap;
}

.active .step-label {
    color: var(--accent);
    font-weight: 600;
}

.completed .step-label {
    color: var(--primary);
}

.cal-day {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 15px;
    min-height: 95px;
    transition: 0.3s;
}

.cal-day:hover:not(.disabled) {
    background: rgba(77, 171, 247, 0.12);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.cal-day.selected {
    background: var(--primary-dark) !important;
    border-color: #fff;
    box-shadow: 0 15px 35px rgba(51, 154, 240, 0.4);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.cal-header {
    text-align: center;
    font-weight: 800;
    color: var(--primary);
    padding: 5px 0;
    font-size: 0.85rem;
}

.cal-day {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    padding: 3px;
    min-height: auto;
}

.cal-day-num {
    font-size: 1.1rem;
}

.cal-day-status {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 4px;
}

.cal-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.1);
}

.price-card {
    background: rgba(255, 212, 59, 0.05);
    border: 2px dashed var(--accent);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 2rem auto;
    max-width: 400px;
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
}

.btn-next-step:disabled {
    background: rgba(255, 212, 59, 0.1) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-links a {
        padding: 1rem 1.2rem;
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .header-main {
        padding: 12px 0;
    }

    /* Fix Phone Icon Color to WHITE */
    .text-accent {
        color: #fff !important;
    }

    .header-actions .text-accent:hover {
        opacity: 0.8;
    }

    /* Mobile Dropdown Menu Styling - Full Screen Overlay */
    .navbar-collapse {
        background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
        position: fixed;
        /* Fixe pour couvrir tout */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        z-index: 2000;
        /* Au-dessus de tout */
        padding: 80px 2rem 2rem 2rem;
        /* Padding top pour laisser place au header/bouton croix si on le garde dedans, ou sinon on scrolle */
        /* Mais att: si le bouton toggle est dans le header qui est z-index < 2000, on ne pourra pas fermer. */
        /* Le header a souvent z-index 1000. Il faut que le menu soit SOUS le header ou que le bouton soit AU DESSUS. */
        /* La demande "cache le header" implique que le menu passe par dessus. */
        /* Donc il faut un bouton croix DANS le menu ou que le bouton toggle soit visible par dessus. */

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.1s ease, visibility 0.1s;
        /* Ultra rapide */
        pointer-events: none;
        display: block !important;
        /* Force display pour bootstrap mais gère visibilité */
    }

    .navbar-collapse.collapsing {
        /* Quand Bootstrap tente d'animer la hauteur, on force l'état ouvert plein écran */
        display: block !important;
        height: 100vh !important;
        opacity: 1 !important;
        /* On affiche direct */
        visibility: visible !important;
        background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
        transition: none !important;
        /* Coupe l'anim lente de bootstrap */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        padding-top: 80px;
        /* Conserve le padding */
    }

    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* On doit s'assurer que le bouton toggle est z-index > 2000 pour être cliquable pour fermer */
    .navbar-toggler {
        z-index: 2050;
        position: relative;
    }

    .nav-links {
        height: 100%;
        justify-content: center;
        gap: 30px !important;
    }

    .nav-links li {
        text-align: center;
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1.5rem;
        /* Plus gros pour menu plein écran */
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    /* Scroll Lock Class (added via JS) */
    body.menu-open {
        overflow: hidden !important;
    }

    .nav-links {
        display: flex;
        flex-direction: column !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        /* Alignement gauche plus standard menu */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Séparateur subtil */
        padding-bottom: 10px;
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-top: 10px;
    }

    .nav-links a {
        display: block;
        padding: 5px 0;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        text-transform: uppercase;
        /* Style plus "titre" */
        letter-spacing: 1px;
        transition: 0.3s;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        color: var(--accent);
        padding-left: 10px;
        /* Petit décalage au hover */
        background: transparent;
    }

    .calendar-scroll {
        padding-bottom: 10px;
    }

    /* Header Actions Mobile Refactoring */
    .header-actions-mobile {
        flex-direction: column !important;
        /* On empile tout verticalement */
        width: 100%;
        margin-top: 15px;
        align-items: stretch !important;
        /* Boutons prennent la largeur */
    }

    .header-actions-mobile .d-flex {
        /* Conteneur des boutons Modifier/Sauvegarder */
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .header-actions-mobile .btn {
        width: 100%;
        /* Boutons pleine largeur pour être tapables facilement */
        justify-content: center;
    }

    /* Titre Agenda en haut */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        /* Cible le container du titre Agenda Global */
        flex-direction: column;
        align-items: flex-start !important;
    }

    .d-flex.justify-content-between.align-items-center.mb-4>div:first-child {
        /* La div du titre "Agenda Global" */
        margin-bottom: 10px;
        width: 100%;
    }

    /* Bouton Revenir à aujourd'hui */
    .header-actions-mobile>a.btn-outline-light {
        width: 100%;
        margin-bottom: 5px;
        text-align: center;
    }

    .container {
        padding: 0 1.2rem;
    }

    .cal-day {
        min-height: 80px;
        padding: 10px;
    }

    .day-header {
        height: auto !important;
        /* Laisse grandir */
        min-height: 90px;
        padding-bottom: 15px;
        /* Espace pour les boutons */
    }

    .slot-item {
        height: 70px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
    }

    /* Reviews Carousel spacing on mobile */
    .reviews-carousel .carousel-item {
        padding-left: 5px;
        /* Petit espace anti-collage */
        padding-right: 5px;
    }

    .review-card {
        margin: 0 10px;
        /* Force un espace autour de la carte */
    }

    /* ===== RÉSERVATION PAGE - MOBILE OPTIMIZATIONS ===== */

    /* Wizard Progress - Plus compact sur mobile */
    .wizard-progress {
        max-width: 100%;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .step-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .step-label {
        font-size: 0.75rem;
        margin-top: 5px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Calendrier - Optimisé pour mobile */
    .calendar-grid {
        gap: 4px;
        max-width: 100%;
        padding: 0 5px;
    }

    .cal-day {
        min-height: 60px;
        padding: 5px 2px;
        aspect-ratio: 1/1;
    }

    .cal-day-num {
        font-size: 0.95rem;
    }

    .cal-day-status {
        font-size: 0.55rem;
        margin-top: 2px;
    }

    .cal-header {
        font-size: 0.75rem;
        padding: 3px 0;
    }

    /* Navigation mois - Grille avec flèches aux extrémités */
    .mb-4.text-white[style*="display: grid"] {
        grid-template-columns: 50px 1fr 50px !important;
        padding: 0 10px !important;
    }

    #month-label {
        font-size: 1.2rem !important;
        line-height: 1.2;
    }

    /* Flèches de navigation du calendrier */
    .mb-4.text-white[style*="display: grid"] button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 5px !important;
        min-height: 40px;
    }

    .mb-4.text-white[style*="display: grid"] button i {
        margin: 0 !important;
        line-height: 1 !important;
        font-size: 1.5rem !important;
    }

    /* Créneaux horaires - Grille responsive */
    .slots-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 5px;
    }

    .slot-btn {
        padding: 15px 10px;
        font-size: 0.9rem;
        min-height: 70px;
    }

    .slot-btn strong {
        font-size: 1rem;
    }

    .slot-btn small {
        font-size: 0.7rem !important;
    }

    /* Container des créneaux */
    #slots-container {
        max-width: 100% !important;
        padding: 1rem !important;
        margin-top: 1rem;
    }

    #slots-container h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* Formulaires - Champs plus grands pour mobile */
    .glass-effect {
        padding: 1.5rem !important;
        max-width: 100% !important;
    }

    .form-control {
        font-size: 16px !important;
        /* Évite le zoom automatique sur iOS */
        padding: 12px 15px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Boutons - Plus grands et tactiles */
    .btn-next-step,
    .btn-lg {
        padding: 15px 30px !important;
        font-size: 1rem !important;
        min-width: auto !important;
        width: 100%;
        max-width: 100%;
    }

    .btn-warning {
        padding: 12px 25px;
    }

    /* Boutons de navigation (Retour/Suivant) */
    .text-center.mt-5.d-flex {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .text-center.mt-5.d-flex .btn {
        width: 100% !important;
    }

    /* Card de prix - Plus compact */
    .price-card {
        padding: 1.5rem !important;
        margin: 1.5rem auto !important;
        max-width: 100% !important;
    }

    .price-amount {
        font-size: 2.2rem !important;
    }

    /* Titres des sections */
    .form-section h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Espacement général */
    main.container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Message de succès */
    .alert {
        font-size: 0.95rem;
        padding: 1rem;
    }

    /* Loading overlay */
    #loading-overlay h3 {
        font-size: 1.3rem;
    }

    #loading-overlay p {
        font-size: 0.9rem;
    }

    /* Amélioration du scroll sur mobile */
    .form-section {
        overflow-x: hidden;
    }

    /* Bouton submit final */
    #btn-submit {
        min-width: 100% !important;
        white-space: normal;
        line-height: 1.4;
        padding: 15px 20px !important;
    }
}

/* ===== RÉSERVATION - STYLES SPÉCIFIQUES TRÈS PETITS ÉCRANS ===== */
@media (max-width: 576px) {

    /* Calendrier encore plus compact */
    .calendar-grid {
        gap: 3px;
    }

    .cal-day {
        min-height: 50px;
        padding: 3px 1px;
    }

    .cal-day-num {
        font-size: 0.85rem;
    }

    .cal-day-status {
        font-size: 0.5rem;
    }

    /* Créneaux en 1 colonne sur très petits écrans */
    .slots-grid {
        grid-template-columns: 1fr !important;
    }

    /* Wizard encore plus compact */
    .wizard-progress {
        padding: 0 5px !important;
    }

    .step-item {
        min-width: 0;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-label {
        font-size: 0.7rem;
        margin-top: 3px;
    }

    /* Titres plus petits */
    .form-section h3 {
        font-size: 1.1rem !important;
    }

    #month-label {
        font-size: 1rem !important;
    }

    /* Navigation mois - Grille encore plus compacte */
    .mb-4.text-white[style*="display: grid"] {
        grid-template-columns: 40px 1fr 40px !important;
        padding: 0 5px !important;
    }

    .mb-4.text-white[style*="display: grid"] button i {
        font-size: 1.3rem !important;
    }

    /* Boutons navigation mois */
    .d-flex.justify-content-between button i {
        font-size: 1.5rem !important;
    }
}

/* ===== RÉSERVATION - ÉCRANS TRÈS ÉTROITS (< 450px) ===== */
@media (max-width: 450px) {

    /* Wizard ultra-compact */
    .wizard-progress {
        padding: 0 2px !important;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .step-label {
        font-size: 0.65rem;
        margin-top: 2px;
    }

    /* Calendrier ultra-compact */
    .calendar-grid {
        gap: 2px !important;
        padding: 0 2px !important;
    }

    .cal-day {
        min-height: 45px !important;
        padding: 2px 1px !important;
    }

    .cal-day-num {
        font-size: 0.8rem !important;
    }

    .cal-day-status {
        font-size: 0.45rem !important;
    }

    .cal-header {
        font-size: 0.7rem !important;
        padding: 2px 0 !important;
    }

    /* Navigation mois ultra-compacte */
    .mb-4.text-white[style*="display: grid"] {
        grid-template-columns: 35px 1fr 35px !important;
        padding: 0 2px !important;
    }

    #month-label {
        font-size: 0.9rem !important;
    }

    .mb-4.text-white[style*="display: grid"] button i {
        font-size: 1.2rem !important;
    }

    /* Créneaux en 1 colonne */
    .slots-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .slot-btn {
        padding: 12px 8px !important;
        font-size: 0.85rem !important;
    }

    /* Formulaires ultra-compacts */
    .glass-effect {
        padding: 1rem !important;
    }

    .form-control {
        font-size: 16px !important;
        padding: 10px 12px !important;
    }

    /* Titres */
    .form-section h3 {
        font-size: 1rem !important;
    }

    /* Conteneur principal */
    main.container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Boutons */
    .btn-next-step,
    .btn-lg {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}


/* --- Rating Stars Fix --- */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-stars input {
    display: none !important;
}

.rating-stars label {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.2s;
    margin: 0 5px;
}

.rating-stars input:checked~label,
.rating-stars label:hover,
.rating-stars label:hover~label {
    color: var(--accent) !important;
}

/* --- Reviews Carousel Indicators Fix --- */
.reviews-carousel .carousel-indicators {
    bottom: -20px;
    margin-bottom: 0;
}

.reviews-carousel .carousel-indicators [data-bs-target] {
    width: 30px;
    height: 5px;
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.reviews-carousel .carousel-indicators .active {
    background-color: var(--accent);
    width: 50px;
    opacity: 1;
}

/* --- Agenda Styles Enhanced for Desktop --- */

/* Augmentation générale de la hauteur des créneaux sur PC */
.slot-item {
    height: 85px !important;
    /* Plus grand que 65px */
    font-size: 1.1rem;
    /* Texte plus grand */
}

.day-header .d-day {
    font-size: 1.4rem;
    /* Jours plus gros */
    margin-bottom: 5px;
}

.day-header .d-date {
    font-size: 1rem;
}

/* Espacement plus généreux sur PC */
.agenda-wrapper {
    padding: 2rem !important;
    /* Plus de padding global */
}

/* --- Edit Mode Styles (Agenda Admin) --- */

/* Only fade TEXT/ICONS content, NOT background colors of the slot itself */
.edit-mode-glow .slot-item>*:not(.admin-actions-overlay) {
    opacity: 0.3 !important;
    /* Moins effacé pour rester lisible */
    filter: blur(0.5px);
    /* Flou très léger */
}

.edit-mode-glow .slot-item {
    border-style: dashed !important;
    border-width: 2px !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    /* Do NOT touch background here to preserve 'bg-danger-subtle' etc. */
}

/* Make Bulk Action Buttons (Top of Day) Look like simple icons */
.btn-bulk-action {
    width: 28px;
    height: 28px;
    background: transparent !important;
    /* Remove red/green background pill */
    border: none !important;
    /* Remove border */
    box-shadow: none !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-bulk-block i {
    color: var(--danger);
    font-size: 1.2rem;
}

.btn-bulk-unblock i {
    color: var(--success);
    font-size: 1.2rem;
}

.btn-bulk-action:hover {
    transform: scale(1.2);
    /* No brightness filter needed as bg is safe */
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

/* --- Responsive Agenda Scroll (Universal) --- */
/* S'applique dès que l'écran est un peu réduit pour forcer le mode scroll si besoin */
@media (max-width: 1600px) {
    .calendar-scroll {
        overflow-x: auto;
        flex-wrap: nowrap;
        /* Smooth scroll iOS */
        -webkit-overflow-scrolling: touch;
        /* scroll-snap-type: x mandatory;  <-- REMOVED FOR FLUIDITY */
        padding-bottom: 10px;
        /* Masquer la barre de défilement (demande utilisateur) */
        scrollbar-width: none;
        /* Firefox */
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
        /* Firefox: couleur */
        padding-left: 10px;
        /* Espace gauche */
        padding-right: 10px;
        /* Espace droit */
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 10px !important;
        /* Ajustement gap pour mobile */
    }

    /* Style de la barre de défilement pour Chrome/Safari/Edge */
    .calendar-scroll::-webkit-scrollbar {
        display: none;
        /* Caché */
        height: 6px;
        /* Fine */
        /* Scrollbar styling removed as requested */
    }
}

/* Specific Mobile Width Override */
@media (max-width: 992px) {
    .day-column {
        display: block !important;
        /* Calcul précis pour 2 jours côte à côte avec un gap de 10px */
        /* (100% - 10px) / 2 = 50% - 5px */
        min-width: calc(50% - 5px);
        width: calc(50% - 5px);
        flex: 0 0 auto;
    }
}

.slot-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slot-btn:hover:not(.disabled) {
    background: rgba(77, 171, 247, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slot-btn.selected {
    background: var(--primary);
    color: #fff;
    border-color: #fff;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

/* ===== GLOBAL MOBILE OPTIMIZATIONS (< 576px) ===== */
@media (max-width: 576px) {

    /* Sections et Conteneurs */
    section {
        padding: 3rem 0 !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Typographie */
    h1,
    .display-4 {
        font-size: 2rem !important;
        /* Titres plus petits */
        line-height: 1.3;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    p.lead {
        font-size: 1rem !important;
    }

    /* Header Logo adaptation - Plus strict */
    .site-header img {
        max-height: 45px !important;
    }

    /* Réduction padding header principal */
    .header-main {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Boutons de navigation header (menu, tel) */
    .d-lg-none.d-flex.align-items-center.gap-3 i {
        font-size: 1.5rem !important;
    }

    .d-lg-none.d-flex.align-items-center.gap-3 {
        gap: 15px !important;
    }

    /* Ajustement bouton appel */
    .text-accent i {
        font-size: 1.4rem !important;
    }
}

/* ===== CAROUSEL AVIS - MOBILE (< 992px) ===== */
/* Masquer les flèches quand le menu burger est visible */
@media (max-width: 992px) {

    .reviews-carousel .carousel-control-prev,
    .reviews-carousel .carousel-control-next {
        display: none !important;
    }
}