/* ==========================================================================
   PAGES SPECIFIC CSS (Vitrines)
   ========================================================================== */

/* --- Hover Utilities (Protected for mobile) --- */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-btn-primary, .hover-btn-white, .hover-btn-dark {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .hover-lift:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05); }
    
    .hover-glow-green:hover { box-shadow: 0 15px 30px rgba(29, 216, 127, 0.3); }
    .hover-glow-white:hover { box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2); }
    
    .hover-btn-primary:hover { box-shadow: 0 15px 35px rgba(29, 216, 127, 0.5) !important; transform: scale(1.02) !important; }
    .hover-btn-white:hover { background: var(--color-primary) !important; color: #000 !important; transform: scale(1.02); }
    .hover-btn-dark:hover { background: var(--color-primary) !important; color: #000 !important; transform: scale(1.02); }
}

/* --- FAQ Accordion (faq.php) --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-category {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 4rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
}
@media (hover: hover) {
    .faq-item:hover { border-color: rgba(29, 216, 127, 0.5); box-shadow: 0 10px 25px rgba(0,0,0,0.03); }
}
.faq-item summary {
    padding: 1.5rem 2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-primary);
    cursor: pointer;
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 400;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
    animation: fadeDown 0.3s ease-out;
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Prestations (prestations.php) --- */
.prestation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
@media(min-width: 992px) {
    .prestation { grid-template-columns: 240px 1fr; gap: 3.5rem; }
    .prestation--reverse { grid-template-columns: 1fr 240px; }
    .prestation--reverse .prestation__visual { order: 2; }
    .prestation--reverse .prestation__content { order: 1; }
}
.prestation__icon-large {
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: rgba(29, 216, 127, 0.08);
    border-radius: 32px;
    margin: 0 auto;
}
.prestation__title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}
.prestation__text {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.prestation__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

/* --- Services (services.php) --- */
.service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 8rem;
}
.service-row:last-child { margin-bottom: 0; }
@media(min-width: 992px) {
    .service-row { grid-template-columns: 1fr 1fr; gap: 6rem; }
    .service-row.reverse .service-text { order: 2; }
    .service-row.reverse .service-img { order: 1; }
}
.process-card {
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
}
@media (hover: hover) {
    .process-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
}
.process-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--color-primary);
    color: #000;
    font-weight: 900;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid var(--color-surface);
}

/* --- Hero Reusable Classes --- */
.badge-hero {
    display: inline-block; 
    padding: 6px 16px; 
    background: rgba(29, 216, 127, 0.1); 
    border: 1px solid rgba(29, 216, 127, 0.2); 
    color: var(--color-primary); 
    border-radius: 100px; 
    font-size: 0.85rem; 
    font-weight: 700; 
    letter-spacing: 0.1em; 
    text-transform: uppercase; 
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 900; 
    letter-spacing: -0.03em; 
    margin-bottom: 1.5rem; 
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5); /* from contact.php */
}

.hero-subtitle {
    font-size: 1.25rem; 
    color: rgba(255,255,255,0.7); 
    max-width: 600px; 
    margin: 0 auto; 
    line-height: 1.6;
}

.text-alpha-40 { color: rgba(255,255,255,0.4); }
.text-alpha-50 { color: rgba(255,255,255,0.5); }
.text-primary { color: var(--color-primary) !important; }

/* ==========================================================================
   PORTAL AUTH PAGES (Client, Chauffeur, Partenaire B2B)
   ========================================================================== */
.auth-page-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height, 80px) + 1.25rem) 1.25rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(6, 9, 7, 0.82) 0%, rgba(6, 9, 7, 0.96) 100%), url('/assets/images/hero-bg.png') center/cover no-repeat fixed;
    box-sizing: border-box;
}

.auth-page-bg-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(29, 216, 127, 0.15) 0%, rgba(10, 15, 12, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-card-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-main-card {
    background: rgba(14, 18, 15, 0.90);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.auth-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.auth-card-subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.45;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-form-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
}

.auth-forgot-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-forgot-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    height: 52px;
    padding: 0 1.15rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input-wrapper:focus-within {
    border-color: #1DD87F;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3.5px rgba(29, 216, 127, 0.2), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.auth-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    padding: 0;
    outline: none;
    width: 100%;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
    font-weight: 400;
}

.auth-toggle-pwd-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: -6px;
}

.auth-toggle-pwd-btn:hover {
    color: #1DD87F;
    background: rgba(29, 216, 127, 0.12);
}

.auth-submit-btn {
    width: 100%;
    height: 50px;
    margin-top: 0.6rem;
    border: none;
    border-radius: 12px;
    background: #1DD87F;
    color: #040906;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(29, 216, 127, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-submit-btn:hover {
    background: #22e688;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(29, 216, 127, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-card-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

.auth-card-footer a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-card-footer a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.auth-error-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-success-alert {
    background: rgba(29, 216, 127, 0.12);
    border: 1px solid rgba(29, 216, 127, 0.3);
    color: var(--color-primary);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-input-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .auth-page-section {
        padding: calc(var(--header-height, 80px) + 0.75rem) 0.85rem 2rem;
    }

    .auth-card-container {
        max-width: 100%;
    }

    .auth-main-card {
        padding: 1.6rem 1.15rem;
        border-radius: 18px;
    }
    
    .auth-card-title {
        font-size: 1.45rem;
    }

    .auth-card-subtitle {
        font-size: 0.85rem;
    }

    .auth-input-wrapper {
        height: 48px;
        padding: 0 0.95rem;
    }

    .auth-submit-btn {
        height: 48px;
        font-size: 0.95rem;
    }

    .auth-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 1.15rem !important;
    }
}

@media (max-width: 360px) {
    .auth-page-section {
        padding: calc(var(--header-height, 80px) + 0.5rem) 0.5rem 1.5rem;
    }

    .auth-main-card {
        padding: 1.35rem 0.9rem;
        border-radius: 16px;
    }

    .auth-card-title {
        font-size: 1.3rem;
    }

    .auth-form-label {
        font-size: 0.8rem;
    }
}

