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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
}

header {
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.hero {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    background-image: url('../images/garage2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: normal;
}

.hero h2, .hero p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
}

section {
    padding: 4rem 2rem;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .floating-menu {
        left: 0;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        padding: 15px;
        background: rgba(0, 0, 0, 0.5);
    }

    .menu {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .menu a {
        font-size: 16px;
        padding: 10px 20px;
    }

    .floating-menu:hover {
        transform: none;
    }

    .menu a:hover {
        transform: translateY(-2px);
    }

    .main-logo {
        top: 80px;
        width: 90%;
    }

    .main-logo img {
        max-width: 1560px;
        margin: 0 auto;
        display: block;
    }

    .address-container {
        bottom: 30px;
    }
    
    .address {
        font-size: 1rem;
    }
}

.logo img {
    max-height: 60px;
    width: auto;
}

.logo a {
    display: block;
    text-decoration: none;
}

/* Style du menu flottant */
.floating-menu {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    padding: 40px 35px;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
}

.menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 35px;
}

.menu a {
    font-family: 'Montserrat', sans-serif;
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 0;
    position: relative;
    transition: all 0.4s ease;
    display: block;
    white-space: nowrap;
    background: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.menu a:hover {
    color: #FFD700;
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Style du logo central */
.main-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.main-logo:hover {
    opacity: 1;
}

.main-logo h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 3px;
}

/* Pour le futur logo en image */
.main-logo img {
    max-width: 2080px;
    height: auto;
}

/* Style des informations */
.info-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.address-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 10px 20px;
    z-index: 100;
    text-align: center;
    border-radius: 5px;
    background: none;
    transition: opacity 0.3s ease;
}

.address {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 1.1rem;
    margin: 5px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    text-align: center;
    font-weight: 500;
}

.phone-number {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

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

.hours-title {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hours-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 15px 30px;
    align-items: center;
}

.day {
    font-family: 'Montserrat', sans-serif;
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: right;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hours {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 1.1rem;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.google-maps-container {
    margin-top: 30px;
    text-align: center;
}

.google-maps-container.fade-in.delay-4 {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 4.5s;
}

.google-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.google-maps-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.maps-icon {
    font-size: 1.3rem;
}

.delay-1 {
    animation-delay: 4s;
}

.delay-2 {
    animation-delay: 8s;
}

.delay-3 {
    animation-delay: 12s;
}

.delay-4 {
    animation-delay: 4.5s;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .info-container {
        width: 90%;
        padding: 20px;
    }

    .address-container {
        bottom: 60px;
        width: 90%;
        padding: 10px;
    }

    .address {
        font-size: 1rem;
    }

    .phone-number {
        font-size: 1.2rem;
    }

    .hours-grid {
        gap: 10px;
    }

    .day, .hours {
        font-size: 0.9rem;
        text-align: center;
    }

    .hours-title {
        font-size: 1.2rem;
    }
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

/* Ajout pour les éléments de la grille des horaires */
.hours-grid > div {
    opacity: 0;
}

.hours-grid .day:nth-child(1), .hours-grid .hours:nth-child(2) {
    animation: fadeIn 1s ease forwards;
    animation-delay: 2.5s;
}

.hours-grid .day:nth-child(3), .hours-grid .hours:nth-child(4) {
    animation: fadeIn 1s ease forwards;
    animation-delay: 2.7s;
}

.hours-grid .day:nth-child(5), .hours-grid .hours:nth-child(6) {
    animation: fadeIn 1s ease forwards;
    animation-delay: 2.9s;
}

.hours-grid .day:nth-child(7), .hours-grid .hours:nth-child(8) {
    animation: fadeIn 1s ease forwards;
    animation-delay: 3.1s;
}

.hours-grid .day:nth-child(9), .hours-grid .hours:nth-child(10) {
    animation: fadeIn 1s ease forwards;
    animation-delay: 3.3s;
}

.hours-grid .day:nth-child(11), .hours-grid .hours:nth-child(12) {
    animation: fadeIn 1s ease forwards;
    animation-delay: 3.5s;
}

.hours-grid .day:nth-child(13), .hours-grid .hours:nth-child(14) {
    animation: fadeIn 1s ease forwards;
    animation-delay: 3.7s;
}

.social-media {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    background: none;
    padding: 5px 10px;
    z-index: 100;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.facebook-icon {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.facebook-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .address-container {
        bottom: 60px;
        width: 90%;
        max-width: 400px;
    }
    
    .social-media {
        bottom: 60px;
        right: 15px;
    }
    
    .facebook-icon {
        width: 25px;
        height: 25px;
    }
}

/* Style pour la page carrosserie */
.services-carrosserie {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2;
    position: relative;
}

.service-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 60px;
    border-radius: 10px;
    border: 2px solid #FFD700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item h2 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.service-item:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .services-carrosserie {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    .service-item {
        padding: 20px 40px;
        width: 90%;
    }

    .service-item h2 {
        font-size: 1.5rem;
    }
}

/* Style pour les articles de services */
.articles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    align-items: start;
    margin-bottom: 200px;
    width: 100%;
}

.service-article {
    position: relative;
    background: rgb(40, 40, 40);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.service-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgb(40, 40, 40);
    padding: 0;
    width: 100%;
}

.service-text.active {
    max-height: 500px;
    padding: 20px;
}

.service-text p {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.service-image h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

@media (max-width: 768px) {
    .articles-container {
        grid-template-columns: 1fr;
        padding: 15px;
        margin-bottom: 250px;
    }

    .service-image {
        height: 300px;
    }

    .service-image h2 {
        font-size: 1.5rem;
    }

    .address-container {
        padding-bottom: 60px;
    }
}

/* Style du bouton de fermeture */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1); /* Fond plus clair */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Overlay quand une rubrique est active */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 0.75; /* Plus transparent pour plus de luminosité */
}

/* Amélioration de la visibilité du titre */
.service-article.active h2 {
    text-shadow: none;
    color: white;
    filter: none;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Animation au survol */
.service-image:hover {
    transform: scale(1.02);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Style du logo dans le header */
.header-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    transform: none;
    z-index: 1000;
    opacity: 0.5;
    transition: opacity 0.5s ease;
    padding: 5px;
}

.header-logo:hover {
    opacity: 1;
}

.header-logo img {
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ajout des media queries pour la responsivité */
@media (max-width: 1200px) {
    .articles-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 20px;
    }

    .header-logo img {
        max-width: 210px;
        width: auto;
    }

    .floating-menu {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .articles-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .header-logo img {
        max-width: 140px;
        width: auto;
    }

    .floating-menu {
        position: fixed;
        left: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        transform: none;
        background: rgba(0, 0, 0, 0.8);
        padding: 10px;
    }

    .menu {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .menu a {
        font-size: 16px;
        padding: 8px;
    }

    .service-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        max-width: 105px;
        width: auto;
    }

    .menu {
        gap: 10px;
    }

    .menu a {
        font-size: 14px;
        padding: 5px;
    }

    .service-image {
        height: 200px;
    }

    .service-text p {
        font-size: 14px;
    }
}

/* Ajustement de la section hero pour la page carrosserie */
#carrosserie.hero {
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0 150px 0; /* Augmentation du padding bottom pour éviter que le contenu ne soit caché par le footer */
    position: relative;
}

/* Style pour le footer (bas de page) */
.address-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 10px 20px;
    z-index: 100;
    text-align: center;
    border-radius: 5px;
    background: none;
    transition: opacity 0.3s ease;
}

/* Sur les pages avec footer-logo, remettre les éléments en bas */
#carrosserie .address-container,
#mecanique .address-container {
    bottom: 30px;
}

.social-media {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    background: none;
    padding: 5px 10px;
    z-index: 100;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

/* Sur les pages avec footer-logo, remettre le social-media en bas */
#carrosserie .social-media,
#mecanique .social-media {
    bottom: 30px;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .address-container {
        bottom: 60px;
        width: 90%;
        max-width: 400px;
    }
    
    .social-media {
        bottom: 60px;
        right: 15px;
    }
}

/* Ajout du style pour le bouton mentions légales */
.legal-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
    background: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Sur les pages avec footer-logo, remettre le legal-button en bas */
#carrosserie .legal-button,
#mecanique .legal-button {
    bottom: 30px;
}

