/* ===================================================
   CROU San Pedro - Redesign CSS
   Design: Fond blanc, Vert Émeraude, Orange Solaire
   Typography: Inter + Montserrat
   =================================================== */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2D3436;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === 1. HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #FFFFFF;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #059669;
    transition: opacity 0.3s;
}

.nav-logo i {
    font-size: 1.5rem;
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    color: #2D3436;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #059669;
}

.btn-mon-espace {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid #059669;
    border-radius: 50px;
    color: #059669;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-mon-espace:hover {
    background: #059669;
    color: #FFFFFF;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    gap: 5px;
}

.bar {
    width: 24px;
    height: 2.5px;
    background: #2D3436;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === DROPDOWN MENU === */
.nav-item {
    position: relative;
}

.has-dropdown {
    position: relative;
}

.has-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #F1F1F1;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #2D3436;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.dropdown-link i {
    width: 20px;
    text-align: center;
    color: #059669;
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.dropdown-link:hover {
    background: rgba(5, 150, 105, 0.06);
    color: #059669;
    border-left-color: #059669;
}

.dropdown-link:hover i {
    transform: scale(1.15);
}

/* Dropdown separator line at top */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #059669, #F97316);
    border-radius: 2px 2px 0 0;
}

/* === 2. HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 35%,
        rgba(255, 255, 255, 0.4) 65%,
        rgba(255, 255, 255, 0.1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #059669;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 600px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #636e72;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #059669;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.4);
}

.btn-secondary-orange {
    background: #F97316;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.btn-secondary-orange:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4);
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #059669;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #636e72;
    max-width: 520px;
    margin: 0 auto;
}

/* === 3. SERVICES GRID (Cards) === */
.services-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid #F1F1F1;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    display: block;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(5, 150, 105, 0.15);
}

/* Couleurs de bordure par service au survol */
.service-card--logement:hover {
    border-bottom-color: #059669;
}

.service-card--restauration:hover {
    border-bottom-color: #F97316;
}

.service-card--medical:hover {
    border-bottom-color: #3B82F6;
}

.service-card--socioculturel:hover {
    border-bottom-color: #8B5CF6;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(5, 150, 105, 0.08);
    transition: background 0.3s;
}

.service-card:hover .service-icon {
    background: rgba(5, 150, 105, 0.14);
}

.service-icon i {
    font-size: 1.6rem;
    color: #059669;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #2D3436;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.6;
}

/* === 4. CHIFFRES CLÉS === */
.chiffres-section {
    padding: 64px 0;
    background: #F9F9F9;
}

.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.chiffre-item {
    padding: 24px 16px;
}

.chiffre-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #F97316;
    line-height: 1.1;
    margin-bottom: 8px;
}

.chiffre-label {
    font-size: 1rem;
    color: #636e72;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === 5. ACTUALITÉS & AGENDA (Carrousel) === */
.actualites-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.actualites-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.actualites-carousel-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 16px;
}

.actualites-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    background: #FFFFFF;
    color: #059669;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.carousel-btn:hover {
    background: #059669;
    color: #FFFFFF;
    border-color: #059669;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.carousel-btn:disabled:hover {
    background: #FFFFFF;
    color: #059669;
    border-color: #E5E7EB;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E5E7EB;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #059669;
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.carousel-dot:hover:not(.active) {
    background: #94A3B8;
}

.actu-card {
    display: block;
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #F1F1F1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    min-width: calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    margin: 0 8px;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.actu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.actu-large {
    min-width: calc(50% - 16px);
    max-width: calc(50% - 16px);
}

.actu-large .actu-image {
    height: 320px;
}

.actu-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.actu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.actu-card:hover .actu-image img {
    transform: scale(1.05);
}

.actu-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sante {
    background: #059669;
}

.badge-sport {
    background: #F97316;
}

.badge-culture {
    background: #059669;
}

.actu-content {
    padding: 24px;
}

.actu-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #F97316;
    font-weight: 500;
    margin-bottom: 12px;
}

.actu-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2D3436;
    margin-bottom: 10px;
    line-height: 1.4;
}

.actu-content p {
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.65;
}

/* === CARTE BÉNÉFICIAIRE === */
.carte-section {
    padding: 100px 0;
    background: #F9F9F9;
}

