/* Reset et styles de base */
:root {
    --primary: #FF7A45;
    --primary-dark: #e05d00; /*  #E56A36 */
    --secondary: #4E97FD;
    --dark: #2D3748; /* #333 */
    --light: #F7FAFC;
    --gray: #B6B9BD;
    --success: #48BB78;
}

[v-cloak] {
    display: none !important;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background: #F8F9FA;
    color: var(--dark);
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1.875rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 0.375rem;
    background: white;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

select {
    appearance: none;
    padding-right: 2.5rem;
    background: white url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D3748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 0.75rem center/1em;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(78, 151, 253, 0.16);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #8a94a3;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

/* Hamburger styles */
.hamburger {
    display: none;
    padding: 0.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 2px;
    background-color: var(--dark);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--dark);
    position: absolute;
    left: 0;
    transition: transform 0.3s;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

/* Active state */
.hamburger.active .hamburger-inner {
    background-color: transparent;
}

.hamburger.active .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.875rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Sections communes */
section {
    padding: 5rem 0;
}

h2 {
    margin-bottom: 3.125rem;
    font-size: 1.7rem;
    color: #333;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1.25rem 0;
}

.footer-links, .social-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.social-icons a {
    color: #fff;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
}


/* APPOINTMENT STYLE */
h1 {
    text-align: center;
    margin-bottom: 1.875rem;
    color: var(--primary);
}

.small-bottom-margin {
    margin-bottom: 0.5rem;
}

/* Section RDV */
.appointment-section {
    padding: 6.25rem 0;
}

/* Formulaire */
#appointment-form {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.875rem;
}

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

.phone-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}

#phone-code {
    width: 40%;
}

#phone {
    width: 60%;
}

#loading-spinner {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    margin-left: 0.25rem;
    vertical-align: middle;
    animation: spin 1s linear infinite;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 0.625rem;
    width: 90%;
    max-width: 31.25rem;
    padding: 1.875rem;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

#qr-code-container {
    margin: 1.25rem auto;
}

#confirmation-reference {
    font-weight: bold;
    color: var(--primary);
}

#calendar-link {
    background: var(--secondary);
    width: 100%;
    margin-bottom: 0.4rem;
}

#finish-btn {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    width: 100%;
}

/* Back office */
.admin-page {
    background: #f4f7fb;
}

.admin-header {
    position: sticky;
}

.admin-header .container,
.admin-title-row,
.admin-actions,
.admin-filters,
.admin-token-row {
    display: flex;
    align-items: center;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.admin-nav-link {
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    padding: 0.45rem 0.7rem;
    border-radius: 0.375rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: #f1f5f9;
    color: var(--primary);
}

.admin-shell {
    padding-top: 2rem;
}

.admin-auth,
.admin-dashboard {
    padding: 3rem 0;
}

.admin-auth-inner {
    max-width: 42rem;
}

.admin-token-form,
.admin-stats,
.admin-filters,
.admin-panel {
    background: white;
    border: 1px solid #e5eaf2;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(45, 55, 72, 0.06);
}

.admin-token-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.admin-token-form label,
.admin-filter-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #526074;
}

.admin-token-row {
    gap: 0.75rem;
}

.admin-table select {
    min-width: 10rem;
}

.admin-title-row {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-title-row h1 {
    margin-bottom: 0.2rem;
    text-align: left;
}

.admin-title-row p,
.admin-table span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
}

.admin-actions,
.admin-filters {
    gap: 0.75rem;
}

.admin-secondary-btn {
    background: var(--secondary);
}

.admin-outline-btn {
    background: white;
    color: var(--dark);
    border: 1px solid #cbd5e1;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 1rem;
}

.admin-stat {
    padding: 1rem;
    border-right: 1px solid #e5eaf2;
}

.admin-stat:last-child {
    border-right: 0;
}

.admin-stat span {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-stat strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.25rem;
}

.admin-filters {
    align-items: flex-end;
    padding: 1rem;
    margin-bottom: 1rem;
}

.admin-filter-group {
    flex: 1;
}

.admin-stats-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel {
    border-radius: 0.5rem;
    overflow: hidden;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 58rem;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem;
    text-align: left;
    border-bottom: 1px solid #e5eaf2;
    vertical-align: top;
}

.admin-table th {
    background: #f8fafc;
    color: #526074;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-table code {
    font-size: 0.82rem;
}

.admin-badge {
    display: inline-block !important;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
}

.status-confirmed,
.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-pending,
.status-initiated {
    background: #fef3c7;
    color: #92400e;
}

.status-cancelled,
.status-expired,
.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.admin-empty,
.admin-message {
    padding: 1rem;
    color: #64748b;
}

.admin-error {
    color: #b91c1c;
}

/* Ajouter des styles pour les messages d'erreur */
.help-text {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #dc3545;
}

.field-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: #b91c1c;
}

.form-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    text-align: left;
}

.form-alert p {
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.form-alert ul {
    margin-left: 1.25rem;
}

.form-alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 5rem 1.5rem 2rem;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        display: block;
    }

    nav ul li {
        margin: 1.5rem 0;
    }

    nav ul li a {
        font-size: 1.1rem;
    }

    /* Backdrop overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    /* APPOINTMENT STYLE */
    #appointment-form {
        padding: 1rem;
    }

    .admin-title-row,
    .admin-token-row,
    .admin-filters,
    .admin-header .container,
    .admin-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-nav {
        width: 100%;
        margin-left: 0;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stat {
        border-right: 0;
        border-bottom: 1px solid #e5eaf2;
    }

    .phone-group {
        flex-direction: column;
    }

    #phone-code,
    #phone {
        width: 100% !important;
    }
}


/* Home page */ /* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 4.5rem;
}
 .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}
 .hero p {
    font-size: 1.2rem;
    margin-bottom: 1.875rem;
}
 /* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.875rem;
}
 .services .container>p {
    margin-bottom: 1.875rem;
}
 .service-card {
    background: white;
    padding: 1.875rem;
    border-radius: 0.4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
 .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
 .service-card h3 {
    color: #ff6b00;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
 /* Tarifs */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.875rem;
    margin-top: 2.5rem;
}
 .price-card {
    background: white;
    padding: 1.875rem;
    border-radius: 0.625rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s;
}
 .price-card.featured {
    transform: scale(1.05);
    border: 2px solid #ff6b00;
}
 .price-card h3 {
    margin-bottom: 1.25rem;
    color: #333;
}
 .price-card a {
    color: inherit;
    text-decoration: none;
}
 .price {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 1.25rem;
}
 .payment-methods {
    text-align: center;
    margin-top: 1.875rem;
    font-weight: 500;
    color: #ff6b00;
}
 /* Section Témoignages */
.testimonials {
    background: var(--light);
    padding: 5rem 1rem;
    text-align: center;
}
 .testimonials h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 3rem;
}
 .testimonials .testimonial-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}
 .testimonial-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 0.625rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    font-style: italic;
    position: relative;
    max-width: 40rem;
    width: 100%;
}
 .testimonial-card::before {
    content: "“";
    font-size: 4rem;
    color: var(--primary);
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: serif;
}
 .testimonial-card span {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary-dark);
}
 /* Contact */
.contact-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}
 .contact-info, .map-container {
    background: white;
     border-radius: 0.625rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 40rem;
    width: 100%;
}
 .contact-info {
    padding: 1.875rem;
}
 .contact-info p {
    margin-bottom: 1rem;
}
 .map-container {
    overflow: hidden;
}
 /* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
     .testimonials .testimonial-container,
    .contact-container {
        flex-direction: column;
    }
}
