/* ═══════════════════════════════════════════════════════════════════════
 * PRO-001 Session 3 — pro.css
 * Fichier : /public_html/pro/assets/css/pro.css
 * Version : 1.0.0
 * Date    : 12/07/2026
 *
 * CHARTE E-DRIVE EVOLUTION :
 *   Navy   #0D1B2E   (fond, textes titres)
 *   Bleu   #0090E8   (CTA, focus, liens)
 *   Cyan   #00C8F8   (accent, badge Espace Pro)
 *   Argent #BCBDC2   (bordures, séparateurs)
 *
 * FONTS :
 *   Outfit (titres, brand, boutons — chargée depuis Google Fonts)
 *   DM Sans (body — chargée depuis Google Fonts)
 *
 * PORTÉE :
 *   Pages front /pro/ non-authentifiées (login, inscription, reset, etc.)
 *   Les pages authentifiées (dashboard, catalogue, fiche...) hériteront
 *   du même socle + composants dédiés en Session 4+.
 * ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');


/* ═══ VARIABLES CSS (charte E-Drive) ═══════════════════════════════════ */
:root {
    /* Palette principale */
    --pro-navy:    #0D1B2E;
    --pro-navy-2:  #1a2b45;
    --pro-blue:    #0090E8;
    --pro-blue-h:  #007bc7;
    --pro-cyan:    #00C8F8;
    --pro-silver:  #BCBDC2;

    /* Neutres */
    --pro-white:   #FFFFFF;
    --pro-gray-50:  #F8F9FB;
    --pro-gray-100: #EEF1F5;
    --pro-gray-200: #D5DBE3;
    --pro-gray-500: #6B7280;
    --pro-gray-700: #374151;

    /* Sémantique */
    --pro-error:   #DC2626;
    --pro-error-bg: #FEF2F2;
    --pro-success: #059669;
    --pro-success-bg: #F0FDF4;
    --pro-info-bg: #EFF6FF;

    /* Radius */
    --pro-radius:    12px;
    --pro-radius-sm: 8px;

    /* Ombres */
    --pro-shadow-sm: 0 1px 2px rgba(13, 27, 46, 0.05);
    --pro-shadow-md: 0 4px 12px rgba(13, 27, 46, 0.08);
    --pro-shadow-lg: 0 8px 24px rgba(13, 27, 46, 0.12);
}


/* ═══ RESET LÉGER ══════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--pro-navy);
    background: linear-gradient(135deg, var(--pro-navy) 0%, var(--pro-navy-2) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ═══ LAYOUT PAGE ══════════════════════════════════════════════════════ */
.pro-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ═══ HEADER ═══════════════════════════════════════════════════════════ */
.pro-header {
    background: var(--pro-navy);
    color: var(--pro-white);
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pro-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pro-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--pro-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.pro-brand-badge {
    background: var(--pro-cyan);
    color: var(--pro-navy);
    padding: 4px 10px;
    border-radius: var(--pro-radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ═══ MAIN + CARD ══════════════════════════════════════════════════════ */
.pro-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.pro-card {
    background: var(--pro-white);
    border-radius: var(--pro-radius);
    box-shadow: var(--pro-shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

.pro-card--wide {
    max-width: 720px;
}

.pro-card-header {
    margin-bottom: 32px;
    text-align: center;
}

.pro-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--pro-navy);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pro-card-subtitle {
    color: var(--pro-gray-500);
    font-size: 15px;
    line-height: 1.5;
}


/* ═══ SECTION TITLE (formulaires longs) ════════════════════════════════ */
.pro-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--pro-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pro-gray-100);
}

.pro-section-title:first-child {
    margin-top: 0;
}


/* ═══ FORMULAIRES ══════════════════════════════════════════════════════ */
.pro-form-group {
    margin-bottom: 20px;
}

.pro-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pro-form-row .pro-form-group {
    margin-bottom: 20px;
}

.pro-label {
    display: block;
    font-weight: 500;
    color: var(--pro-gray-700);
    margin-bottom: 6px;
    font-size: 14px;
}

.pro-label-required::after {
    content: ' *';
    color: var(--pro-error);
}

.pro-input,
.pro-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--pro-gray-200);
    border-radius: var(--pro-radius-sm);
    background: var(--pro-white);
    font-family: inherit;
    font-size: 15px;
    color: var(--pro-navy);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pro-input:hover,
.pro-select:hover {
    border-color: var(--pro-silver);
}

.pro-input:focus,
.pro-select:focus {
    outline: none;
    border-color: var(--pro-blue);
    box-shadow: 0 0 0 3px rgba(0, 144, 232, 0.15);
}

.pro-input--error {
    border-color: var(--pro-error);
}

.pro-input--error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.pro-help {
    display: block;
    font-size: 13px;
    color: var(--pro-gray-500);
    margin-top: 6px;
}

.pro-help--error {
    color: var(--pro-error);
    font-weight: 500;
}


/* ═══ CHECKBOX ═════════════════════════════════════════════════════════ */
.pro-form-checkbox {
    font-size: 14px;
    color: var(--pro-gray-700);
    line-height: 1.5;
}

.pro-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.pro-form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--pro-blue);
}

