/* ============================================================
   UWEZO — Design System Premium
   Typographie, icônes, composants & pages de service
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- Icônes Font Awesome (rendu garanti) --- */
.fa, .fas, .far, .fab,
.fa-solid, .fa-regular, .fa-brands {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.fa-solid, .fas {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
}
.fa-regular, .far {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 400;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", FontAwesome;
    font-weight: 400;
}

/* --- Base typographique --- */
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-primary, #1f2937);
    -webkit-font-smoothing: antialiased;
}

/* Annuler le dégradé h1 global sur les héros */
.page-hero h1,
.uw-page-hero h1,
.bulletin-hero h1,
.second-session-hero h1,
.contact-hero-section h1,
.about-hero h1,
.about-hero__title,
.about-hero-section h1,
.about-hero-section .hero-title,
.events-hero h1,
.blog-hero h1,
.academie-hero h1,
.home-hero__title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    letter-spacing: -0.02em;
}

/* --- Héros de page (composant partagé) --- */
.uw-page-hero,
.page-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(191, 87, 0, 92%) 0%, rgba(120, 53, 15, 88%) 100%),
        var(--uw-hero-bg, url('../img/img_uwezo/bat1.jpg')) center / cover no-repeat;
    padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
    color: #fff;
    border-radius: 0 0 2rem 2rem;
    overflow: hidden;
    text-align: center;
}
.uw-page-hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
}
.uw-page-hero .container,
.page-hero .container {
    position: relative;
    z-index: 1;
}
.uw-page-hero .lead,
.page-hero .lead {
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    font-weight: 400;
}
.uw-page-hero .hero-badge,
.page-hero .hero-badge,
.bulletin-hero .hero-badge,
.second-session-hero .hero-badge,
.contact-hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

