:root {
    --primary-color: #d4af37;
    --secondary-color: #333;
    --background-color: #fff;
    --light-gray: #f9f9f9;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden; /* Empêche le scroll horizontal et masque la barre blanche */
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--background-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-info {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.hero {
    position: relative;
    height: 80vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--background-color);
}

.hero-bg-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.bg-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s;
    z-index: 1;
}

.bg-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition);
}

.btn:hover {
    background-color: #b8982b;
}

.about, .gallery, .Reportages, .services, .contact {
    padding: 4rem 2rem;
}

.about, .services {
    background-color: var(--light-gray);
}

.about h2, .gallery h2, .Reportages h2, .services h2, .contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--secondary-color);
}

.about p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-link {
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--background-color);
    padding: 0.5rem;
    margin: 0;
    text-align: center;
}

.reportages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.reportages-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.reportages-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reportages-link {
    text-decoration: none;
    color: inherit;
}

.reportages-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.reportages-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--background-color);
    padding: 0.5rem;
    margin: 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-item {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-text {
    flex: 1;
    padding-right: 50px;
    text-align: left;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    text-align: left;
}

.case {
    width: 100%;
}

/* Utiliser text-align: center */
.button-container {
    text-align: center;
}

/* Ou utiliser Flexbox */
.button-container {
    display: flex;
    justify-content: center;
}

.cta {
    display: inline-block;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: black;
    color: white;
}

/* Style de survol pour inverser les couleurs */
.cta:hover {
    background-color: white;
    color: black;
    border: 1px solid black; /* Ajoute une bordure pour améliorer la visibilité */
}
    
footer {
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    list-style: none;
    margin-bottom: 1rem;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links li a {
    color: var(--background-color);
    text-decoration: none;
}

.social-links {
    display: flex;
    list-style: none;
    margin-bottom: 1rem;
}

.social-links li {
    margin: 0 0.5rem;
}

.social-links li a {
    color: var(--background-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .contact-info {
        display: block;
        text-align: center;
        margin-top: 1rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 1rem;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active + ul {
        display: flex;
    }
}

.logo-desktop {
  display: inline;
}

.logo-mobile {
  display: none;
}

@media screen and (max-width: 700px) {
  .logo-desktop {
    display: none;
  }
  .logo-mobile {
    display: inline;
  }
}

#anti_robot {
    display: none !important;
    position: absolute !important;
   left: 55%;
bottom: 20px;
transform: translateX(-50%);
width: 300px;
height: auto;
opacity: 1;
pointer-events: auto;
z-index: 9999;
}

.call-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.7em 1.2em 0.7em 0.7em;
  border-radius: 30px;
  box-shadow: var(--shadow);
  text-decoration: none;
  z-index: 2000;
  transition: var(--transition);
}

.call-floating-btn:hover {
  background: #b8982b;
  color: var(--background-color);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.call-floating-btn svg {
  margin-right: 0.7em;
  flex-shrink: 0;
}

.call-floating-text {
  display: inline;
}

@media (max-width: 700px) {
  .call-floating-btn {
    font-size: 0.98rem;
    padding: 0.6em 0.6em;
    bottom: 16px;
    right: 16px;
    min-width: 0;
    justify-content: center;
  }
  .call-floating-text {
    display: none;
  }
  .call-floating-btn svg {
    margin-right: 0;
  }
}


/* HONEYPOT CSS ANTI-ROBOT 2 juillet */

.honeypot-wrapper {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  visibility: hidden;
}

#robot-field:focus,
#robot-field:not(:placeholder-shown) {
  /* Redirection CSS via :target */
  color: red; /* facultatif pour debug */
}

#robot-field:focus + #trigger-redirect,
#robot-field:not(:placeholder-shown) + #trigger-redirect {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 9999;
  background: transparent;
  animation: redirect 0.1s forwards;
}

@keyframes redirect {
  to {
    content: url("/blocked.html");
  }
}