.legal-button a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.legal-button:hover a {
    color: #FFD700;
}

/* Style du logo en bas de page (footer) - positionné au-dessus des éléments du bas */
.footer-logo {
    position: fixed;
    bottom: 200px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo img {
    max-width: 750px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: auto;
}

/* Sur les pages avec footer-logo, remettre les éléments en bas */
.page-with-footer-logo .address-container,
.page-with-footer-logo .social-media,
.page-with-footer-logo .legal-button {
    bottom: 30px;
}

@media (max-width: 768px) {
    .legal-button {
        bottom: 60px;
        left: 15px;
    }
    
    .footer-logo {
        bottom: 180px;
    }
    
    .footer-logo img {
        max-width: 600px;
    }
    
    /* Sur mobile, remettre les éléments en bas */
    #carrosserie .address-container,
    #mecanique .address-container,
    .page-with-footer-logo .address-container {
        bottom: 60px !important;
    }
    
    #carrosserie .social-media,
    #mecanique .social-media,
    .page-with-footer-logo .social-media {
        bottom: 60px !important;
    }
    
    #carrosserie .legal-button,
    #mecanique .legal-button,
    .page-with-footer-logo .legal-button {
        bottom: 60px !important;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        bottom: 160px;
    }
    
    .footer-logo img {
        max-width: 500px;
    }
    
    /* Sur très petit écran, remettre les éléments en bas */
    #carrosserie .address-container,
    #mecanique .address-container,
    .page-with-footer-logo .address-container {
        bottom: 60px !important;
    }
    
    #carrosserie .social-media,
    #mecanique .social-media,
    .page-with-footer-logo .social-media {
        bottom: 60px !important;
    }
    
    #carrosserie .legal-button,
    #mecanique .legal-button,
    .page-with-footer-logo .legal-button {
        bottom: 60px !important;
    }
}

/* Style pour le formulaire de connexion */

/* Styles pour le formulaire de contact */
.contact-container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    z-index: 2;
    position: relative;
}

.contact-title {
    color: #FFD700;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    padding: 15px 30px;
    background: #FFD700;
    color: black;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #FFC800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.form-message {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-top: 10px;
}

.form-message.sending {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.recaptcha-error {
    display: none;
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
}

.recaptcha-error.error {
    display: block;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 20px;
        margin: 20px;
    }

    .contact-title {
        font-size: 1.5rem;
    }
}