/* --- Reset global --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #251c7d;
    color: white;
    line-height: 1.6;
    scroll-behavior: smooth;
}

:root {
    --main-bg: #251c7d;
    --main-color: white;
    --accent: #4169E1;
    --accent-hover: #3656c9;
    --shadow: rgba(0,0,0,0.3);
}

/* --- Structure globale du contenu --- */
body {
    margin-left: 3cm;
    margin-right: 3cm;
    text-align: justify;         
}

h1, h2, h3 {
    text-align: center;
    font-family: 'Tangerine', cursive;
}

/* --- Titre principal --- */
h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    margin: 60px 0 10px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

h1:hover {
    transform: scale(1.05);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin: 30px 0 15px 0;
    margin-top: 15px;
}

h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 20px 0 10px 0;
}

h4 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 10px;
}

h5 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
}

/* --- Logo  --- */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 220px;
    height: auto;
    z-index: 10;
}

/* --- Conteneur du titre principal --- */
.main-title-container {
    position: relative;
    text-align: center;
    padding-top: 10px; 
    padding-bottom: 40px;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.divider img {
    width: 300px;
    height: auto;
    margin: 10px auto;
    display: block;
}

/* --- Menu principal --- */
.main-menu {
    margin: 20px 0 30px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.main-menu ul {
    list-style: none;
    display: inline-flex;
    gap: 20px;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.main-menu li a {
    text-decoration: none;
    color: var(--main-color);
    font-weight: 600;
    font-size: 32px;
    padding: 8px 20px;
    border-radius: 8px;
    border: 2px solid var(--main-color);
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Tangerine', cursive;
    font-style: italic;
}

.main-menu li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: width 0.3s;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.main-menu li a:hover::after {
    width: 100%;
}

.main-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    transform: scale(1.05);
}

.caption {
  font-size: 0.9rem;
  text-align: center;
  color: #555;
  font-style: italic;
}

.image-texte-container {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.illustration-droite {
  flex: 0 0 35%;
  text-align: center;
  margin: 0;
}

.illustration-droite img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.illustration-droite figcaption {
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  margin-top: 0.5rem;
}

.texte-page {
  flex: 1 1 60%;
  text-align: justify;
}

@media (max-width: 768px) {
  .image-texte-container {
    flex-direction: column;
  }
  .illustration-droite, .texte-page {
    flex: 1 1 100%;
  }
  .illustration-droite img {
    max-width: 100%;
  }
}

.intro {
  text-align: left;
  margin-top: 40px;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.intro .etoiles {
  display: block;
  margin: 0 auto 20px auto; 
  width: 120px; 
  height: auto; 
}

u, a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;     
}

.zone-intervention {
  margin: 3rem auto;
  max-width: 1000px;
}

.zone-intervention .texte-image {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem; 
  flex-wrap: wrap; 
}

.zone-intervention .texte {
  flex: 1 1 55%; 
}

.zone-intervention .illustration-droite {
  flex: 1 1 40%; 
  text-align: center;
}

.zone-intervention .illustration-droite img {
  width: 100%;
  height: auto;
  max-width: 600px; /* augmenté */
  border-radius: 8px; 
}

.zone-intervention figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .zone-intervention .texte-image {
    flex-direction: column;
    align-items: center;
  }

  .zone-intervention .illustration-droite {
    margin-top: 1rem;
  }
}

.intro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1;
  min-width: 300px;
}

.intro-image {
  flex: 1;
  text-align: center;
}

.intro-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.side-by-side {
  display: flex;        
  gap: 30px;            
  flex-wrap: wrap;      
  align-items: flex-start;
  margin: 40px 0;      
}

.text-side, .image-side {
  flex: 1;             
  min-width: 250px;     
}

.image-side img {
  width: 100%;          
  height: auto;         
  border-radius: 15px;  
  object-fit: cover;    
}

/* --- Section contact --- */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin: 40px auto;
    max-width: 900px;
    flex-wrap: wrap;
    font-family: 'Times New Roman', Times, serif;
    text-align: justify;
}

