/* Variables */
:root {
    /* Mode clair (par défaut) */
    --primary-color: #000091;
    --secondary-color: #1e1e1e;
    --accent-color: #e1000f;
    --text-color: #1e1e1e;
    --background-color: #f5f5fe;
    --white: #ffffff;
    --gray-light: #f6f6f6;
    --gray: #666666;
    --card-bg: #ffffff;
    --border-color: #e5e5e5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #1212ff 100%);
    --gradient-hover: linear-gradient(135deg, #1212ff 0%, var(--primary-color) 100%);
}

/* Mode sombre */
[data-theme="dark"] {
    --primary-color: #4646ff;
    --secondary-color: #e1e1e1;
    --text-color: #ffffff;
    --background-color: #121212;
    --white: #1e1e1e;
    --gray-light: #2a2a2a;
    --gray: #a0a0a0;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Bouton mode sombre */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Ajustements pour le mode sombre */
[data-theme="dark"] body {
    background-color: var(--background-color);
    color: var(--text-color);
}

[data-theme="dark"] .formation-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .contact-container {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .card-icon {
    background: var(--gray-light);
}

[data-theme="dark"] .formation-details li,
[data-theme="dark"] .formation-options li {
    color: var(--text-color);
}

[data-theme="dark"] .main-nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-links a {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .hero {
    background: url('../images/batiments/c-est-la-rentree-ce-lundi-au-lycee-jean-mermoz-de-saint-louis-avec-une-17e-classe-de-seconde-qui-vient-s-ajouter-a-des-effectifs-consequents-qui-font-du-lycee-ludovicien-le-plus-grand-d-alsace-photo-l-alsace-1567245623.jpg') no-repeat center center;
    background-size: cover;
}

[data-theme="dark"] .hero::before {
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    background: rgba(0,0,145,0.10);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    color: var(--white);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.13);
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.10);
}

.cta-container {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.7rem 1.7rem;
    font-size: 1rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:first-child {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.cta-button:first-child:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-button.secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 80%;
        text-align: center;
    }

    /* Ajustement des actualités sur mobile */
    .news-grid {
        flex-wrap: nowrap;
        padding: 15px 30px;
    }
    
    .news-card {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
        min-width: calc(100% - 20px);
        max-height: 420px; /* Hauteur maximale réduite */
        overflow: hidden;
    }
    
    .news-image {
        height: 180px; /* Hauteur d'image réduite */
    }
    
    .news-content {
        padding: 15px; /* Padding réduit */
    }
    
    .news-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .news-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Limite à 3 lignes */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Sections communes */
.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* NOUVEAU SYSTÈME SLIDER ACTUALITÉS - Simple et fonctionnel */
.news-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-slider-container {
    position: relative;
    margin: 2rem auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 60px; /* Espace pour les boutons */
}

.news-grid-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.news-grid {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    transition: transform 0.3s ease;
    width: fit-content;
}

.news-card {
    flex: 0 0 320px;
    width: 320px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,145,0.12);
}

.news-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-tag {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    width: fit-content;
}

.news-content h3 {
    margin: 0 0 0.7rem 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more::after {
    content: '→';
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.read-more:hover::after {
    transform: translateX(3px);
}

.news-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.slider-nav:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.slider-nav.hidden {
    display: none;
}

/* Dark mode */
[data-theme="dark"] .news-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .slider-nav {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .slider-nav:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive */
/* NOUVEAU CSS MOBILE - Simple et fonctionnel */
@media (max-width: 768px) {
    .news-slider-container {
        padding: 0 60px;
        margin: 1.5rem auto;
    }
    
    .news-grid-wrapper {
        width: 100%;
        overflow: hidden;
    }
    
    .news-grid {
        gap: 1.5rem;
        width: fit-content;
    }
    
    .news-card {
        flex: 0 0 300px;
        width: 300px;
    }
    
    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .slider-nav.prev {
        left: 8px;
    }
    
    .slider-nav.next {
        right: 8px;
    }
}

@media (max-width: 576px) {
    .news-slider-container {
        padding: 0 55px;
        margin: 1rem auto;
    }
    
    .news-grid-wrapper {
        width: 100%;
        overflow: hidden;
        background: transparent;
    }
    
    .news-grid {
        gap: 1rem;
        width: fit-content;
        transition: transform 0.3s ease;
    }
    
    .news-card {
        flex: 0 0 calc(100vw - 130px);
        width: calc(100vw - 130px);
        max-width: 280px;
        min-width: 250px;
    }
    
    .news-image {
        height: 150px;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-content h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .news-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .slider-nav {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
    }
    
    .slider-nav.prev {
        left: 6px;
    }
    
    .slider-nav.next {
        right: 6px;
    }
}

/* Formations */
.formations-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--white);
}

.formations-tabs {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.tab-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.tab-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.formation-item {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.formation-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.formation-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.formation-item p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Ajustements pour le mode sombre */
[data-theme="dark"] .formations-tabs {
    background: var(--card-bg);
}

[data-theme="dark"] .tab-btn {
    background: var(--white);
    color: var(--text-color);
}

[data-theme="dark"] .tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

[data-theme="dark"] .formation-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--spacing-sm);
    }

    .formation-grid {
        grid-template-columns: 1fr;
    }

    .formation-item {
        padding: var(--spacing-sm);
    }
}

/* Key Numbers Section */
.key-numbers {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.number-card {
    padding: var(--spacing-lg);
}

.number {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* Section Contact */
.contact-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--white);
}

.contact-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-lg);
}

.contact-form {
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    flex: 1;
}

.message-group {
    flex: 2;
}

.submit-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Marianne', sans-serif;
    font-size: 0.9rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray);
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #000066;
}