.procedure-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.step-card {
    background: #FFFFFF;
    border: 1px solid #F1F1F1;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 52px;
    height: 52px;
    background: #059669;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #2D3436;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: #636e72;
    line-height: 1.6;
}

.carte-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #FFFFFF;
    border: 1px solid #F1F1F1;
    border-left: 4px solid #F97316;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.carte-notice i {
    color: #F97316;
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.carte-notice p {
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.65;
}

.carte-notice strong {
    color: #2D3436;
}

/* === CONTACT === */
.contact-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.contact-card {
    background: #FFFFFF;
    border: 1px solid #F1F1F1;
    border-radius: 16px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.08);
}

.contact-icon i {
    font-size: 1.5rem;
    color: #059669;
}

.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2D3436;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.7;
}

.contact-card a {
    color: #059669;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: #047857;
    text-decoration: underline;
}

/* === 6. FOOTER === */
.footer {
    background: #2D3436;
    color: #FFFFFF;
    padding: 72px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 1.4rem;
    color: #059669;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-socials a:hover {
    background: #059669;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer-links-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links-col ul li a:hover {
    color: #059669;
}

.footer-links-col ul li i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    width: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #059669;
}

/* === FOOTER CAROUSEL - CROU & UNIVERSITÉS === */
.footer-carousel-section {
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-carousel-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.footer-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.footer-carousel-track {
    display: flex;
    gap: 28px;
    animation: footerCarouselScroll 40s linear infinite;
    width: max-content;
}

.footer-carousel-track:hover {
    animation-play-state: paused;
}

.footer-carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 110px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.footer-carousel-item:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

.footer-carousel-item span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-carousel-item:hover span {
    color: #FFFFFF;
}

.footer-carousel-logo-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.footer-carousel-logo-box img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 4px;
}

.footer-carousel-logo-box i {
    font-size: 1.4rem;
    color: #10b981;
}

.footer-carousel-logo-box.univ {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.15);
}

.footer-carousel-logo-box.univ i {
    color: #F97316;
}

.footer-carousel-item:hover .footer-carousel-logo-box {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes footerCarouselScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 768px) {
    .footer-carousel-section {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    .footer-carousel-item {
        min-width: 90px;
    }
    .footer-carousel-logo-box {
        width: 48px;
        height: 48px;
    }
    .footer-carousel-logo-box i {
        font-size: 1.2rem;
    }
    .footer-carousel-item span {
        font-size: 0.68rem;
        max-width: 100px;
    }
    .footer-carousel-track {
        gap: 20px;
        animation-duration: 30s;
    }
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ===== FLOATING MENU ICON (Visiteur) ===== */
.menu-float-btn {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #047857);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    animation: menuFloatPulse 2.5s ease-in-out infinite;
}
.menu-float-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.6);
    animation: none;
}
.menu-float-btn .menu-float-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #DC2626;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: menuBadgeBounce 1.5s ease-in-out infinite;
}
.menu-float-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: #1E293B;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.menu-float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #1E293B;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.menu-float-btn:hover .menu-float-tooltip {
    opacity: 1;
}

@keyframes menuFloatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(5, 150, 105, 0.7), 0 0 0 8px rgba(5, 150, 105, 0.15); }
}
@keyframes menuBadgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== MODAL MENU VISITEUR ===== */
.menu-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-modal-overlay.show {
    display: flex;
    opacity: 1;
}
.menu-modal {
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: menuModalSlideIn 0.35s ease;
}
@keyframes menuModalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.menu-modal-header {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 24px 28px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.menu-modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.menu-modal-header h2 i {
    background: rgba(255,255,255,0.2);
    padding: 8px;
    border-radius: 10px;
    font-size: 1rem;
}
.menu-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.menu-modal-close:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
}
.menu-modal-body {
    padding: 24px 28px;
}
.menu-modal-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background: #F1F5F9;
    padding: 5px;
    border-radius: 12px;
}
.menu-modal-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #64748B;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.menu-modal-tab.active {
    background: #059669;
    color: white;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}
