/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs principales - Palette marron */
    --primary-color: #8B4513;          /* Marron classique */
    --secondary-color: #D2691E;        /* Marron chocolat clair */
    --accent-color: #A0522D;          /* Marron terre cuite */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    
    /* Couleurs neutres */
    --dark-color: #3E2723;            /* Marron foncé */
    --light-color: #F5F1E6;           /* Beige clair */
    --gray-color: #8D6E63;            /* Marron grisâtre */
    --white-color: #ffffff;
    --black-color: #2c3e50;
    
    /* Backgrounds */
    --bg-light: #FAF8F2;              /* Fond beige très clair */
    --bg-dark: #5D4037;               /* Marron foncé pour backgrounds */
    
    /* Dégradés marron */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #A0522D);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #CD853F);
    
    /* Typographie */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    
    /* Bordures */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(139, 69, 19, 0.1);
    --shadow-md: 0 4px 12px rgba(139, 69, 19, 0.15);
    --shadow-lg: 0 8px 24px rgba(139, 69, 19, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--light-color);
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

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

.logo-main {
    color: var(--dark-color);
    font-size: 1.2rem;
}

.logo-sub {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    list-style: none;
    border: 1px solid var(--light-color);
}

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

.dropdown-menu li {
    border-bottom: 1px solid var(--light-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--dark-color);
    transition: all var(--transition-fast);
}

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

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

.btn-login,
.btn-admin,
.btn-logout,
.btn-client {
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-login:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-admin {
    background-color: var(--success-color);
    color: var(--white-color);
}

.btn-logout {
    background-color: var(--danger-color);
    color: var(--white-color);
}

.btn-client {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: all var(--transition-normal);
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, var(--dark-color), #5D4037);
    color: var(--light-color);
    padding: var(--space-sm) 0;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

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

.hero-subtitle {
    font-size: 1rem;
    color: rgba(245, 241, 230, 0.9);
    margin-bottom: var(--space-lg);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.75rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white-color);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A0522D, #8B4513);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image i {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
}

/* ===== FLASH MESSAGES ===== */
.flash-messages {
    padding: 1rem 0;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: 60vh;
    padding: var(--space-lg) 0;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-col h4 {
    color: var(--light-color);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.footer-logo-main {
    color: var(--light-color);
}

.footer-logo-sub {
    color: var(--secondary-color);
}

.footer-description {
    color: rgba(245, 241, 230, 0.8);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links,
.footer-services,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-services li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(245, 241, 230, 0.8);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-services li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(245, 241, 230, 0.8);
}

.footer-services i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(245, 241, 230, 0.8);
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(245, 241, 230, 0.6);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(245, 241, 230, 0.6);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .hero-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image i {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        justify-content: flex-start;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1000;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.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;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }


.services-container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.4em;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--gray-color);
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
    font-size: 0.95em;
}

.service-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A0522D, #8B4513);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

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

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* ===== TABLE STYLE ===== */
.main-content table {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    font-size: 15px;
}

.main-content thead {
    background: var(--gradient-primary);
    color: #ffffff;
}

.main-content thead th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-content tbody tr {
    transition: background 0.3s ease, transform 0.2s ease;
}

.main-content tbody tr:nth-child(even) {
    background-color: var(--light-color);
}

.main-content tbody tr:hover {
    background-color: #F0E6D6;
    transform: scale(1.01);
}

.main-content td {
    padding: 14px;
    text-align: center;
    color: var(--dark-color);
}

.main-content th,
.main-content td {
    border-bottom: 1px solid #e1e1e1;
}

@media (max-width: 768px) {
    .main-content table {
        font-size: 14px;
    }

    .main-content thead {
        display: none;
    }

    .main-content table,
    .main-content tbody,
    .main-content tr,
    .main-content td {
        display: block;
        width: 100%;
    }

    .main-content tr {
        margin-bottom: 15px;
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        padding: 10px;
    }

    .main-content td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .main-content td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--primary-color);
    }
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    gap: 1rem;
}

.services-list li {
    background: var(--bg-dark);
    color: var(--light-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.services-list li::before {
    content: "✔";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.75rem;
}

/* ===== STYLES SPÉCIFIQUES POUR LA PAGE DE LOGIN ===== */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    max-width: 420px;
    width: 100%;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.card h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.card > p {
    color: var(--gray-color);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    display: block;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #E0D6CC;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-color);
    box-sizing: border-box;
    font-family: var(--font-body);
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Style spécifique pour le bouton de login */
.card .btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-body);
    width: 100%;
}

.card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(139, 69, 19, 0.3);
}

.card .btn:active {
    transform: translateY(0);
}

.card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.card .btn:hover::before {
    left: 100%;
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive design pour le login */
@media (max-width: 480px) {
    .card {
        padding: 1.8rem;
        margin: 2rem 1rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 0.8rem 1rem;
    }
    
    .card .btn {
        padding: 0.9rem 1.2rem;
    }
}

/* Style pour les messages d'erreur/succès dans le login */
.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-error {
    background-color: #FDF2F2;
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background-color: #F0FDF4;
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Style pour le lien "Mot de passe oublié" */
.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Style pour le lien d'inscription */
.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-color);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}



/* Formulaire de contact */

/* Container et grille */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-lg-8 {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
    padding: 0 15px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Marges utilitaires */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* Textes */
.text-center {
    text-align: center;
}

.text-primary {
    color: #007BFF; /* bleu par défaut */
}

/* Titres */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
}

/* Carte du formulaire */
.contact-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Labels et champs */
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-control,
.form-select,
textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
    transition: border-color 0.2s;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #007BFF;
    outline: none;
}

/* Boutons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #007BFF;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-lg {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
}

/* Grille pour bouton */
.d-grid {
    display: grid;
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.d-none {
    display: none !important;
}

.text-light {
    color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