.contact-section img {
    width: min(300px, 50vw); /* augmenté */
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 15px var(--shadow);
    max-width: 80%;
}

/* --- Informations de contact --- */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.contact-info p, .contact-info a {
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
}

.contact-info a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* --- Formulaire de contact --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto;
    font-family: 'Times New Roman', Times, serif;
    text-align: justify;
}

.contact-form label {
    font-size: 14px;
    margin-bottom: -5px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent);
    box-shadow: 0 0 5px var(--accent);
}

/* --- Images --- */
.services-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2cm; 
    margin: 10px 0;
    flex-wrap: wrap; 
    text-align: center;
}

.services-images img {
    width: 300px; 
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.services-images img:hover {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

/* --- Carte Google Maps centrée --- */
.map-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.map-container iframe {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    width: 100%;
    max-width: 400px; 
    height: 250px; 
}

.texte-image {
  display: flex;
  align-items: flex-start; 
  gap: 20px; 
}

.texte {
  flex: 1;
}

.illustration-droite img {
  width: 100%;
  height: auto; 
  border-radius: 5px; 
}

.illustration-droite figcaption {
  font-size: 0.85em;
  text-align: center;
  color: #555;
}

.cgv-content {
  display: none;
  margin-top: 15px;
}

.categories span {
  font-family: "Times New Roman", Times, serif;
  color: #1e90ff;             
  cursor: pointer;
  margin-right: 15px;
  padding: 5px 12px;
  border: 2px solid white;   
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.categories span:hover {
  color: #63b3ff;             
  border-color: #dcdcdc;     
}

.categories span.active {
  color: #1e90ff;
  border-color: white;
  box-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white;
  animation: shine 1.5s infinite alternate;
}

.en-vigueur {
  font-family: "Times New Roman", Times, serif;
  margin-top: 0;     
  font-size: 0.9em; 
}

.categories {
  margin-top: 2cm; 
  margin-bottom: 2cm;
}

.intervention-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.zone-intervention {
  flex: 3;
}

.illustration-droite {
  flex: 1;
  max-width: 200px;
  margin-top: 10px;
}

/* Animation scintillante */
@keyframes shine {
  from {
    box-shadow: 0 0 5px white, 0 0 10px white, 0 0 15px white;
  }
  to {
    box-shadow: 0 0 15px white, 0 0 30px white, 0 0 45px white;
  }
}

/* --- Boutons communs --- */
.btn {
    background-color: var(--accent);
    color: var(--main-color);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.legal-buttons {
    display: flex;
    justify-content: center;  
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px auto;
}

table {
    border-collapse: collapse; 
    width: 60%; 
    margin: auto;
}

th, td {
    border: 2px solid white; 
    padding: 10px;
    text-align: center;
    background-color: transparent; 
}

th {
    font-weight: bold;
}

/* --- Réseaux sociaux --- */
.social-widgets {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 20px 0;
}

.social-widgets img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.social-widgets img:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

/* --- Footer --- */
.footer {
    margin-top: 30px;
    font-size: 14px;
    color: var(--main-color);
    padding: 20px;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    body {
        margin-left: 1.5cm;
        margin-right: 1.5cm;
    }

    .contact-section {
        flex-direction: column;
        align-items: center;
        text-align: justify;
    }
    .contact-section img {
        max-width: 220px;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    body {
        margin-left: 1cm;
        margin-right: 1cm;
    }
    .main-menu li a {
        padding: 6px 12px;
        font-size: 1rem;
    }
    .btn {
        width: 100%;
    }
}

.btn-devis {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #007BFF; 
  background-color: #f8f8f8; 
  border: 2px solid #007BFF; 
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease; 
  box-shadow: 0 0 0 rgba(0,123,255,0); 
}

.btn-devis:hover {
  background-color: #007BFF; 
  color: #fff; 
  box-shadow: 0 0 15px rgba(0,123,255,0.7); 
  transform: translateY(-2px); 
}

.image-texte-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; 
}

.illustration-droite {
  flex: 1 1 100%; 
  margin: 0; 
}

.illustration-droite img {
  width: 100%;   
  height: auto;  
  display: block; 
}






