/* Reset de base */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* TOP BAR */
.top-bar {
    background-color: #000000; /* Couleur sombre pro */
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: center; /* Aligne les infos à droite */
}

.contact-links a, .contact-links span {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

/* Couleur au survol des liens */
.contact-links a:hover {
    color: #fe4e01; /* Ton orange de référence */
}

/* Style spécifique pour les icônes */
.contact-links i {
    color: #fe4e01;
    margin-right: 5px;
}

/* Sur mobile, on cache l'adresse pour gagner de la place */
@media (max-width: 600px) {
    .top-bar .address {
        display: none;
    }
    .top-bar .container {
        justify-content: center; /* On centre le tel et le mail */
    }
}

/*----------------------------- header.php ------------------------------------*/

/* Header fixe en haut */
.site-header-epaviste {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: linear-gradient(rgba(255, 131, 0, 0.8), rgba(255, 0, 0, 0.2)), 
                url('img/epave_full1.jpg');
    background-size: cover;       /* L'image couvre tout l'espace */
    background-position: center;  /* Centre l'image */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header-occasion{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
     background: linear-gradient(rgba(0, 0, 255, 0.8), rgba(0, 0, 255, 0.2)), 
                url('img/epave_full1.jpg');
    background-size: cover;       /* L'image couvre tout l'espace */
    background-position: center;  /* Centre l'image */
    color: white;
    /*height: 70px;*/
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* PAR DÉFAUT (Version PC) */
.header-mobile {
    display: none; /* On cache le menu mobile sur PC */
}

.header-pc {
    display: block;
    background: #000000;
	border-color: white;
    padding: 5px 0;
	border-radius: 10px;
}

.menu-pc {
    display: flex;
    justify-content: space-between;
    align-items: center;
}	

.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600; /* Un peu moins lourd que bold */
    padding: 10px 15px;
    position: relative; /* Nécessaire pour l'animation du trait */
    transition: color 0.3s ease;
}

/* Création du trait animé avec un pseudo-élément */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; /* Au départ, le trait fait 0px */
    height: 2px;
    bottom: 5px;
    left: 15px; /* Aligné avec le début du texte (padding) */
    background-color: #fe4e01; /* Ton orange fétiche */
    transition: width 0.3s ease; /* Animation d'étirement */
}

/* Effet au survol (Hover) */
.nav-links a:hover {
    color: #fe4e01;
}

.nav-links a:hover::after {
    width: calc(100% - 30px); /* Le trait s'étire sur toute la largeur du texte */
}


/* VERSION MOBILE (Écrans de moins de 768px) */
@media (max-width: 768px) {
    .header-pc {
        display: none; /* On cache le menu PC sur mobile */
    }

    .header-mobile {
        display: block;
        background: #000000;
        padding: 10px;
		border-radius: 5px;
    }

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

    .mobile-links {
        display: none; /* Caché par défaut, s'ouvrira en cliquant */
        list-style: none;
        background: #34495e;
        padding: 0;
        margin: 0;
    }

    .mobile-links li a {
        display: block;
        padding: 15px;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid #000000;
    }
}
.logo{
	padding:10px;
	color: #fe4e01;
}

.menu-toggle { display: none; }

@media screen and (max-width: 768px) {
.menu-toggle { display: block; cursor: pointer; padding: 10px; }
.menu-toggle .bar { display: block; width: 25px; height: 3px; margin: 5px; background: white; }

}

/*----------------------------- index.html ------------------------------------*/

/*.header-index{
}*/

/*.logo{
}*/


/* Conteneur split-screen */
.split-container {
    display: flex;
    height: calc(100vh - 70px); /* Hauteur totale moins le header */
    overflow: hidden;
}

.split {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.5s ease;
    position: relative;
    color: white;
}

/* Couleurs distinctes pour tes deux activités */
.left { background: linear-gradient(rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.2)), 
url('img/epave_mini1.jpg');} /* rouge type "Travaux/Dépannage" */
.right { background-image: linear-gradient(rgba(0, 0, 255, 0.2), rgba(0, 0, 255, 0.2)), 
    url('img/epave_mini1.jpg'); } /* Bleu type "Concession/Confiance" */

