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

/* Palette personnalisée */
:root {
  --beige: #e7d6bb;
  --olive: #626f47;
  --olive-light: rgba(98, 111, 71, 0.3);
  --olive-medium: rgba(98, 111, 71, 0.74);
  --light-bg: #f9f5ef;
  --green-bg: #dde2c6;
  --text-dark: #1f1f1f;
}

/* Base */
body {
  font-family: "Segoe UI", sans-serif;
  color: var(--text-dark);
  background-color: white;
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.3rem;
}
/* Sections */
.section {
  padding: 4rem 0;
}

.section-light {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.section-green {
  background-color: var(--green-bg);
  padding: 4rem 0;
}

/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
}

/* Scroll arrow */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: white;
  color: var(--red-deep);
  font-size: 1.5rem;
  padding: 0.6rem 1rem;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}
.scroll-top:hover {
  background-color: darkred;
  transform: scale(1.1);
}

/* Affichage quand on scroll */
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
/* Footer */
.footer {
  background-color: var(--olive);
  color: white;
  padding: 2rem 0;
}

.footer a {
  color: white;
  text-decoration: underline;
}

.footer a:hover {
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-links ul {
  list-style: none;
}

/* Liens */
a {
  color: var(--olive);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* === Header === */
header {
  background-color: rgb(103, 101, 101);
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.836);
  position: sticky;
  top: 0;
  z-index: 100;
}
/* nav */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  font-size: 1.3rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}
/* Style spécifique pour les liens du menu burger */
.mobile-menu .nav-links a {
  color: var(--olive);
}
.nav-links a:hover {
  color: var(--red-deep);
}
/* logo */
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
/* cta */
.cta .btn-red {
  padding: 0.6rem 1.2rem;
  background-color: var(--red-deep);
  color: var(--white);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  font-size: 1.3rem;
}
.cta .btn-red:hover {
  background-color: #a63a33;
  color: white;
}
.cta {
  display: block;
}
.mobile-cta {
  display: none; /* caché desktop */
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 90vh;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 90%;
  color: white;
}
.hero h1 {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(2rem, 5vw, 4rem);
}
.hero h2 {
  margin: 1rem 0 2rem;
  color: var(--beige);
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.3rem;
  color: var(--text-dark);
}
.btn-red {
  background-color: var(--green-bg);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.btn-red:hover {
  background-color: #a63a33;
}
.btn-red-outline {
  background-color: var(--green-bg);
  border: 2px solid var(--red-deep);
  color: var(--red-deep);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.btn-red-outline:hover {
  background-color: #a63a33;
  color: var(--white);
}
/* === Expertises === */

.expertise-section {
  padding: 4rem 0;
  background-color: var(--light-bg);
  text-align: center;
}

.expertise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes fixes */
  gap: 2rem;
  margin-top: 2rem;
}

.expertise-cards .card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--green-bg);
}

.expertise-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.expertise-cards .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: #c0392b;
}

.expertise-cards .icon svg {
  width: 100%;
  height: 100%;
}
.expertise-cards .icon img {
  width: 100%;
  height: 100%;
}
.expertise-cards .card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.expertise-cards .card p {
  font-size: 0.95rem;
  color: var(--dark-grey);
  line-height: 1.5;
}
.icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* === About === */
.about {
  padding: 50px 0;
  background-color: var(--green-bg);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.about-content img {
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.about-content div {
  flex: 1;
}

.about-content p {
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.6;
}
.section-title {
  width: 100%;
  text-align: center;
}
/* === Realisations === */
.realisations {
  padding: 4rem 1rem;
  background-color: var(--light-bg);
  text-align: center;
}
.realisations .section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--green-dark);
}
.realisations .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.realisations .gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.realisations .gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* === Engagements === */
.engagements {
  padding: 4rem 1rem;
  background-color: var(--green-bg);
  text-align: center;
}

.engagements .section-title {
  margin-bottom: 1rem;
}