.pro-form-checkbox a {
    color: var(--pro-blue);
    text-decoration: underline;
}


/* ═══ BOUTONS ══════════════════════════════════════════════════════════ */
.pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--pro-radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease, border-color 0.15s ease;
    text-decoration: none;
    gap: 8px;
    line-height: 1;
}

.pro-btn:active {
    transform: translateY(1px);
}

.pro-btn--primary {
    background: var(--pro-blue);
    color: var(--pro-white);
    width: 100%;
}

.pro-btn--primary:hover {
    background: var(--pro-blue-h);
}

.pro-btn--primary:disabled {
    background: var(--pro-gray-200);
    color: var(--pro-gray-500);
    cursor: not-allowed;
}

.pro-btn--secondary {
    background: transparent;
    color: var(--pro-gray-700);
    border-color: var(--pro-gray-200);
}

.pro-btn--secondary:hover {
    background: var(--pro-gray-50);
    border-color: var(--pro-silver);
}


/* ═══ ALERTS ═══════════════════════════════════════════════════════════ */
.pro-alert {
    padding: 14px 16px;
    border-radius: var(--pro-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.pro-alert--error {
    background: var(--pro-error-bg);
    color: #991B1B;
    border-left: 3px solid var(--pro-error);
}

.pro-alert--success {
    background: var(--pro-success-bg);
    color: #14532D;
    border-left: 3px solid var(--pro-success);
}

.pro-alert--info {
    background: var(--pro-info-bg);
    color: #1E3A8A;
    border-left: 3px solid var(--pro-blue);
}


/* ═══ LIENS SECONDAIRES ════════════════════════════════════════════════ */
.pro-links {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--pro-gray-500);
}

.pro-links a {
    color: var(--pro-blue);
    text-decoration: none;
    font-weight: 500;
}

.pro-links a:hover {
    text-decoration: underline;
}

.pro-links-sep {
    margin: 0 8px;
    color: var(--pro-silver);
}


/* ═══ FOOTER ═══════════════════════════════════════════════════════════ */
.pro-footer {
    text-align: center;
    padding: 20px 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}


/* ═══ PAGE CONFIRMATION (inscription/reset success) ════════════════════ */
.pro-confirm {
    text-align: center;
    padding: 20px 0;
}

.pro-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--pro-success-bg);
    color: var(--pro-success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
}


/* ═══ RESPONSIVE ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .pro-card {
        padding: 28px 22px;
    }
    .pro-card--wide {
        max-width: 100%;
    }
    .pro-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .pro-card-title {
        font-size: 24px;
    }
    .pro-header {
        padding: 16px 20px;
    }
    .pro-main {
        padding: 24px 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
 * FIN pro.css v1.0.0
 * ═══════════════════════════════════════════════════════════════════════ */