.menu-modal-tab:hover:not(.active) {
    background: #E2E8F0;
}
.menu-modal-panel {
    display: none;
}
.menu-modal-panel.active {
    display: block;
    animation: menuPanelFade 0.3s ease;
}
@keyframes menuPanelFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.menu-card-visitor {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
    transition: all 0.2s;
}
.menu-card-visitor:hover {
    border-color: #059669;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.1);
}
.menu-card-visitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.menu-card-visitor-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-card-visitor-title i {
    color: #059669;
}
.menu-card-visitor-date {
    font-size: 0.78rem;
    color: #64748B;
    background: #E2E8F0;
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 600;
}
.menu-plats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-plats-list li {
    padding: 8px 12px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #334155;
}
.menu-plats-list li:last-child {
    border-bottom: none;
}
.menu-plats-list li::before {
    content: '🍽️';
    font-size: 0.9rem;
}
.menu-nutrition-bar {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.menu-nutrition-item {
    flex: 1;
    min-width: 70px;
    text-align: center;
    padding: 8px 6px;
    border-radius: 8px;
    background: white;
    border: 1px solid #E2E8F0;
}
.menu-nutrition-item .mn-value {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1E293B;
    font-family: 'Montserrat', sans-serif;
}
.menu-nutrition-item .mn-label {
    font-size: 0.68rem;
    color: #64748B;
    margin-top: 2px;
}
.menu-nutrition-item.cal { border-color: #FED7AA; background: #FFF7ED; }
.menu-nutrition-item.prot { border-color: #BFDBFE; background: #EFF6FF; }
.menu-nutrition-item.gluc { border-color: #D1FAE5; background: #ECFDF5; }
.menu-nutrition-item.lip { border-color: #EDE9FE; background: #F5F3FF; }

.menu-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748B;
}
.menu-empty-state i {
    font-size: 2.5rem;
    color: #059669;
    margin-bottom: 12px;
    display: block;
}
.menu-empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 640px) {
    .menu-float-btn {
        bottom: 90px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    .menu-modal {
        max-width: 100%;
        border-radius: 16px;
    }
    .menu-modal-header {
        padding: 18px 20px;
        border-radius: 16px 16px 0 0;
    }
    .menu-modal-body {
        padding: 18px 16px;
    }
    .menu-float-tooltip {
        display: none;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === MON ESPACE MOBILE (hidden on desktop) === */
.nav-item-mobile-only {
    display: none;
}

.btn-mon-espace-mobile {
    display: none;
}

/* === RESPONSIVE === */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chiffres-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .procedure-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .actu-card {
        min-width: calc(50% - 16px);
        max-width: calc(50% - 16px);
    }

    .actu-large {
        min-width: calc(50% - 16px);
        max-width: calc(50% - 16px);
    }

    .actu-large .actu-image {
        height: 240px;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 2px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        z-index: 999;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .btn-mon-espace {
        display: none;
    }

    /* All nav list items full width */
    .nav-menu > li {
        width: 100%;
    }

    /* Nav links full width and tappable */
    .nav-menu .nav-link {
        display: flex;
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .btn-mon-espace-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 24px;
        border: 2px solid #059669;
        border-radius: 50px;
        color: #059669;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        background: transparent;
        margin-top: 12px;
        width: 100%;
        text-align: center;
    }

    .btn-mon-espace-mobile:hover {
        background: #059669;
        color: #FFFFFF;
    }

    .nav-item-mobile-only {
        display: block;
        list-style: none;
    }

    /* Mobile dropdown styles */
    .has-dropdown > .nav-link {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .dropdown-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 8px;
        background: rgba(5, 150, 105, 0.04);
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease, visibility 0s 0.35s;
    }

    /* On mobile, ONLY use .open class (not :hover) */
    .has-dropdown:hover .dropdown-menu {
        /* Disable hover on mobile - only .open class should work */
        max-height: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 400px;
        padding: 8px 0;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease, visibility 0s 0s;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-link {
        padding: 12px 16px 12px 32px;
        font-size: 0.92rem;
        border-left: none;
    }

    .dropdown-link:hover {
        border-left-color: transparent;
        background: rgba(5, 150, 105, 0.08);
    }

    .hero {
        min-height: 85vh;
    }

    .hero-gradient {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.5) 100%
        );
    }

    .hero-content {
        text-align: center;
    }

    .hero-title,
    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .chiffres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .procedure-steps {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Carousel mobile */
    .actu-card {
        min-width: calc(100% - 16px);
        max-width: calc(100% - 16px);
    }

    .actu-large {
        min-width: calc(100% - 16px);
        max-width: calc(100% - 16px);
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .actualites-carousel-wrapper {
        gap: 8px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .chiffre-number {
        font-size: 2.2rem;
    }

    .services-section,
    .actualites-section,
    .carte-section,
    .contact-section {
        padding: 64px 0;
    }
}

/* =====================================================
   BOUTON "DEMANDER UN LOGEMENT" - Pill Style
   ===================================================== */
.btn-demander-logement {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.35), 0 2px 8px rgba(5, 150, 105, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-demander-logement::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    border-radius: 50px;
    pointer-events: none;
}

.btn-demander-logement .btn-demander-icon {
    font-size: 0;
    opacity: 0;
    width: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-8px) scale(0.5);
}

.btn-demander-logement:hover {
    padding: 16px 44px;
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 10px 36px rgba(5, 150, 105, 0.45), 0 4px 12px rgba(5, 150, 105, 0.3);
    transform: translateY(-3px) scale(1.04);
}

.btn-demander-logement:hover .btn-demander-icon {
    font-size: 1.1rem;
    opacity: 1;
    width: auto;
    transform: translateX(0) scale(1);
}

.btn-demander-logement:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

/* Pulse animation on idle */
@keyframes logementBtnPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(5, 150, 105, 0.35), 0 2px 8px rgba(5, 150, 105, 0.2); }
    50% { box-shadow: 0 6px 24px rgba(5, 150, 105, 0.35), 0 2px 8px rgba(5, 150, 105, 0.2), 0 0 0 8px rgba(5, 150, 105, 0.08); }
}

.btn-demander-logement {
    animation: logementBtnPulse 3s ease-in-out infinite;
}

.btn-demander-logement:hover {
    animation: none;
}

/* =====================================================
   MODAL DEMANDE DE LOGEMENT
   ===================================================== */
.logement-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.logement-modal-overlay.active {
    display: flex;
    animation: logementOverlayIn 0.35s ease;
}

@keyframes logementOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logement-modal {
    background: #FFFFFF;
    border-radius: 28px;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    animation: logementModalIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(5, 150, 105, 0.08);
}

@keyframes logementModalIn {
    from { opacity: 0; transform: scale(0.88) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.logement-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    color: #6B7280;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.logement-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    transform: rotate(90deg);
}

.logement-modal-header {
    text-align: center;
    padding: 44px 36px 28px;
}

.logement-modal-header-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #059669;
    animation: logementIconBounce 0.6s ease 0.3s both;
}

@keyframes logementIconBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.logement-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #1F2937;
    margin-bottom: 8px;
}

.logement-modal-subtitle {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.5;
}

.logement-modal-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 36px 40px;
}

.logement-modal-option {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 18px;
    border: 2px solid #F1F5F9;
    background: #FAFBFC;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.logement-modal-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(5, 150, 105, 0.03) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logement-modal-option:hover {
    border-color: #059669;
    background: #FFFFFF;
    transform: translateX(6px);
    box-shadow: 0 8px 28px rgba(5, 150, 105, 0.12);
}

.logement-modal-option:hover::before {
    opacity: 1;
}

.logement-option-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logement-modal-option:hover .logement-option-icon {
    transform: scale(1.1) rotate(-5deg);
}

.admission-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.2));
    color: #3B82F6;
}

