/* ------------------- */
/* RESET & VARIABLES   */
/* ------------------- */

:root {
    --color-primary: #00563f;
    --color-dark: #222;
    --color-light: #fff;
    --color-gray: #f4f4f4;
    --font-family: 'Quicksand', sans-serif;
    --transition: all 0.3s ease-in-out;
}

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

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------- */
/* UTILITIES & BUTTONS */
/* ------------------- */

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-light);
    border-radius: 5px;
    transition: var(--transition);
    border: 1px solid var(--color-primary);
}

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

.btn--primary {
    font-size: 1.2rem;
    padding: 15px 30px;
}

/* ------------------- */
/* HEADER              */
/* ------------------- */

.header {
    background-color: var(--color-light);
    box-shadow: 0 2px 5px #00563f;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header__logo {
  display: block;
  flex: 0 0 auto;
  margin-right: 3rem;
}
.header__logo img {
  display: block;
  height: 50px;
  width: auto;
}

.header__logo {
  margin-right: 2.2rem;
}

.header__lang {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.header__lang a {
    font-weight: normal;
}

.header__hamburger {
    display: flex; /* Visible on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Animate hamburger to X when active */
.header__hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Styles for the mobile navigation panel */
.header__nav {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 80px; /* Position below header */
    left: 0;
    width: 100%;
    background-color: var(--color-light);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    z-index: 99;
}

/* This class is toggled by JS to show the menu */
.header__nav.header__nav--mobile {
    display: block;
}

.header__nav ul li {
    text-align: center;
    margin: 1rem 0;
}

.header__nav ul li a {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    display: block;
}

/* ------------------- */
/* PAGE-SPECIFIC       */
/* ------------------- */

.hero-page {
    padding: 4rem 0;
    background-size: cover;
    background-position: center;
    color: var(--color-light);
    text-align: center;
    position: relative;
}

/* SUPPRESSION DE L'OVERLAY */
/* .hero-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
} */

.hero-page .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
}

.page-content {
    padding: 4rem 0;
}

.intro-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.intro-text strong {
  color: var(--color-primary, #2e7d32);
  font-weight: bold;
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.content-block__text h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.content-block__text ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 1rem;
}
.content-block__text ul li {
    margin-bottom: 0.5rem;
}

/* Hero section background */
.hero-section {
  position: relative;
  width: 100vw;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero-bg-slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00563f 0%, #013220 60%, #008060 100%);
  z-index: 1;
}

.hero-bg-slideshow .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlideshow 16s infinite;
}

.hero-bg-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-bg-slideshow .slide:nth-child(2) { animation-delay: 4s; }
.hero-bg-slideshow .slide:nth-child(3) { animation-delay: 8s; }
.hero-bg-slideshow .slide:nth-child(4) { animation-delay: 12s; }

@keyframes fadeSlideshow {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  23%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 86, 63, 0.55); /* fond semi-transparent pour la lisibilité */
  padding: 2rem 2rem;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
}
.hero-content .header__logo img {
    max-width: 160px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}
