/**
 * Levilliard Template Styles - UEH
 * Based on the levilliard-tailwind template
 */

/* ===== CUSTOM PROPERTIES ===== */
:root {
    --color-primary: #9f1c35;
    --color-primary-dark: #9f1c35;
    --color-secondary: #6B7280;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ===== THEME GRADIENT ===== */
.bg-theme-gradient {
    background: #9f1c35;
}

/* ===== THEME BUTTON ===== */
.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #000000CC;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.theme-btn:hover {
    background: #9f1c35;
    color: white;
    border-color: transparent;
}

.theme-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #9f1c35;
    border-radius: 50%;
}

.theme-btn span img {
    filter: brightness(0) invert(1);
    width: 12px;
    height: 12px;
}

/* ===== GLOBAL BORDER RADIUS ===== */
.rounded-global {
    border-radius: 10px;
}

/* ===== TYPOGRAPHY SYSTEM ===== */

/* --- Eyebrow: petite étiquette au-dessus d'un titre --- */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* --- Page title: H1 dans les sections hero --- */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .page-title {
        font-size: 3rem;
    }
}

/* --- Title: titre de section principal --- */
.title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .title {
        font-size: 42px;
    }
}

/* --- Section heading: H2 dans le contenu --- */
.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
}

@media (min-width: 1024px) {
    .section-heading {
        font-size: 1.875rem;
    }
}

/* --- Card title: titre de carte H3/H6 --- */
.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}

/* --- Section lead: paragraphe d'intro sous un titre --- */
.section-lead {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-secondary);
}

@media (min-width: 768px) {
    .section-lead {
        font-size: 1.125rem;
    }
}

/* --- Body text: texte de contenu standard --- */
.body-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

/* --- Small text: légendes, métadonnées --- */
.small-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-secondary);
}

/* ===== TEXT COLORS ===== */
.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

/* ===== BACKGROUND COLORS ===== */
.bg-primary {
    background: #9f1c35;
}

/* ===== LOADING STATE ===== */
html.loading body {
    visibility: hidden;
}

html.loaded body {
    visibility: visible;
}

/* ===== SWIPER OVERRIDES ===== */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

/* ===== RESPONSIVE UTILITIES ===== */