.readmission-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.2));
    color: #F97316;
}

.logement-option-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1F2937;
    margin-bottom: 2px;
}

.logement-option-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.admission-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.readmission-badge {
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

.logement-option-desc {
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.4;
}

.logement-option-arrow {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #9CA3AF;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logement-modal-option:hover .logement-option-arrow {
    background: #059669;
    color: #FFFFFF;
    transform: translateX(4px);
}

/* Option content wrapper for text stacking */
.logement-modal-option {
    flex-wrap: wrap;
}

.logement-option-title,
.logement-option-badge,
.logement-option-desc {
    flex-basis: calc(100% - 56px - 36px - 36px);
}

/* Better layout: use CSS grid for option content */
.logement-modal-option {
    display: grid;
    grid-template-columns: 56px 1fr 36px;
    grid-template-rows: auto auto auto;
    gap: 0 18px;
    align-items: center;
}

.logement-option-icon {
    grid-row: 1 / 4;
    grid-column: 1;
    align-self: center;
}

.logement-option-title {
    grid-column: 2;
    grid-row: 1;
}

.logement-option-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 2px;
}

.logement-option-desc {
    grid-column: 2;
    grid-row: 3;
    margin-top: 4px;
}

.logement-option-arrow {
    grid-row: 1 / 4;
    grid-column: 3;
    align-self: center;
}