/* --- Sections & espacement --- */
.section_padding {
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.uw-section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--gray-900, #111827);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.uw-section-subtitle {
    color: var(--gray-500, #6b7280);
    font-size: 1.05rem;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

/* --- Cartes premium --- */
.uw-card,
.service-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.uw-card:hover,
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(191, 87, 0, 0.1), 0 8px 16px rgba(17, 24, 39, 0.06);
}

/* --- Bloc info / étapes --- */
.info-steps {
    border-radius: 1rem;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
}
.info-steps h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.info-steps h2 i {
    opacity: 0.9;
}
.info-steps ol {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.65;
}
.info-steps li + li {
    margin-top: 0.4rem;
}
.info-steps--brand {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
}
.info-steps--brand h2 { color: #9a3412; }
.info-steps--brand ol { color: #7c2d12; }

/* --- Formulaires service (bulletin, 2e session, contact) --- */
.uw-form-card .form-label,
.bulletin-card .form-label,
.second-session-card .form-label {
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
}
.uw-form-card .form-label i,
.bulletin-card .form-label i,
.second-session-card .form-label i {
    color: var(--primary-color, #BF5700);
    width: 1.1rem;
    text-align: center;
    font-size: 0.95rem;
}
.uw-form-card .form-control,
.uw-form-card .form-select,
.bulletin-card .form-control,
.bulletin-card .form-select,
.second-session-card .form-control,
.second-session-card .form-select {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.65rem;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.uw-form-card .form-control:focus,
.uw-form-card .form-select:focus,
.bulletin-card .form-control:focus,
.bulletin-card .form-select:focus,
.second-session-card .form-control:focus,
.second-session-card .form-select:focus {
    background: #fff;
    border-color: var(--primary-color, #BF5700);
    box-shadow: 0 0 0 4px rgba(191, 87, 0, 0.12);
}

/* --- Boutons premium --- */
.btn_1, .btn_4 {
    background: linear-gradient(135deg, var(--primary-color, #BF5700) 0%, var(--primary-light, #E56A00) 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 0.75rem 1.75rem !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(191, 87, 0, 35%) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn_1:hover, .btn_4:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(191, 87, 0, 0.4) !important;
    color: #fff !important;
}
.btn_1:active, .btn_4:active {
    transform: translateY(0) !important;
}
.uw-btn-submit {
    width: 100%;
    padding: 0.95rem 1.5rem !important;
    font-size: 1rem !important;
    border-radius: 0.75rem !important;
    text-transform: none;
    letter-spacing: 0;
}

/* --- Header amélioré --- */
.ab-header-area {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.ab-header-area.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
.ab-nav-list li a {
    font-size: 0.82rem !important;
    padding: 0.5rem 0.85rem !important;
}
/* Ancienne navbar — icône inscription circulaire uniquement */
.ab-header-area .inscrire_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    transition: all 0.25s ease;
}
.ab-header-area .inscrire_btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-2px);
}
.ab-header-area .inscrire_btn:hover i { color: #fff !important; }
.ab-header-area .inscrire_btn i {
    font-size: 1rem;
    color: var(--primary-color);
}

/* --- Footer contact icons --- */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}
.contact-info li i {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(191, 87, 0, 0.2);
    border-radius: 0.5rem;
    color: var(--primary-light, #E56A00) !important;
    font-size: 0.85rem;
    margin-top: 0.1rem;
}
.social-icons a i {
    font-size: 0.95rem;
}

/* --- Alertes & badges résultats --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-badge.ok {
    background: #dcfce7;
    color: #166534;
}
.status-badge.payment {
    background: #fef3c7;
    color: #92400e;
}
.status-badge.frais-connexes {
    background: #fee2e2;
    color: #991b1b;
}
.status-badge.reussi { background: #dcfce7; color: #166534; }
.status-badge.echoue { background: #fee2e2; color: #991b1b; }
.status-badge.session { background: #ffedd5; color: #9a3412; }
.status-badge.attente { background: #e0e7ff; color: #3730a3; }

/* --- Animations d'entrée --- */
@keyframes uwFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.uw-animate-in {
    animation: uwFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.uw-animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.uw-animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.uw-animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* --- Contact page --- */
.contact-info-icon i {
    font-size: 1.15rem;
}

/* --- Identité officielle (8e CEPAC, agrément, etc.) --- */
.uw-identite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.uw-identite__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.15rem;
    padding: 1.5rem 1.35rem;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
    height: 100%;
}
.uw-identite__card--wide {
    grid-column: 1 / -1;
}
.uw-identite__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(191, 87, 0, 0.12);
    color: var(--primary-color, #BF5700);
    margin-bottom: 0.85rem;
    font-size: 1.1rem;
}
.uw-identite__card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.85rem;
}
.uw-identite__card dl {
    margin: 0;
}
.uw-identite__card dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 0.15rem;
}
.uw-identite__card dd {
    font-size: 0.92rem;
    color: #111827;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}
.uw-identite__card dd:last-child { margin-bottom: 0; }
.uw-identite__card a {
    color: var(--primary-color, #BF5700);
    text-decoration: none;
}
.uw-identite__card a:hover { text-decoration: underline; }
.uw-identite__text {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.65;
}
.uw-identite__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.uw-identite__badges li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.uw-identite__badges i {
    color: var(--primary-color, #BF5700);
    font-size: 0.82rem;
}
.uw-identite__footer-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}
.uw-identite__footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    line-height: 1.45;
}
.uw-identite__footer-list i {
    color: var(--primary-light, #E56A00);
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.uw-identite__item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    height: 100%;
}
.uw-identite__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.2rem;
}
.uw-identite__item strong,
.uw-identite__item a {
    font-size: 0.92rem;
    color: #111827;
    line-height: 1.45;
}
.uw-identite__item a {
    color: var(--primary-color, #BF5700);
    text-decoration: none;
}
.uw-identite__item a:hover { text-decoration: underline; }

/* --- Réduction mouvement --- */
@media (prefers-reduced-motion: reduce) {
    .uw-animate-in { animation: none; opacity: 1; }
    .uw-card:hover, .service-card:hover { transform: none; }
}

@media (max-width: 767.98px) {
    .buttons_area .btn_4 {
        padding: 0.6rem 1rem !important;
        font-size: 0.75rem !important;
    }
    .uw-page-hero, .page-hero {
        border-radius: 0 0 1.25rem 1.25rem;
    }
}