/* Effet de zoom au survol */
.split:hover { flex: 1.2; }
.left:hover { background: red }
.right:hover { background: blue; }

.content h2 { font-size: 2.5rem; margin-bottom: 15px; text-transform: uppercase; }
.content p { font-size: 1.2rem; margin-bottom: 25px; }

/* Style des boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .split-container { flex-direction: column; }
    .split:hover { flex: 1; }
}


/*----------------------------- epaviste.php - occasion.php ------------------------------------*/
/*-------------login.php - modifier.php - admin.php - admin-liste.php ------------------*/

/* Conteneur de page pour le formulaire */
.form-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: #f2f2f2;
    border-radius: 30px;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.1);
}

.form-container h2 {
    margin-bottom: 20px;
    color: #000000;
    text-align: center;
}

/*----------------------------- epaviste.php - occasion.php ------------------------------------*/


/* Mise en page en deux colonnes */
.epaviste-layout {
    display: flex;
    gap: 30px; /* Espace entre la barre et le contenu */
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Style des boîtes dans la barre latérale */
.sidebar-box-epaviste{
    background: #f2f2f2;
    padding: 20px;
    border-left: 5px solid #fe4e01;
    margin: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	text-align: center;
}

/* Adaptation Mobile : on rempile tout verticalement */
@media (max-width: 800px) {
    .epaviste-layout {
        flex-direction: column;
    }
    .sidebar-info-epaviste {
        order: 2; /* On met la barre sous le contenu sur mobile */
    }
}

/* Mise en page en deux colonnes */
.occasion-layout {
    display: flex;
    gap: 30px; /* Espace entre la barre et le contenu */
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Style des boîtes dans la barre latérale */
.sidebar-box-occasion{
    background: #f2f2f2;
    padding: 20px;
    border-left: 5px solid blue;
    margin: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	text-align: left;
}
.VM{
	color: #fe4e01;
}

/*        commun Class section padding     */
.section-padding{
	padding : 50 px;
}

/* Adaptation Mobile : on rempile tout verticalement */
@media (max-width: 800px) {
    .occasion-layout {
        flex-direction: column;
    }
    .sidebar-info-occasion{
        order: 2; /* On met la barre sous le contenu sur mobile */
    }
}

/* MAPS */

/* Rendre la carte Google Maps fluide */
.map-responsive {
    overflow: hidden;
    padding-bottom: 30%; /* Ratio pour la carte */
    position: relative;
    height: 0;
}
.map-responsive iframe {
    left: 0; top: 0; height: 100%; width: 100%; position: absolute;
}

/* CONTACT */

/* Style des champs de saisie */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Focus : quand l'utilisateur clique dans le champ */
.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #3498db; /* Bleu par défaut */
}

/* On adapte la couleur selon la page */
.body-page-epaviste .contact-form input:focus { border-color: #fe4e01; }

/* Textarea plus grand pour le message */
.contact-form textarea {
    height: 120px;
    resize: vertical;
}

/* Bouton d'envoi */
.btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
	background-color: #000000;
}
.btn-submit a:hover{
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
	background-color: #999999;
}

/* Couleurs dynamiques des boutons */
.body-page-epaviste .btn-submit { background: #000000; }
.body-page-epaviste .btn-submit:hover { background: #d35400; }

.body-page-occasion .btn-submit { background: #000000; }
.body-page-occasion .btn-submit:hover { background: #2980b9; }


/* SERVICES  */

/* Grille de services et photos */
.services-grid, .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card1 {
    background: white;
    padding: 20px;
	margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Fond de la modale */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
	overflow-y: auto;  /* Autorise le scroll vertical si besoin */
    display: none;     /* Garde-le en none pour le JS */
    backdrop-filter: blur(5px); /* Floute l'arrière-plan pour le style */
}

/* Boîte blanche au centre */
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.modal-content img {
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
	width:50%;
}

.close-modal {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 30px;
    cursor: pointer;
}

.modal-desc{
	text-align: justify;
}

/* On rend les cards cliquables visuellement */
.card-service { cursor: pointer; transition: transform 0.2s; }
.card-service:hover { transform: translateY(-5px); border-color: #fe4e01; }

.mobile-arrow {
    display: none;
}
@media (max-width: 768px) {
    .card-service {
        position: relative; /* Nécessaire pour placer la flèche précisément */
        padding-right: 40px; /* On laisse de la place à droite pour l'icône */
    }

    .mobile-arrow {
        display: block; /* On l'affiche sur mobile */
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%); /* Centre verticalement */
        color: #2e7d32; /* La couleur de votre choix */
        font-size: 1.2rem;
    }
}

/* PHOTOS */

.gallery-modal {
   background-color: #fff;
    margin: 30px auto; /* 30px d'espace en haut et EN BAS */
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
}

.modal-main-photo img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #000;
}

#vehicule-thumbs-display {
    margin-top: 15px;
    justify-content: center;
    /*display: flex;*/
    gap: 10px;
}

.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Garde les proportions des photos auto */
    border-radius: 8px;
}

/* La grille des photos (déjà définie, mais on ajoute un curseur) */
.photo-grid img {
    cursor: pointer; /* Indique que l'image est cliquable */
    transition: transform 0.2s ease;
}
.photo-grid img:hover {
    transform: scale(1.03); /* Petit effet de zoom au survol */
}

.vignettes-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
    gap: 8px;
    margin-top: 10px;
}

.vignette {
    width: 100%;
    height: 60px;
    object-fit: cover; /* Recadre proprement sans déformer */
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.vignette:hover {
    transform: scale(1.05);
    border-color: #3498db;
}

/* Le fond noir semi-transparent de la lightbox */
.lightbox-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); /* Noir semi-transparent */
    align-items: center; /* Centrage vertical */
    justify-content: center; /* Centrage horizontal */
}