/* Modal responsive */
@media screen and (max-width: 768px) {
    .logement-modal {
        max-width: 100%;
        margin: 10px;
        border-radius: 22px;
    }

    .logement-modal-header {
        padding: 36px 24px 20px;
    }

    .logement-modal-options {
        padding: 8px 24px 32px;
    }

    .logement-modal-option {
        padding: 18px 18px;
        gap: 0 14px;
        grid-template-columns: 48px 1fr 32px;
    }

    .logement-option-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .logement-option-arrow {
        width: 32px;
        height: 32px;
    }

    .logement-modal-title {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .logement-modal-header-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .logement-option-title {
        font-size: 0.95rem;
    }

    .logement-option-desc {
        font-size: 0.8rem;
    }
}

/* =====================================================
   BOUTON DEMANDER LOGEMENT DANS LE DASHBOARD
   ===================================================== */
.dash-btn-demander-logement {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.35), 0 2px 8px rgba(5, 150, 105, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    animation: logementBtnPulse 3s ease-in-out infinite;
}

.dash-btn-demander-logement::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    border-radius: 50px;
    pointer-events: none;
}

.dash-btn-demander-logement .dash-btn-icon-house {
    font-size: 0;
    opacity: 0;
    width: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-8px) scale(0.5);
}

.dash-btn-demander-logement:hover {
    padding: 14px 40px;
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 10px 36px rgba(5, 150, 105, 0.45), 0 4px 12px rgba(5, 150, 105, 0.3);
    transform: translateY(-3px) scale(1.04);
    animation: none;
    color: #FFFFFF;
}

.dash-btn-demander-logement:hover .dash-btn-icon-house {
    font-size: 1rem;
    opacity: 1;
    width: auto;
    transform: translateX(0) scale(1);
}

/* =====================================================
   INSCRIPTION PAGE
   ===================================================== */
.inscription-page {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 30%, #f9fafb 100%);
}

.inscription-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.insc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #059669;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 24px;
    transition: color 0.3s;
}

.insc-back-link:hover {
    color: #047857;
}

.inscription-card {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid rgba(5, 150, 105, 0.06);
}

.inscription-card-header {
    text-align: center;
    padding: 40px 32px 24px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.auth-logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #059669;
}

.inscription-card-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #1F2937;
    margin-bottom: 6px;
}

.inscription-card-header p {
    font-size: 0.95rem;
    color: #6B7280;
}

.insc-accent-line {
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981, #F97316);
    margin: 0 32px;
    border-radius: 2px;
}

/* ===== PROGRESS BAR (green bar at top) ===== */
.insc-progress-bar-wrapper {
    padding: 20px 32px 0;
}

.insc-progress-bar-track {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.insc-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.insc-progress-bar-label {
    text-align: center;
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 8px;
    font-weight: 500;
}

/* ===== PROGRESS STEPS ===== */
.insc-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 32px 8px;
    gap: 0;
}

.insc-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    flex-shrink: 0;
}