.engagements .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.engagements .card {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.engagements .card h3 {
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card .icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  color: var(--green-dark);
}

.card .icon svg {
  width: 100%;
  height: 100%;
}
.card .icon img {
  width: 100%;
  height: 100%;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-medium);
}
/* === Contact === */
.contact-section .contact-options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem; /* Réduit de 2rem à 1rem */
  margin-top: 2rem;
}
.section-title,
.contact-section > .container > p {
  text-align: center;
}
.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 250px;
}
.contact-info img {
  width: 100%;
  height: auto;
}
.contact-options .contact-info a {
  color: var(--red-deep);
  font-weight: 600;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 300px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  align-self: flex-start;
}
.footer .copyright {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: white;
}
/* === Responsive Design === */

/* ----------- PETITS ÉCRANS : Mobile (≤ 480px) ----------- */
@media (max-width: 480px) {
  .contact-info img {
    display: none;
  }
}

/* ----------- ÉCRANS MOYENS : Mobile/Tablette (≤ 768px) ----------- */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    font-size: 1.1rem;
    display: none;
    width: 100%;
    text-align: center;
    background-color: white;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 20px;
    box-shadow: 0 4px 2px -2px gray;
  }

  .nav-links.active {
    display: block;
  }

  .nav-links a {
    color: var(--olive);
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px 0;
  }

  .hero {
    height: auto;
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .expertise-cards,
  .realisations .gallery,
  .engagements .cards,
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-content img {
    max-width: 100%;
  }

  .contact-section .contact-options {
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .contact-form {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .contact-info img {
    max-width: 200px;
    height: auto;
  }

  .contact-form {
    width: 100%;
  }

  .cta .btn-red,
  .btn-red,
  .btn-red-outline {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
  .cta {
    display: none;
  }
  .scroll-top {
    display: none !important;
  }
  /* Affiche bouton mobile dans menu */
  .mobile-cta {
    display: list-item;
  }
}

/* ----------- TABLETTE (769px à 1024px) ----------- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .grid-3,
  .expertise-cards,
  .engagements .cards,
  .realisations .gallery,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-section .contact-options {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-info,
  .contact-form {
    max-width: 100%;
  }

  .hero {
    padding: 3rem 1rem;
    height: auto;
  }
}

/* ----------- GRAND ÉCRAN : Desktop large (≥ 1440px) ----------- */
@media screen and (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero h2 {
    font-size: 2rem;
  }
}

/* === PAGE MENTIONS LEGALES === */

.mentions-legales {
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}
.mentions-legales h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.mentions-legales h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  color: #34495e;
}

.mentions-legales p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.mentions-legales a {
  color: #e74c3c;
  text-decoration: none;
}

.mentions-legales a:hover {
  text-decoration: underline;
}
/* === PAGE POLITIQUE COOKIES === */
.politique-cookies {
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  line-height: 1.6;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #2c3e50;
}

.politique-cookies h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: 700;
}

.politique-cookies h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  color: #34495e;
  font-weight: 600;
  border-left: 4px solid #e74c3c;
  padding-left: 0.75rem;
}

.politique-cookies p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.politique-cookies a {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 500;
}

.politique-cookies a:hover {
  text-decoration: underline;
}

/* === BOUTON TÉLÉPHONE RÉVÉLÉ === */
.phone-hidden {
  cursor: pointer;
  color: #c0392b;
  font-weight: bold;
  transition: color 0.2s ease;
}
.phone-hidden:hover {
  color: #922b21;
  text-decoration: underline;
}

/* === SCROLL TOP === */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #e74c3c;
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 50%;
  font-size: 1.5rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1000;
  transition: background-color 0.3s ease;
}
.scroll-top:hover {
  background-color: #c0392b;
}
.scroll-top.visible {
  display: block;
}

/* === FOOTER === */
.footer {
  background-color: #f4f4f4;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  color: #333;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--text-dark);
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
  color: #e74c3c;
}
.footer .logo img {
  max-width: 160px;
}
.footer .copyright {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #777;
}
/* === PAGE 404 === */

.error-container {
  max-width: 600px;
  margin: auto;
}
.error-container h1 {
  font-size: 5rem;
  color: #e74c3c;
}
.error-container p {
  font-size: 1.2rem;
}
.error-container a {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background-color: #e74c3c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}
.error-container a:hover {
  background-color: #c0392b;
}
