/* Feuille de style principale - Rimco Motors (Thème Clair Premium) */
/* Encodage UTF-8 (Règle 9) */

:root {
    --primary: #af3336;       /* Rouge Rimco */
    --primary-hover: #882c2f; /* Rouge Sombre */
    --bg-light: #f8f9fc;      /* Fond clair premium */
    --bg-card: #ffffff;       /* Fond de carte blanc pur */
    --border-color: #e4e4e7;  /* Bordures fines type zinc-200 */
    --text-dark: #1f1f23;     /* Onyx */
    --text-muted: #71717a;    /* Gris zinc-500 */
    --accent-glow: rgba(175, 51, 54, 0.1);
}

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

body {
    background: linear-gradient(135deg, rgba(48, 28, 28, 0.95) 0%, rgba(175, 51, 54, 0.90) 100%), url('../img/car_bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    font-family: 'Outfit', 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header / Footers */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f1f4 !important;
}

footer {
    background-color: #ffffff !important;
    border-top: 1px solid #f1f1f4 !important;
    color: var(--text-muted) !important;
}

/* Premium Card (Inspiré du prototype O'Brunch) */
.premium-card {
    background: var(--bg-card);
    border: 1px solid rgba(21, 21, 21, 0.05);
    border-radius: 40px; /* Coins encore plus doux et arrondis */
    box-shadow: 0 30px 70px rgba(21, 21, 21, 0.03); /* Ombre extrêmement diffuse et douce */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    box-shadow: 0 35px 80px rgba(175, 51, 54, 0.05);
}

/* Inputs premium (light-input style) */
.premium-input {
    width: 100%;
    background: #ffffff; /* Fond blanc pur pour contraster avec le fond de page */
    border: 1px solid #e4e4e7;
    border-radius: 100px; /* Style capsule aéré */
    padding: 16px 28px; /* Padding généreux pour faire respirer */
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.premium-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.premium-input::placeholder {
    color: #a1a1aa;
}

/* Textarea spécifique */
textarea.premium-input {
    border-radius: 24px;
    resize: none;
}

/* Select styling */
select.premium-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    background-size: 16px;
    padding-right: 50px;
}

select.premium-input option {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* Boutons premium (Style capsule / arrondi complet) */
.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 36px;
    border: none;
    border-radius: 100px; /* Style capsule comme O'Brunch */
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(175, 51, 54, 0.2);
    transition: all 0.3s ease;
}

.premium-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(175, 51, 54, 0.3);
}

.premium-btn:active:not(:disabled) {
    transform: translateY(0);
}

.premium-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form layouts */
.form-group {
    margin-bottom: 30px; /* Espace augmenté de 24px à 30px */
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #52525b; /* zinc-600 */
    margin-bottom: 10px;
    padding-left: 14px;
}

/* Titres & Textes */
h1 {
    color: var(--text-dark);
    font-weight: 800;
}

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

/* Utilities */
.max-w-xl { max-width: 38rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.pt-12 { padding-top: 3rem; }
.pb-24 { padding-bottom: 6rem; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Alerts and Feedbacks */
.feedback-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    margin-top: 24px;
    animation: fadeIn 0.4s ease forwards;
}

.feedback-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.feedback-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

/* Table styling for Admin (Clair) */
.admin-table-container {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f1f4;
}

.admin-table th {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    background: #fcfcfd;
}

.admin-table tr:hover {
    background: #f9f9fb;
}

.admin-badge {
    background: rgba(175, 51, 54, 0.08);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Personnalisation de la version conversationnelle */
.conversation-bubble p {
    font-size: 1.1rem !important; /* Augmentation de la taille de texte du formulaire */
    line-height: 1.6;
}

.premium-input {
    font-size: 1.1rem !important;
}
