/* === VARIABLES === */
:root {
    --primary-color: #b50000;
    --secondary-color: #ffffff;
    --text-color: #333;
    --background-color: #f5f5f5;
}

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

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === HERO HEADER === */
.hero-header {
    width: 100%;
    margin: 0 auto;
}

.hero-top {
  position: relative;
  width: 100%;
  height: 300px; /* Garde une taille fixe */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.hero-text h1 {
    font-size: 3em;
    margin: 0;
    color: red;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text h2 {
    margin: 10px 0 5px;
    font-size: 1.5em;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-text p {
    margin: 5px 0;
    font-size: 1em;
}

/* === NAVIGATION === */
.main-nav {
    background-color: var(--primary-color);
    text-align: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 15px 25px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: #7c0000;
}

/* === BANNIÈRE === */
.banner {
    width: 100vw;
    margin: 0 auto;
}

/* === CONTENU PRINCIPAL === */
main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* === PRESTATIONS === */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
}

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

/* === FOOTER === */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1em;
    margin-top: auto;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: 10px;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .hero-text h2 {
        font-size: 1.2em;
    }
}

/* === BLOC DE PRÉSENTATION 2 CADRES SUR BANNIÈRE === */
.banner-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 40px;
}

.banner-wrapper img {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.banner-text-box,
.google-box {
    position: relative;
    z-index: 1;
    margin: 40px;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px 40px 30px;
    border-radius: 8px;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 90%;
}

/* Cadre fiche Google */
.google-box {
    text-align: center;
}

.google-box iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 6px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .banner-wrapper {
        display: block;
        position: relative;
        max-height: none;
    }

    .banner-wrapper img {
        position: relative;
        filter: brightness(0.3);
        max-height: 400px;
        object-fit: cover;
        width: 100%;
        height: auto;
    }

    .banner-text-box,
    .google-box {
        margin: 20px auto;
        padding: 30px;
        max-width: 90%;
    }

    .google-box iframe {
        height: 250px;
    }
}

.car-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.car-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.car-card:hover {
  transform: translateY(-5px);
}

.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-info {
  padding: 15px 20px;
  color: var(--text-color);
}

.car-info h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.car-info p {
  margin: 5px 0;
  font-size: 0.95em;
}


.prestations-container {
  max-width: 800px;
  margin: 40px auto;
  background-color: #f5f5f5;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.prestations-container h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #b80000; /* rouge assorti au header */
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.prestations-container h3 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 6px;
  color: #222;
  font-weight: 700;
  border-left: 4px solid #b80000;
  padding-left: 10px;
}

.prestations-container p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #444;
}

.prestations-container p:last-child {
  margin-bottom: 0;
}

.reseaux-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 30px;
  background-color: #f0f0f0;
  flex-wrap: wrap;
}

.reseau-link {
  width: 150px;
  text-align: center;
  text-decoration: none;
  color: #000;
  transition: transform 0.3s ease;
}

.reseau-image-box {
  width: 100px;
  height: 100px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reseau-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.reseau-link p {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.reseau-link:hover {
  transform: scale(1.05);
  color: #b80000;
}

.info-contact {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #f8f8f8; /* optionnel */
}

.horaires-container, .contact-form-container {
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 20px 30px;
  border-radius: 10px;
  width: 45%; /* Important pour les mettre côte à côte */
}


.horaires-container h2,
.contact-form-container h2 {
  color: #b80000; /* rouge MG */
  margin-bottom: 15px;
  font-weight: bold;
}

.horaires-table {
  width: 100%;
  border-collapse: collapse;
}

.horaires-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

form label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
}

form input[type="email"],
form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #b80000;
  border-radius: 5px;
  resize: vertical;
}

form button {
  background-color: #b80000;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #8f0000;
}

.logo-header2 {
  max-width: 300px;      /* Ajuste à la taille souhaitée */
  height: auto;          /* Garde le ratio */
  display: block;
  margin: 0 auto 20px;   /* Centre l'image */
}

.admin-bar {
    background-color: #c62828; /* Rouge intense */
    padding: 10px 0;
    text-align: center;
    border-bottom: 3px solid #8e0000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    position: relative;
}

.admin-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.admin-bar ul li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s, text-shadow 0.3s;
}

.admin-bar ul li a:hover {
    color: #ffe082;
    text-shadow: 0 0 5px rgba(255,255,255,0.4);
}

.lien-modifier {
    display: inline-block;
    padding: 6px 12px;
    background-color: #007BFF;  /* bleu sympa */
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.lien-modifier:hover {
    background-color: #0056b3;
}

/* Popup publicité */

#popup-pub {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #b30000;
    box-shadow: 0 0 15px rgba(179, 0, 0, 0.7);
    max-width: 600px;
    width: 90%;
    z-index: 99999;
    border-radius: 8px;
    animation: fadeIn 0.3s ease forwards;
}

.popup-content {
    position: relative;
    padding: 20px 40px 20px 20px;
}

.popup-inner-content {
    font-size: 1rem;
    color: #333;
}

/* Bouton fermer */

#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #b30000;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s ease;
}

#popup-close:hover {
    color: #ff4d4d;
}

/* Animation fadeIn */

@keyframes fadeIn {
    from {opacity: 0; transform: translateX(-50%) translateY(-10px);}
    to {opacity: 1; transform: translateX(-50%) translateY(0);}
}
.marqueur {
    font-size: 1.5rem;
    color: #c62828;
    margin-bottom: 15px;
    font-weight: bold;
}
.mentions-legales-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #004080;
    text-align: center;
}

.mentions-legales-container h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0070c0;
    border-bottom: 2px solid #0070c0;
    padding-bottom: 0.3rem;
}

.mentions-legales-container p {
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
}

.mentions-legales-container section {
    margin-bottom: 2rem;
}