/* Styles pour les formulaires accessibles */
.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.required {
    color: #e1000f;
    font-weight: bold;
}

.error-message {
    color: #e1000f;
    font-size: 0.8rem;
    margin-top: 3px;
    min-height: 1rem;
    display: block;
}

.form-status {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Styles pour les boutons de navigation dropdown */
.dropdown-trigger {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: 0.75rem 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
}

.dropdown-trigger::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown[aria-expanded="true"] .dropdown-trigger::after {
    transform: rotate(180deg);
}

.dropdown-trigger:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 145, 0.05);
}

.dropdown-trigger:active {
    background-color: rgba(0, 0, 145, 0.1);
}

/* Menu overlay pour mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Améliorations pour les dropdowns */
.dropdown-trigger:focus {
    color: var(--primary-color);
    outline: none;
    background-color: rgba(0, 0, 145, 0.05);
}

/* Classes d'accessibilité pour lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.contact-info {
    border-top: 1px solid var(--gray-light);
    padding-top: var(--spacing-md);
}

.info-row {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.info-row p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray);
    font-size: 0.9rem;
}

.info-row i {
    color: var(--primary-color);
    width: 16px;
}

.info-row a {
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .info-row {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
}

/* Footer simplifié */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-logo {
    height: 40px;
    width: auto;
    /* Suppression du filtre pour une visibilité optimale */
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

/* Effet au survol */
.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Mode sombre : on garde le logo visible */
[data-theme="dark"] .footer-logo {
    opacity: 0.9;
    /* Le logo garde sa couleur originale pour être visible sur fond sombre */
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-info {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Sections spécifiques de la vie lycéenne - uniformisation */
.cdi-section,
.association-section,
.clubs-section,
.evenements-section,
.installations-section {
    padding: var(--spacing-lg) 0;
    background: var(--white);
}

.cdi-grid,
.association-grid,
.clubs-grid,
.evenements-grid,
.installations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.cdi-card,
.association-card,
.club-card,
.evenement-card,
.installation-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.service-item {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
}

/* Styles pour la section UFA */
.ufa-section {
    padding: 4rem 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.ufa-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 0, 145, 0.1) 0%, rgba(0, 0, 145, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.ufa-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(225, 0, 15, 0.08) 0%, rgba(225, 0, 15, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.ufa-section .container {
    position: relative;
    z-index: 1;
}

.ufa-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

.ufa-intro::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 1.5rem auto 0;
    border-radius: 3px;
}

.ufa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ufa-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ufa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ufa-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ufa-card:hover::before {
    opacity: 1;
}

.ufa-card.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #000066 100%);
    color: white;
    border: none;
}

.ufa-card i {
    font-size: 3rem;
    margin-bottom: 1.8rem;
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff5959 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.ufa-card.highlight i {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ufa-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.8rem;
}

.ufa-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.ufa-card.highlight h3 {
    color: white;
}

.ufa-card.highlight h3::after {
    background: rgba(255, 255, 255, 0.5);
}

.ufa-card p {
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-size: 1rem;
}

.ufa-card ul {
    padding-left: 1rem;
    margin-top: 1rem;
    flex-grow: 1;
}

.ufa-card ul li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
}

.ufa-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.ufa-card.highlight ul li::before {
    color: rgba(255, 255, 255, 0.8);
}

.ufa-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff5959 100%);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(225, 0, 15, 0.2);
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ufa-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff5959 0%, var(--accent-color) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.ufa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 0, 15, 0.3);
}