.insc-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.insc-progress-step.active .insc-progress-dot {
    background: #059669;
    color: #FFFFFF;
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.insc-progress-step.completed .insc-progress-dot {
    background: #059669;
    color: #FFFFFF;
    border-color: #059669;
}

.insc-progress-step.completed .insc-progress-dot i {
    font-size: 0.75rem;
}

.insc-progress-label {
    font-size: 0.72rem;
    color: #9CA3AF;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
}

.insc-progress-step.active .insc-progress-label {
    color: #059669;
    font-weight: 600;
}

.insc-progress-step.completed .insc-progress-label {
    color: #059669;
}

.insc-progress-line {
    flex: 1;
    height: 2px;
    background: #E5E7EB;
    margin: 0 8px;
    margin-bottom: 22px;
    min-width: 30px;
    transition: background 0.4s ease;
}

.insc-progress-line.active {
    background: #059669;
}

/* ===== FORM CONTAINER ===== */
.insc-form-container {
    padding: 16px 32px 32px;
}

/* ===== ALERT ===== */
.insc-alert {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: alertSlideIn 0.3s ease;
}

.insc-alert.show {
    display: flex;
}

.insc-alert.error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.insc-alert.success {
    background: #F0FDF4;
    color: #059669;
    border: 1px solid #BBF7D0;
}

.insc-alert.info {
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== STEP PANELS ===== */
.insc-step-panel {
    display: none;
    animation: stepFadeIn 0.4s ease;
}

.insc-step-panel.active {
    display: block;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.insc-step-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1F2937;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.insc-step-title i {
    color: #059669;
    font-size: 1.1rem;
}

.insc-step-desc {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 24px;
}

/* ===== FORM FIELDS ===== */
.insc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.insc-field {
    margin-bottom: 18px;
}

.insc-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.insc-field label small {
    font-weight: 400;
    color: #9CA3AF;
}

.required {
    color: #EF4444;
}

.insc-input,
.insc-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1F2937;
    background: #FAFBFC;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.insc-input:focus,
.insc-select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background: #FFFFFF;
}

.insc-input::placeholder {
    color: #9CA3AF;
}

.insc-field-hint {
    display: block;
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-top: 6px;
}

.insc-field-hint i {
    color: #059669;
    margin-right: 4px;
}

/* Conditional fields */
.insc-conditional {
    display: none;
    animation: condFieldIn 0.3s ease;
}

.insc-conditional.show {
    display: block;
}

@keyframes condFieldIn {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 200px; }
}

/* Radio inline */
.insc-radio-inline {
    display: flex;
    gap: 20px;
}

.radio-inline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-inline-item input[type="radio"] {
    accent-color: #059669;
    width: 18px;
    height: 18px;
}

.radio-inline-label {
    font-size: 0.92rem;
    color: #374151;
    font-weight: 500;
}

/* Field with button */
.insc-field-with-btn {
    display: flex;
    gap: 10px;
}

.insc-field-with-btn .insc-input {
    flex: 1;
}

.btn-copy-name,
.btn-search-matricule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1.5px solid #059669;
    border-radius: 10px;
    background: transparent;
    color: #059669;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy-name:hover,
.btn-search-matricule:hover {
    background: #059669;
    color: #FFFFFF;
}

.btn-copy-name.copied {
    background: #059669;
    color: #FFFFFF;
}

/* ===== BUTTONS ===== */
.insc-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #F3F4F6;
}

.insc-btn-prev,
.insc-btn-next,
.insc-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.insc-btn-prev {
    background: #F3F4F6;
    color: #6B7280;
}

.insc-btn-prev:hover {
    background: #E5E7EB;
    color: #374151;
}

.insc-btn-next {
    background: #059669;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.insc-btn-next:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.insc-btn-next:disabled {
    background: #D1D5DB;
    color: #9CA3AF;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.insc-btn-submit {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.insc-btn-submit:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.4);
}

/* ===== INFO BOX ===== */
.insc-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    margin-bottom: 24px;
}

.insc-info-box i {
    color: #059669;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.insc-info-box p {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.5;
}

/* ===== UPLOAD ZONES ===== */
.upload-item {
    margin-bottom: 20px;
}

.upload-item > label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.insc-upload-zone {
    border: 2px dashed #D1D5DB;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FAFBFC;
}

.insc-upload-zone:hover {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.02);
}

.insc-upload-zone.drag-over {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.06);
    transform: scale(1.01);
}

.insc-upload-zone.has-file {
    border-color: #059669;
    border-style: solid;
    background: #F0FDF4;
}

.insc-upload-zone i {
    font-size: 2rem;
    color: #D1D5DB;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.insc-upload-zone:hover i,
.insc-upload-zone.has-file i {
    color: #059669;
}

.upload-text {
    font-size: 0.88rem;
    color: #9CA3AF;
}

.upload-filename {
    display: none;
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
    margin-top: 8px;
}

/* Photo upload */
.upload-photo-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.upload-zone-photo {
    width: 180px;
    flex-shrink: 0;
}

.photo-preview-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #059669;
    position: relative;
    flex-shrink: 0;
}

.photo-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-replace-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 150, 105, 0.85);
    color: #FFFFFF;
    border: none;
    padding: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.3s;
}

.photo-replace-btn:hover {
    background: rgba(4, 120, 87, 0.95);
}

