/* Variables de couleur */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #FFD700;
    --dark-color: #2C2C2C;
    --light-color: #F5F5F5;
    --white: #FFFFFF;
    --text-color: #333333;
    --emergency-red: #DC143C;
}

/* Bandeau d'urgence */
.emergency-banner {
    background: linear-gradient(135deg, #DC143C 0%, #FF1744 100%);
    color: var(--white);
    padding: 12px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    position: sticky;
    top: 0;
    z-index: 1001;
    animation: pulse-banner 2s ease-in-out infinite;
}

@keyframes pulse-banner {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(220, 20, 60, 0.6);
    }
}

.emergency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.emergency-icon {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

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

.emergency-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.emergency-phone {
    background: var(--white);
    color: var(--emergency-red);
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.emergency-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Numéro de téléphone dans le header */
.phone-header {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.phone-header:hover {
    color: var(--accent-color);
}

/* Reset et styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 50px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-brand .tagline {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.7) 0%, rgba(210, 105, 30, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: var(--light-color);
}

.services h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--primary-color);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Horaires Section */
.horaires {
    padding: 80px 20px;
    background: var(--white);
}

.horaires h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.horaires-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.horaires-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.horaire-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.horaire-item .jour {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.horaire-item .heure {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 16px;
}

.localisation h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.localisation p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: var(--light-color);
}

.contact h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-item p {
    color: #666;
    line-height: 1.8;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.submit-button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    margin: 10px 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .emergency-content {
        gap: 10px;
    }

    .emergency-text {
        font-size: 14px;
    }

    .emergency-phone {
        font-size: 14px;
        padding: 6px 12px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

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

    .horaires-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services h2,
    .horaires h2,
    .contact h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .emergency-banner {
        padding: 8px 10px;
    }

    .emergency-content {
        flex-direction: column;
        gap: 8px;
    }

    .emergency-icon {
        font-size: 20px;
    }

    .emergency-text {
        font-size: 12px;
    }

    .emergency-phone {
        font-size: 13px;
        padding: 6px 12px;
    }

    .phone-header {
        font-size: 12px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .nav-brand h1 {
        font-size: 22px;
    }

    .services h2,
    .horaires h2,
    .contact h2 {
        font-size: 26px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        font-size: 36px;
    }
}