.ufa-btn:hover::before {
    opacity: 1;
}

.ufa-testimonials {
    margin-top: 4rem;
    position: relative;
}

.ufa-testimonials h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.ufa-testimonials h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-card blockquote::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: -2rem;
    left: -1rem;
    z-index: -1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card cite {
    display: block;
    font-weight: 700;
    text-align: right;
    color: var(--primary-color);
    font-style: normal;
    font-size: 1.05rem;
    margin-top: 1rem;
    position: relative;
    padding-top: 0.8rem;
}

.testimonial-card cite::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Media Queries pour la section UFA */
@media (max-width: 1200px) {
    .ufa-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .ufa-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .ufa-section {
        padding: 3rem 0;
    }
    
    .ufa-grid, .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ufa-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .ufa-card {
        padding: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .ufa-testimonials h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .ufa-card {
        padding: 1.5rem;
    }
    
    .ufa-card i {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
    }
    
    .ufa-card h3 {
        font-size: 1.3rem;
    }
    
    .testimonial-card blockquote::before {
        font-size: 4rem;
        top: -1.5rem;
        left: -0.5rem;
    }
    
    .ufa-btn {
        width: 100%;
    }
}

/* Styles pour la section UFA */
.ufa-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 145, 0.04);
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
}

.ufa-card:hover .ufa-card-icon {
    transform: scale(1.1);
    background: rgba(0, 0, 145, 0.08);
}

.ufa-card.highlight .ufa-card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.ufa-card.highlight:hover .ufa-card-icon {
    background: rgba(255, 255, 255, 0.3);
}

.ufa-list {
    list-style: none;
    padding-left: 0 !important;
    margin-top: 1.2rem;
    flex-grow: 1;
}

.ufa-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.5;
}

.ufa-list li strong {
    color: var(--primary-color);
    font-weight: 700;
}

.ufa-card.highlight .ufa-list li strong {
    color: white;
}

.ufa-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--accent-color);
    font-size: 0.85rem;
}

.ufa-card.highlight .ufa-list li::before {
    color: rgba(255, 255, 255, 0.9);
}

/* Styles pour les onglets de filières */
.filiere-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 2rem auto;
    max-width: 1200px;
}