/* L'image à l'intérieur de la lightbox */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain; /* L'image s'adapte sans déformer */
}

/* Le bouton de fermeture (X) */
.close-btn {
    position: absolute;
    top: 20px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.close-btn:hover, .close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/*----------------------------- footer.php ------------------------------------*/

.site-footer {
    background: #000000;
    color: white;
    padding: 40px 5% 20px;
    margin-top: 50px;
}

/* Bordure dynamique selon la page */
.body-page-epaviste .site-footer { border-top: 5px solid red; }
.body-page-occasion .site-footer { border-top: 5px solid blue; }

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col { flex: 1; min-width: 200px; }
.footer-col h3 { margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #bdc3c7; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: white; }

.social-links { display: flex; gap: 15px; }
.social-icon {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: #95a5a6;
}

/*-------------login.php - modifier.php - admin.php - admin-liste.php ------------------*/

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}

.admin-table th, .admin-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.btn-edit { color: #2980b9; text-decoration: none; font-weight: bold; margin-right: 10px; }
.btn-delete { color: #c0392b; text-decoration: none; font-weight: bold; }

.btn-add {
    display: inline-block;
    padding: 10px 15px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* verif mail */
.captcha-box {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.captcha-box label {
    font-size: 0.95rem;
    color: #555;
}

.captcha-box strong {
    color: #fe4e01;
    font-size: 1.1rem;
}

.captcha-box input {
    width: 80px !important; /* Petit champ pour la réponse */
    margin: 0 !important;
    text-align: center;
    border: 2px solid #2980b9 !important;
}

/* INFOS PRATIQUES */

.info-pratique {
    background: #000000; /* Gris anthracite pro */
    color: white;
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid #fe4e01; /* Rappel orange */
}

.subtitle-pratique {
    margin-bottom: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.documents-flex {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.doc-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.doc-item i.fa-circle-check {
    color: #2ecc71; /* Vert sécurité */
}

.link-histovec {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #fe4e01;
}

.link-histovec:hover {
    color: #fe4e01;
}

.link-histovec i {
    font-size: 0.7rem;
}

/* HORAIRES */

.horaires-section {
    background-color: #1a1a1a; /* Fond sombre élégant */
    color: white;
    padding: 60px 0;
}

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

.horaires-card h3, .acces-card h3 {
    color: #fe4e01;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.horaires-list {
    list-style: none;
    padding: 0;
}

.horaires-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.horaires-list li strong { color: #324355;; }
.horaires-list li .ferme { color: #e74c3c; }

.section-padding-horaire{
padding: 110px 0;}

.rdv-mention {
    font-size: 1.2rem;
    color: #333;
    margin-top: 15px;
    font-style: italic;
	font-weight: bold;
}

.btn-itineraire {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #fe4e01;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-itineraire:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.zone-info { color: #bbb; font-size: 0.9rem; margin-top: 5px; }

@keyframes pulse-red {
    0% { color: #2e7d32; transform: scale(1); }
    50% { color: #e53935; transform: scale(1.05); } /* Passe au rouge et grossit un peu */
    100% { color: #2e7d32; transform: scale(1); }
}

.highlight-77 {
    display: inline-block;
    font-weight: bold;
    animation: pulse-red 2s infinite ease-in-out;
}

/* Bouton Accès gaellerie */

.floating-gallery-btn {
    position: fixed;
    top: 40px; /* Distance du bas */
    right: 30px;  /* Distance de la droite */
    background-color: #fe4e01; /* Ton orange */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px; /* Forme de bulle */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000; /* Pour passer devant tout le monde */
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-gallery-btn i {
    font-size: 1.5rem;
}

.floating-gallery-btn .btn-text {
    display: none; /* Caché par défaut */
    margin-left: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Effet au survol : la bulle s'allonge pour afficher le texte */
.floating-gallery-btn:hover {
    width: 140px; /* S'élargit */
    background-color: #d35400; /* Orange plus foncé */
}

.floating-gallery-btn:hover .btn-text {
    display: inline; /* Affiche "Le Parc" au survol */
}

/* Responsive : On le réduit un peu sur mobile */
@media (max-width: 768px) {
    .floating-gallery-btn {
		top: 40px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .floating-gallery-btn:hover { width: 50px; } /* On ne l'allonge pas sur mobile pour ne pas gêner */
    .floating-gallery-btn .btn-text { display: none !important; }
}
.icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ef4444; /* Rouge notification */
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #fe4e01; /* Rappel de la couleur du bouton pour l'unité */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* On ajuste un peu le bouton pour que le badge ne soit pas coupé */
.floating-gallery-btn {
    overflow: visible !important; /* Important pour voir le badge qui dépasse */
}

.floating-reviews-btn {
    position: fixed;
    top: 110px; /* Placé sous le bouton 7/7 (40px + 60px + 10px de marge) */
    right: 30px;
    background-color: #000000; /* Jaune Or pour les avis */
    color: #f1c40f; /* Texte sombre pour le contraste */
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0 15px; /* Pour le texte au survol */
    box-sizing: border-box;
	
}

.floating-reviews-btn i {
    font-size: 1.5rem;
}

.floating-reviews-btn .btn-text {
   display: inline; /* On affiche la note en permanence sur PC */
    margin-left: 8px;
    font-size: 1rem;
    color: #ffffff;
}

/* Effet au survol */
.floating-reviews-btn:hover {
    width: 150px;
    background-color: #f39c12; /* Orange-jaune plus soutenu */
    color: white;
}

.floating-reviews-btn:hover .btn-text {
    display: inline;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .floating-reviews-btn {
       top: 90px; 
        right: 20px;
       /* width: 40px;*/
        height: 40px;
    }
    .floating-reviews-btn .btn-text {
        display: inline;
  margin-left: 8px;
  font-size: 0.7rem;
  color: #ffffff;
}
}
/* AVIS */

.avis-section {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.stars {
    color: #f1c40f; /* Jaune or */
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.avis-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #000000;
}

.btn-google-review {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background-color: #4285F4; /* Bleu Google */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

.btn-google-review:hover {
    background-color: #357abd;
    transform: scale(1.05);
}

.btn-google-review i {
    margin-right: 10px;
}