/* ===== LOADING SPINNER ===== */
.insc-loading-screen {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.insc-loading-screen.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.insc-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.insc-spinner {
    width: 64px;
    height: 64px;
    position: relative;
}

.insc-spinner-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #E5E7EB;
    border-top-color: #059669;
    animation: spinnerRotate 0.9s linear infinite;
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

.insc-loading-text {
    font-size: 1rem;
    color: #6B7280;
    font-weight: 500;
}

/* ===== SUCCESS SCREEN ===== */
.insc-success-screen {
    display: none;
    text-align: center;
    padding: 48px 20px;
}

.insc-success-screen.show {
    display: block;
    animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.insc-success-check-wrapper {
    margin-bottom: 24px;
}

.insc-success-check {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.insc-success-svg {
    width: 80px;
    height: 80px;
}

.insc-success-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #059669;
    animation: successCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.insc-success-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #059669;
    stroke-width: 3;
    stroke-linecap: round;
    animation: successCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes successCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes successCheck {
    to { stroke-dashoffset: 0; }
}

.insc-success-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #DC2626;
    margin-bottom: 8px;
}

.insc-success-message {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.insc-success-ref {
    display: inline-block;
    padding: 12px 28px;
    background: #F0FDF4;
    border: 2px solid #059669;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #059669;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.insc-success-note {
    font-size: 0.88rem;
    color: #9CA3AF;
    margin-bottom: 28px;
}

.insc-success-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: #059669;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.insc-success-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.4);
}

/* ===== RÉADMISSION RECAP ===== */
.readm-recap-container {
    animation: stepFadeIn 0.4s ease;
}

.readm-recap-card {
    background: #FAFBFC;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.readm-recap-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
}

.readm-recap-header i {
    color: #059669;
    font-size: 1.3rem;
}

.readm-recap-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1F2937;
}

.readm-recap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.readm-recap-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.readm-recap-label {
    font-size: 0.78rem;
    color: #9CA3AF;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.readm-recap-value {
    font-size: 0.95rem;
    color: #1F2937;
    font-weight: 600;
}

/* Confirm checkbox */
.readm-confirm-box {
    margin-bottom: 8px;
}

.readm-confirm-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.92rem;
    color: #374151;
    font-weight: 500;
    padding: 14px 20px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    transition: background 0.3s;
}

.readm-confirm-label:hover {
    background: #DCFCE7;
}

.readm-confirm-label input[type="checkbox"] {
    accent-color: #059669;
    width: 18px;
    height: 18px;
}

.readm-confirm-checkmark {
    display: none;
}

/* ===== MODAL (existing modal-overlay) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: logementOverlayIn 0.35s ease;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: logementModalIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    color: #6B7280;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-icon-header {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: #059669;
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #1F2937;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 0.9rem;
    color: #6B7280;
}

.modal-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-choice-card {
    background: #FAFBFC;
    border: 2px solid #F1F5F9;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s ease;
}

.modal-choice-card:hover {
    border-color: #059669;
    background: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(5, 150, 105, 0.12);
}

.choice-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.4rem;
}

.choice-icon-admission {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
    color: #3B82F6;
}

.choice-icon-readmission {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.2));
    color: #F97316;
}

.modal-choice-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1F2937;
    margin-bottom: 8px;
}

.modal-choice-card p {
    font-size: 0.82rem;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 12px;
}

.choice-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.choice-badge-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

/* ===== INSCRIPTION RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .inscription-page {
        padding-top: 88px;
    }

    .inscription-container {
        padding: 0 16px;
    }

    .inscription-card-header {
        padding: 28px 20px 20px;
    }

    .insc-accent-line {
        margin: 0 20px;
    }

    .insc-progress-bar-wrapper {
        padding: 16px 20px 0;
    }

    .insc-progress {
        padding: 16px 20px 8px;
    }

    .insc-form-container {
        padding: 16px 20px 24px;
    }

    .insc-row {
        grid-template-columns: 1fr;
    }

    .insc-field-with-btn {
        flex-direction: column;
    }

    .upload-photo-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .upload-zone-photo {
        width: 100%;
    }

    .modal-choices {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 28px 20px;
    }

    .readm-recap-grid {
        grid-template-columns: 1fr;
    }

    .insc-progress-label {
        font-size: 0.65rem;
    }

    .insc-progress-dot {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .inscription-card-header h1 {
        font-size: 1.3rem;
    }

    .insc-step-title {
        font-size: 1.05rem;
    }

    .insc-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .insc-btn-prev,
    .insc-btn-next,
    .insc-btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PASSWORD FIELD ===== */