.filiere-filter a {
    padding: 10px 15px;
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.filiere-filter a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filiere-filter a.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

[data-theme="dark"] .filiere-filter a {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .filiere-filter a:hover,
[data-theme="dark"] .filiere-filter a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .filiere-filter {
        gap: 8px;
        overflow-x: auto;
        padding: 0.5rem;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .filiere-filter a {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Base */
@font-face {
    font-family: 'Marianne';
    src: url('https://cdn.jsdelivr.net/npm/@gouvfr/dsfr@1.7.2/dist/fonts/Marianne-Regular.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/npm/@gouvfr/dsfr@1.7.2/dist/fonts/Marianne-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Marianne';
    src: url('https://cdn.jsdelivr.net/npm/@gouvfr/dsfr@1.7.2/dist/fonts/Marianne-Bold.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/npm/@gouvfr/dsfr@1.7.2/dist/fonts/Marianne-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Marianne', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 65px;
}

/* ACCESSIBILITÉ - STYLES DE FOCUS CONFORMES RGAA 4 */
/* Focus visible pour tous les éléments interactifs */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.dropdown a:focus,
.cta-button:focus,
.submit-btn:focus,
.slider-nav:focus,
.menu-btn:focus,
.theme-toggle:focus {
    outline: 2px solid #000091 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 145, 0.2) !important;
    background-color: rgba(0, 0, 145, 0.1) !important;
    transition: all 0.2s ease !important;
}

/* Focus spécifique pour les liens de navigation */
.nav-links a:focus {
    background-color: rgba(0, 0, 145, 0.05) !important;
    color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Focus spécifique pour les dropdown triggers */
.nav-links .dropdown-trigger:focus {
    background-color: rgba(0, 0, 145, 0.05) !important;
    color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Focus pour les éléments de dropdown */
.dropdown-menu a:focus {
    background-color: #e7f3ff;
    color: #000091;
}

/* Focus pour le mode sombre */
[data-theme="dark"] a:focus,
[data-theme="dark"] button:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    outline-color: #4646ff !important;
    box-shadow: 0 0 0 4px rgba(70, 70, 255, 0.3) !important;
    background-color: rgba(70, 70, 255, 0.1) !important;
}

/* Liens d'évitement pour navigation clavier */
.skip-links {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 9999;
    background: #000091;
    padding: 0;
}

.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    color: white;
    background: #000091;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 4px 0;
    transition: all 0.3s ease;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    left: 0;
    top: 0;
    overflow: visible;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation principale */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
}

.main-nav.scrolled .nav-container {
    height: 60px;
}

[data-theme="dark"] .main-nav.scrolled {
    background: rgba(45, 45, 45, 0.98);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    min-height: 65px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 35px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.logo .slogan {
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-top: 0.1rem;
    font-weight: 400;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.9rem;
}

.nav-links > li > a:hover:not(.dropdown-trigger) {
    color: var(--primary-color);
    background-color: rgba(0, 0, 145, 0.05);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.85rem;
}

.dropdown-menu a:hover {
    background-color: var(--gray-light);
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: all 0.3s ease;
}

[data-theme="dark"] .main-nav {
    background: var(--card-bg);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .dropdown-menu a:hover {
    background-color: var(--gray-light);
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .menu-btn {
        display: block;
    }
    
    .nav-content {
        position: relative;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        right: -1rem;
        flex-direction: column;
        background-color: var(--white);
        width: 280px;
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 999;
        padding: 1rem;
        border: 1px solid var(--border-color);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        border: none;
        background-color: var(--gray-light);
        margin-top: 0.5rem;
        border-radius: 4px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 500px;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.75rem;
    }
    
    .dropdown-menu a {
        padding-left: 1.5rem;
    }
    
    .menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    [data-theme="dark"] .nav-links {
        background-color: var(--card-bg);
    }
    
    [data-theme="dark"] .dropdown-menu {
        background-color: var(--gray-light);
    }
}

@media (max-width: 576px) {
    .logo-text h1 {
        font-size: 1rem;
    }

    .logo img {
        height: 30px;
    }

    .slogan {
        font-size: 0.65rem;
    }

    .nav-links {
        padding: 0.5rem 0;
    }

    .nav-container {
        height: 60px;
        padding: 0 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 44vh;
    background: url('../images/batiments/c-est-la-rentree-ce-lundi-au-lycee-jean-mermoz-de-saint-louis-avec-une-17e-classe-de-seconde-qui-vient-s-ajouter-a-des-effectifs-consequents-qui-font-du-lycee-ludovicien-le-plus-grand-d-alsace-photo-l-alsace-1567245623.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 47, 255, 0.5); /* rouge semi-transparent à la place du bleu */
}

[data-theme="dark"] .section-title {
    color: var(--text-color);
}

[data-theme="dark"] .news-date {
    background: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--gray-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--gray);
}

[data-theme="dark"] .hero::before {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .hero-content {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero-subtitle {
    color: #ffffff !important;
}

[data-theme="dark"] .cta-button.secondary {
    border-color: #ffffff;
    color: #ffffff;
}

[data-theme="dark"] .cta-button:first-child {
    background-color: #ffffff;
    border-color: #ffffff;
}

[data-theme="dark"] .logo-text h1 {
    color: var(--primary-color);
}

/* Back to home button */
.back-home {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin: 2rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 100;
}

.back-home i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.back-home:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.back-home:hover i {
    transform: translateX(-3px);
}

/* Dark mode styles for back button */
[data-theme="dark"] .back-home {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .back-home:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Media Queries for back button */
@media (max-width: 992px) {
    .back-home {
        top: 90px;
        left: 15px;
    }
}

@media (max-width: 768px) {
    .back-home {
        padding: 0.6rem 1.2rem;
        margin: 1rem;
        font-size: 0.9rem;
        top: 80px;
        left: 10px;
    }
    
    .back-home i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .back-home {
        padding: 0.5rem 1rem;
        margin: 0.75rem;
        font-size: 0.85rem;
        top: 70px;
        left: 5px;
    }
    
    .back-home span {
        display: none;
    }
    
    .back-home i {
        margin-right: 0;
    }
} 