/* ============================================================
   PORTAIL PUBLIC SGES — Styles
   ============================================================ */

/* Reset / base */
.portail-body {
    background: #f4f6fb;
    min-height: 100vh;
    font-family: 'Montserrat', 'Roboto', sans-serif;
}

/* ── Barre de navigation portail ── */
.portail-navbar {
    background: #fff;
    border-bottom: 3px solid #1a7a4a;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    position: sticky;
    top: 0;
    z-index: 100;
}

.portail-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1a7a4a;
    font-weight: 700;
    font-size: 1.1rem;
}

.portail-navbar-brand img {
    height: 42px;
}

.portail-navbar-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.portail-navbar-links a {
    color: #1a7a4a;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: background 0.18s;
}

.portail-navbar-links a:hover {
    background: #e8f5ee;
}

/* ── Hero ── */
.portail-hero {
    background: linear-gradient(135deg, #1a7a4a 0%, #0d5c36 60%, #063d24 100%);
    color: #fff;
    padding: 4rem 1.5rem 5rem;
    text-align: center;
    clip-path: ellipse(110% 100% at 50% 0%);
}

.portail-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.portail-hero p.lead {
    font-size: 1.05rem;
    opacity: 0.88;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ── Cards d'action ── */
.portail-cards-section {
    padding: 0 1.5rem;
    margin-top: -3rem;
    margin-bottom: 3rem;
}

.portail-action-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #222;
    display: block;
    transition: transform 0.18s, box-shadow 0.18s;
    border-top: 4px solid transparent;
    height: 100%;
}

.portail-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    color: #222;
    text-decoration: none;
}

.portail-action-card.card-plainte   { border-top-color: #1a7a4a; }
.portail-action-card.card-reclamation { border-top-color: #e67e22; }
.portail-action-card.card-suivi     { border-top-color: #2980b9; }
.portail-action-card.card-connexion { border-top-color: #7f8c8d; }

.portail-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.8rem;
}

.card-plainte    .portail-card-icon { background: #e8f5ee; color: #1a7a4a; }
.card-reclamation .portail-card-icon { background: #fef3e8; color: #e67e22; }
.card-suivi      .portail-card-icon { background: #eaf3fb; color: #2980b9; }
.card-connexion  .portail-card-icon { background: #f2f3f4; color: #7f8c8d; }

.portail-action-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.portail-action-card p {
    font-size: 0.88rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.portail-btn-card {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
}

.card-plainte    .portail-btn-card { background: #e8f5ee; color: #1a7a4a; }
.card-reclamation .portail-btn-card { background: #fef3e8; color: #e67e22; }
.card-suivi      .portail-btn-card { background: #eaf3fb; color: #2980b9; }
.card-connexion  .portail-btn-card { background: #f2f3f4; color: #7f8c8d; }

/* ── Section contenu générique ── */
.portail-page {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem 3rem;
}

.portail-page-sm {
    max-width: 640px;
    margin: 2rem auto;
    padding: 0 1.5rem 3rem;
}

/* ── Fil d'Ariane portail ── */
.portail-breadcrumb {
    background: #fff;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    font-size: 0.88rem;
}

.portail-breadcrumb a {
    color: #1a7a4a;
    text-decoration: none;
}

.portail-breadcrumb a:hover {
    text-decoration: underline;
}

.portail-breadcrumb .sep {
    margin: 0 0.5rem;
    color: #aaa;
}

/* ── Titre de page ── */
.portail-page-header {
    margin-bottom: 1.75rem;
}

.portail-page-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a3a2a;
    margin-bottom: 0.25rem;
}

.portail-page-header p {
    color: #666;
    font-size: 0.92rem;
    margin: 0;
}

/* ── Badges type ── */
.badge-plainte    { background: #e8f5ee; color: #1a7a4a; }
.badge-reclamation { background: #fef3e8; color: #e67e22; }

/* ── Cards de sélection (typologies / projets) ── */
.portail-select-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 1.5rem;
    text-decoration: none;
    color: #222;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    border: 2px solid transparent;
    margin-bottom: 0.75rem;
}

.portail-select-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    border-color: #1a7a4a;
    color: #222;
    text-decoration: none;
}

.portail-select-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    background: #e8f5ee;
    color: #1a7a4a;
}

.portail-select-card-body {
    flex: 1;
}

.portail-select-card-body h5 {
    font-size: 0.97rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.portail-select-card-body p {
    font-size: 0.83rem;
    color: #777;
    margin: 0;
}

.portail-select-card-arrow {
    color: #aaa;
    font-size: 1.2rem;
}

/* ── Formulaire public ── */
.portail-form-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 18px rgba(0,0,0,.09);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.portail-form-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a7a4a;
    border-bottom: 2px solid #e8f5ee;
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
}

.portail-form-card .form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
}

.portail-form-card .form-control,
.portail-form-card .form-select {
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1.5px solid #dde2ec;
}

.portail-form-card .form-control:focus,
.portail-form-card .form-select:focus {
    border-color: #1a7a4a;
    box-shadow: 0 0 0 3px rgba(26,122,74,.12);
}

/* ── Alerte anonymat ── */
.portail-anon-notice {
    background: #fffbea;
    border: 1.5px solid #f0c040;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #7a6000;
}

/* ── Boutons submit ── */
.btn-portail-primary {
    background: #1a7a4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.18s;
}

.btn-portail-primary:hover {
    background: #145c38;
    color: #fff;
}

.btn-portail-secondary {
    background: #f4f6fb;
    color: #444;
    border: 1.5px solid #dde2ec;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    transition: background 0.18s;
}

.btn-portail-secondary:hover {
    background: #e8eaf0;
    color: #222;
}

/* ── Page de confirmation ── */
.portail-confirmation {
    text-align: center;
    padding: 2.5rem 2rem;
}

.portail-check-icon {
    width: 80px;
    height: 80px;
    background: #e8f5ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #1a7a4a;
}

.portail-tracking-code {
    background: #f4f6fb;
    border: 2px dashed #1a7a4a;
    border-radius: 12px;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #1a3a2a;
    margin: 1.25rem 0;
    font-family: 'Courier New', monospace;
}

/* ── Page de suivi ── */
.portail-suivi-form {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 18px rgba(0,0,0,.09);
    padding: 2.5rem 2rem;
    text-align: center;
}

.portail-suivi-form input[type="text"] {
    font-size: 1.15rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 8px;
    border: 2px solid #1a7a4a;
    padding: 0.75rem 1.25rem;
}

.portail-status-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 18px rgba(0,0,0,.09);
    padding: 1.75rem 2rem;
    margin-top: 1.5rem;
}

.portail-status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ── Footer portail ── */
.portail-footer {
    background: #1a3a2a;
    color: rgba(255,255,255,.65);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.82rem;
    margin-top: 4rem;
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .portail-hero h1 {
        font-size: 1.5rem;
    }
    .portail-action-card {
        padding: 1.5rem 1rem;
    }
    .portail-tracking-code {
        font-size: 1.2rem;
        letter-spacing: 2px;
        padding: 0.75rem 1.25rem;
    }
}