.insc-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.insc-password-wrapper .insc-input {
    padding-right: 48px;
}

.insc-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insc-toggle-password:hover {
    color: #059669;
}

/* ===== PASSWORD STRENGTH INDICATOR ===== */
.insc-password-strength {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 18px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-bar {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background: #E5E7EB;
    transition: background 0.3s ease;
}

.strength-bar.strength-weak {
    background: #EF4444;
}

.strength-bar.strength-fair {
    background: #F97316;
}

.strength-bar.strength-good {
    background: #EAB308;
}

.strength-bar.strength-strong {
    background: #059669;
}

.strength-text {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

.strength-text.strength-weak {
    color: #EF4444;
}

.strength-text.strength-fair {
    color: #F97316;
}

.strength-text.strength-good {
    color: #EAB308;
}

.strength-text.strength-strong {
    color: #059669;
}

/* ===================================================
   SELECT2 CUSTOM STYLING
   =================================================== */
.select2-container--default .select2-selection--single {
    height: 46px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    background: #FAFBFC;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #1F2937;
    transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #D1D5DB;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background: #FFFFFF;
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1F2937;
    line-height: 43px;
    padding-left: 16px;
    padding-right: 28px;
    font-size: 0.95rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9CA3AF;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 12px;
    top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9CA3AF transparent transparent transparent;
    border-width: 5px 5px 0 5px;
    margin-top: -2px;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #059669 transparent;
    border-width: 0 5px 5px 5px;
}

/* Clear button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #9CA3AF;
    font-size: 1.2rem;
    margin-right: 4px;
    font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #EF4444;
}

/* Dropdown */
.select2-dropdown {
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-top: 4px;
}

.select2-container--default .select2-search--dropdown {
    padding: 10px 12px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #1F2937;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    outline: none;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px;
    font-size: 0.92rem;
    color: #374151;
    transition: background 0.2s ease, color 0.2s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #059669;
    color: #FFFFFF;
}

.select2-container--default .select2-results__option--highlighted[aria-selected=true] {
    background: #047857;
    color: #FFFFFF;
}

.select2-results__message {
    font-size: 0.88rem;
    color: #9CA3AF;
    padding: 10px 14px;
}

/* Ensure Select2 takes full width */
.insc-field .select2-container {
    width: 100% !important;
}

/* =====================================================
   URGENCY BANNER - Bannière d'urgence défilante
   ===================================================== */
.urgency-banner {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.urgency-banner-inner {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
}

.urgency-banner-icon {
    flex-shrink: 0;
    font-size: 1rem;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.urgency-banner-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.urgency-banner-text {
    display: inline-block;
    animation: scroll-banner 25s linear infinite;
    padding-left: 100%;
}

@keyframes scroll-banner {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.urgency-banner-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: inherit;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.urgency-banner-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Adjust hero margin when banner is visible */
body.has-urgency-banner .hero {
    margin-top: calc(72px + 44px);
}

body.has-urgency-banner .evt-hero {
    margin-top: calc(72px + 44px);
}

@media screen and (max-width: 768px) {
    .urgency-banner {
        font-size: 0.8rem;
    }

    .urgency-banner-inner {
        padding: 8px 12px;
    }
}

/* === PRINT === */
@media print {
    .header, .footer, .whatsapp-float, .urgency-banner {
        display: none;
    }

    .hero {
        min-height: auto;
        margin-top: 0;
    }
}

/* Style pour l'année académique dans les labels du formulaire CURSUS */
.insc-label-annee {
    font-size: 0.82em;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 1px 7px;
    border-radius: 4px;
    margin-left: 4px;
}

/* Bannière d'avertissement dans les formulaires de demande */
.insc-warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-left: 4px solid #D97706;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.insc-warning-banner i {
    color: #D97706;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.insc-warning-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: #78350F;
    line-height: 1.6;
}

.insc-warning-banner p strong {
    color: #92400E;
}

.campagne-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #1e40af;
    background: #dbeafe;
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 500;
}