@media (min-width: 768px) {
    .hidden.md\:block {
        display: block !important;
    }

    .hidden.md\:grid {
        display: grid !important;
    }

    .hidden.md\:flex {
        display: flex !important;
    }

    .block.md\:hidden {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .hidden.lg\:block {
        display: block !important;
    }

    .hidden.lg\:flex {
        display: flex !important;
    }

    .lg\:hidden {
        display: none !important;
    }
}


/* Animations globales supprimées pour un design plus académique et performant */

/* Chevron Tabs Styling */
.chevron-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.chevron-tabs::-webkit-scrollbar {
    display: none;
}

.chevron-tab {
    position: relative;
    cursor: pointer;
    padding: 10px 20px 10px 30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 13px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    margin-right: -15px;
    z-index: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .chevron-tab {
        padding: 12px 24px 12px 34px;
        font-size: 14px;
    }
}

.chevron-tab:first-child {
    padding-left: 20px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
}

@media (min-width: 768px) {
    .chevron-tab:first-child {
        padding-left: 24px;
    }
}

.chevron-tab:hover {
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.chevron-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chevron-tab input[type="radio"]:checked+span {
    font-weight: 600;
}

.chevron-tab:has(input[type="radio"]:checked) {
    background-color: #ffffff;
    color: var(--color-primary);
    z-index: 3;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ===== THEME UTILITIES ===== */
.bg-primary-dark-panel {
    background-color: #70132681;
}

.text-primary-light {
    color: #ffcad4;
}

.hover\:text-primary-light:hover {
    color: #ffcad4;
}

/* ===== MISSING CLASSES FOR UNIVERSITY PAGES ===== */

/* Container UEH (alias for container) */
.container-ueh {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container-ueh {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Heading UEH */
.heading-ueh {
    font-weight: 700;
    color: #1f2937;
}

/* Card UEH */
.card-ueh {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.card-ueh:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Button UEH Outline */
.btn-ueh-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-ueh-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Section Space */
.sec-space {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .sec-space {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .sec-space {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Card Style */
.card-style {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card-style:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper */
.image-wrapper {
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    position: relative;
}

.image-wrapper .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-wrapper:hover .image {
    transform: scale(1.05);
}

/* Tab Button */
.tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.tab-btn.tab-active {
    background: var(--color-primary);
    color: white;
}

/* Theme Colors */
.text-theme {
    color: var(--color-primary);
}

.bg-theme {
    background-color: var(--color-primary);
}

/* Theme Button Border */
.theme-btn-border {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-primary);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.theme-btn-border:hover {
    background: var(--color-primary);
    color: white;
}

/* Gray/Black text colors */
.text-gb-2 {
    color: #9ca3af;
}

.text-gb-4 {
    color: #6b7280;
}

.text-gb-5 {
    color: #374151;
}

/* Height utilities */
.h-100 {
    height: 25rem;
}

.h-104 {
    height: 26rem;
}

.h-92 {
    height: 23rem;
}

.h-80 {
    height: 20rem;
}

.h-76 {
    height: 19rem;
}

.h-71 {
    height: 17.75rem;
}

.h-70 {
    height: 17.5rem;
}

.h-65 {
    height: 16.25rem;
}

.h-62 {
    height: 15.5rem;
}

.h-55 {
    height: 13.75rem;
}

.h-52 {
    height: 13rem;
}

.h-50 {
    height: 12.5rem;
}

/* Width utilities */
.w-71 {
    width: 17.75rem;
}

.w-12\.5 {
    width: 3.125rem;
}

.h-12\.5 {
    height: 3.125rem;
}

/* Max width */
.max-w-200 {
    max-width: 50rem;
}

/* Z-index */
.-z-1 {
    z-index: -1;
}

/* Flex utilities */
.flex-1\/2 {
    flex: 1 1 50%;
}

.flex-2\/6 {
    flex: 2 1 33.333%;
}

.flex-4\/6 {
    flex: 4 1 66.667%;
}

.flex-1\/4 {
    flex: 1 1 25%;
}

.flex-3\/4 {
    flex: 3 1 75%;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CUSTOM SPACING UTILITIES ===== */

/* Padding Top */
.pt-11 {
    padding-top: 2.75rem;
}

.pt-14 {
    padding-top: 3.5rem;
}

.pt-18 {
    padding-top: 4.5rem;
}

.pt-22 {
    padding-top: 5.5rem;
}

@media (min-width: 1024px) {
    .lg\:pt-22 {
        padding-top: 5.5rem;
    }
    
    .lg\:pt-24 {
        padding-top: 6rem;
    }
}

/* Padding Bottom */
.pb-6 {
    padding-bottom: 1.5rem;
}

.pb-11 {
    padding-bottom: 2.75rem;
}

.pb-18 {
    padding-bottom: 4.5rem;
}

.pb-21 {
    padding-bottom: 5.25rem;
}

@media (min-width: 1024px) {
    .lg\:pb-21 {
        padding-bottom: 5.25rem;
    }
}

/* Margin Bottom */
.mb-6\.5 {
    margin-bottom: 1.625rem;
}

.mb-7\.5 {
    margin-bottom: 1.875rem;
}

/* Gap */
.gap-7 {
    gap: 1.75rem;
}

.gap-18 {
    gap: 4.5rem;
}

@media (min-width: 1280px) {
    .xl\:gap-18 {
        gap: 4.5rem;
    }
}

/* Space Y */
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.875rem;
}

.space-y-7\.5 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.875rem;
}

@media (min-width: 1024px) {
    .lg\:space-y-7\.5 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1.875rem;
    }
}

/* Width utilities */
.w-6\.5 {
    width: 1.625rem;
}

.w-11\.5 {
    width: 2.875rem;
}

@media (min-width: 768px) {
    .md\:w-11\.5 {
        width: 2.875rem;
    }
}

/* Height utilities */
.h-6\.5 {
    height: 1.625rem;
}

.h-11\.5 {
    height: 2.875rem;
}

.h-19 {
    height: 4.75rem;
}

@media (min-width: 768px) {
    .md\:h-11\.5 {
        height: 2.875rem;
    }
    
    .md\:h-19 {
        height: 4.75rem;
    }
}

/* Max Width */
.max-w-85 {
    max-width: 21.25rem;
}

.max-w-160 {
    max-width: 40rem;
}

@media (min-width: 1024px) {
    .lg\:max-w-160 {
        max-width: 40rem;
    }
}

@media (min-width: 1280px) {
    .xl\:max-w-200 {
        max-width: 50rem;
    }
}

/* Invert filter for hover effects */
.invert-100 {
    filter: invert(1);
}

/* ===== FOOTER HAITI IMAGE FIX ===== */
.footer-haiti-image {
    position: absolute;
    right: 0;
    bottom: -2rem;
    width: auto;
    max-width: 240px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
}

@media (min-width: 1024px) {
    .footer-haiti-image {
        bottom: 0;
        max-width: none;
    }
}

/* ===== QUOTE BANNERS (section citation avec animations) ===== */
#quote-section {
    height: 320px;
}

#quote-section img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    #quote-section {
        height: auto;
    }
    #quote-section img {
        position: static;
        height: auto;
        object-fit: unset;
    }
}

.quote-banner,
.quote-banner-top {
    height: 40px;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .quote-banner,
    .quote-banner-top {
        height: 100px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.quote-banner {
    transform: translateY(100%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.quote-banner.visible {
    transform: translateY(0);
}

.quote-banner-top {
    transform: translateY(-100%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.quote-banner-top.visible {
    transform: translateY(0);
}