.hero-intro {
  color: #fff;
  font-size: 1.3rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Correction taille logo about/mentions/privacy */
.about .logo img,
.footer-logo img,
.legal-section .logo img {
  max-height: 60px !important;
  height: auto;
  width: auto;
  margin: 0 auto 1rem auto;
  display: block;
}

/* Correction logo géant sur about, mentions, privacy */
.about .logo img,
.mentions .logo img,
.privacy .logo img {
  max-height: 60px !important;
}

/* ------------------- */
/* MAIN CONTENT        */
/* ------------------- */

main section {
    padding: 4rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    background-color: var(--color-gray);
}
.hero__image {
    display: inline-block;
    margin-bottom: 2rem;
}
.hero__title {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Services Section */
.services {
    background-color: var(--color-light);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid #00563f;
    border-radius: 5px;
}

.service-card img {
    height: 80px;
    margin: 0 auto 1rem;
}

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

.service-card p {
    margin-bottom: 1.2rem;
}

/* About Section */
.about {
    background-color: var(--color-gray);
}

.about .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about__content p {
    margin-bottom: 1rem;
}

/* CTA Section */
.contact-cta {
    background-color: var(--color-primary);
    text-align: center;
    padding: 2rem 0;
}
.contact-cta a {
    color: var(--color-light);
    border-color: var(--color-light);
}
.contact-cta a:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

/* ------------------- */
/* FOOTER              */
/* ------------------- */

.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 1.5rem 0 1rem 0;
  background: linear-gradient(135deg, #00563f 0%, #013220 60%, #008060 100%);
}

.footer a {
    color: var(--color-light);
}
.footer a:hover {
    text-decoration: underline;
}

/* Footer compact et alignement harmonisé */
.footer .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;

}
/* Footer en 4 colonnes pour inclure le formulaire de contact */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 0.3rem;
}
.contact-form {
  width: 100%;
  max-width: 320px;
}
@media (max-width: 900px) {
  .footer .container {
    max-width: 100%;
    padding: 0.7rem 0.5rem;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-form {
    max-width: 100%;
  }
}

.footer__logo {
    height: 80px;
    margin-bottom: 0.5rem;
}

.footer__legal {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.footer__col h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: var(--color-light);
}

/* Footer sans formulaire de contact */
.footer__col {
  flex: 1 1 0;
  min-width: 180px;
  margin-bottom: 0.5rem;
}

/* Harmonisation de la colonne Contact dans le footer */
.footer__col-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.footer__col-contact h3 {
  margin-bottom: 1rem;
}
.footer__col-contact p {
  margin: 0;
  text-align: left;
  font-size: 1rem;
}

/* ------------------- */
/* DESKTOP STYLES      */
/* ------------------- */

@media (min-width: 992px) {
    .header__hamburger {
        display: none;
    }

    /* Reset mobile nav styles for desktop */
    .header__nav, .header__nav.header__nav--mobile {
        display: block;
        position: static;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    .header__nav ul {
        display: flex;
        gap: 1.5rem;
    }

    .header__nav ul li {
        margin: 0;
        text-align: left;
    }

    .header__nav ul li a {
        font-size: 1rem;
        padding: 0;
    }
    
    .hero__title {
        font-size: 1.8rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about .container {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
    
    .about__content {
        flex: 1;
    }
    
    .about__image {
        flex: 1;
    }
    
    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
        align-items: start;
    }
    @media (max-width: 900px) {
      .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
    }

    .content-block {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .content-block--reverse {
        flex-direction: row-reverse;
    }

    .content-block__image,
    .content-block__text {
        flex: 1;
    }
    /* Puces carrées et vertes pour les listes dans .content-block */
    .content-block__text ul {
        list-style-type: square;
        padding-left: 1.5em;
    }

    .content-block__text ul li {
        position: relative;
    }

    .content-block__text ul li::marker {
        color:#00563f; /* Vert ATS */
    }
    .content-block__text p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
}

@media (min-width: 992px) {
    .content-block--reverse {
        flex-direction: row-reverse;
        align-items: flex-start;
    }
    .content-block--reverse .content-block__image {
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
    }
    .content-block--reverse .content-block__image img {
        align-self: flex-start;
        margin-top: 2.2rem; /* Ajuste cette valeur si besoin pour un alignement parfait */
    }
}

.align-with-alexandre {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
  margin-top: 2.5rem;
}

body, p, .section p, .about-intro p, .about-values p, .about-story p, .content-block__text p, .footer__col p {
  text-align: justify;
}

.about-intro p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  text-align: justify;
}
.about-values.values-grid {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.value-card {
  background: rgba(255,255,255,0.03);
  border-radius: 1rem;
  padding: 1.5rem;
  flex: 1;
  box-shadow: 0 2px 8px rgba(30,60,43,0.06);
  min-width: 220px;
  border: 2px solid var(--color-primary, #00563f);
}
.value-card h3 {
  color: var(--color-primary, #2e7d32);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.value-card p {
  text-align: justify;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .about-values.values-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.legal-block h2 {
  color: var(--color-primary, #2e7d32);
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  font-size: 1.18rem;
}
.legal-block p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
  text-align: justify;
}
.legal-block {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 992px) {
  .header .container {
    flex-wrap: nowrap;
  }
  .header__nav {
    margin-right: 2.2rem;
  }
  .header__lang {
    margin-left: 1.5rem;
  }
  .header__nav ul {
    display: flex;
    gap: 1.1rem;
    flex-wrap: nowrap;
  }
  .header__nav ul li {
    margin: 0;
    text-align: left;
    white-space: nowrap;
  }
  .header__lang {
    white-space: nowrap;
  }
}
