/* style.css */
:root {
  --clr-primary: #8a9c68;   /* vert sauge */
  --clr-secondary: #5d494c; /* prune */
  --clr-dark-1: #27241d;
  --clr-dark-2: #2f2d1d;
  --clr-dark-3: #504a40;
  --clr-dark-4: #625d52;
  --clr-light-1: #e3e9dc;
  --clr-light-2: #eeeeee;
  --header-height: 70px;
  --inpage-nav-height: 45px;
  --carousel-height: 600px;
  --carousel-height-mobile: 400px;
  --maxw: 1200px;
}

/* --- Reset & helpers --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; line-height: 1.6; color: var(--clr-dark-2); background: var(--clr-light-2); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: auto; padding: 0 1rem; }
.btn { display: inline-block; padding: .75rem 1.5rem; border-radius: 4px; font-weight: 600; background: var(--clr-primary); color: white !important; transition: background .2s; border: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--clr-secondary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* --- 3. Top utility bar --- */
.utility-bar {
  background: var(--clr-dark-1);
  color: white;
  font-size: .875rem;
}
.utility-bar .container > ul.utility-links-list {
  display: flex;
  padding: .5rem 0;
  justify-content: space-between;
  align-items: center;
}
.utility-bar a {
  display: block;
  padding: .25rem 0;
  color: white;
  transition: color 0.2s;
}
.utility-bar a:hover {
  color: var(--clr-light-1);
}

/* NOUVEAUX STYLES pour le sélecteur de mode Individual/Business (style capsule) */
.office-mode-selector {
  display: flex;
  background-color: var(--clr-dark-3); /* Fond de la capsule */
  border-radius: 20px; /* Capsule arrondie */
  overflow: hidden;
  border: 1px solid var(--clr-dark-4); /* Bordure subtile pour la capsule */
}
.btn-mode {
  background-color: transparent; /* Inactif par défaut */
  color: var(--clr-light-2);    /* Couleur du texte pour inactif */
  border: none;
  padding: 0.4rem 1rem; /* Ajustez le padding */
  cursor: pointer;
  font-size: 0.8rem;
  font-family: "Poppins", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative; /* Pour les pseudo-éléments si besoin */
}
.btn-mode.active {
  background-color: var(--clr-primary); /* Couleur d'accent pour l'actif (vert sauge) */
  color: white;
  font-weight: 600; /* Rendre le texte de l'actif un peu plus visible */
}
/* Optionnel: séparateur entre les boutons si vous ne voulez pas qu'ils se touchent directement */
.btn-mode:not(:last-child)::after {
   content: '';
  position: absolute;
  right: -1px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background-color: var(--clr-dark-4);
}
.btn-mode:hover:not(.active) {
  color: white; /* Un peu plus clair au survol si inactif */
}


.utility-links-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* --- 4. Main nav --- */
header { background: white; box-shadow: 0 2px 4px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 40; height: var(--header-height); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 100%; }
.nav__brand { font-size: 1.25rem; font-weight: 600; color: var(--clr-primary); }
.nav__links { display: flex; gap: 1.5rem; align-items: center; }
.nav__toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--clr-primary); }

.dropdown { position: relative; }
.dropdown > a { padding: 0.5rem 0; display: block; }

.dropdown:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega {
  visibility: hidden; opacity: 0; transform: translateY(10px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  position: absolute; left: 0; top: 100%; background: white;
  border-top: 4px solid var(--clr-primary); padding: 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem; min-width: 600px; box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 30; border-radius: 0 0 4px 4px;
}
.mega h4 { font-size: 1rem; margin-bottom: .75rem; color: var(--clr-primary); border-bottom: 1px solid var(--clr-light-1); padding-bottom: 0.5rem; }
.mega a { display: block; padding: .35rem 0; font-size: .9rem; }
.mega a:hover { color: var(--clr-secondary); }

.dropdown:hover .simple-dropdown { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
.simple-dropdown {
  display: none; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  position: absolute; top: 100%; left: 0; background: white;
  border: 1px solid var(--clr-light-1); min-width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1); border-radius: 4px;
  overflow: hidden; z-index: 31;
}
.simple-dropdown a { display: block; padding: .75rem 1rem; font-size: .9rem; }
.simple-dropdown a:hover { background: var(--clr-light-1); color: var(--clr-secondary); }

/* --- 5. Hero Carousel --- */
.hero-carousel { width: 100%; position: relative; }
.carousel-container {
  max-width: 100%; margin: auto; overflow: hidden; position: relative;
  background-color: var(--clr-dark-1); height: var(--carousel-height);
}
.carousel-slides { display: flex; width: 500%; height: 100%; transition: transform 0.6s ease-in-out; }
.carousel-slide { min-width: 20%; height: 100%; box-sizing: border-box; position: relative; overflow: hidden; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute; bottom: 0; left: 0; width: 100%;
  background: linear-gradient(0deg, rgba(39, 36, 29, 0.8) 0%, rgba(39, 36, 29, 0) 100%);
  color: white; padding: 4rem 2rem 2rem; box-sizing: border-box; z-index: 2;
  max-width: 700px; margin-left: calc((100% - min(100%, var(--maxw))) / 2 + 1rem);
}
.slide-caption h1 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.slide-caption p { font-size: 1.1rem; margin-bottom: 2rem; color: var(--clr-light-1); }
.carousel-control {
  position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.4);
  color: white; border: none; padding: 0.8rem; cursor: pointer; z-index: 10; border-radius: 50%;
  font-size: 1.5rem; line-height: 1; transition: background-color 0.2s; display: flex; align-items: center; justify-content: center;
}
.carousel-control:hover { background-color: rgba(0, 0, 0, 0.7); }
.carousel-control.prev { left: 1rem; }
.carousel-control.next { right: 1rem; }
.carousel-control i { display: block; }
.carousel-indicators {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.75rem; z-index: 10;
}
.indicator {
  width: 12px; height: 12px; background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%; border: none; cursor: pointer; padding: 0; transition: background-color 0.3s;
}
.indicator:hover { background-color: rgba(255, 255, 255, 0.8); }
.indicator.active { background-color: white; }

/* --- 6. Section (About) with sticky in-page nav --- */
.inpage-nav {
  background: var(--clr-light-1); position: sticky; top: var(--header-height);
  z-index: 35; border-bottom: 1px solid var(--clr-dark-3); height: var(--inpage-nav-height);
}
.inpage-nav .container {
  max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem;
  display: flex; gap: 1.5rem; align-items: center; height: 100%; overflow-x: auto;
}
.inpage-nav .container a {
  font-weight: 600; font-size: .9rem; color: var(--clr-dark-3); padding: 0.5rem 0;
  border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s; white-space: nowrap;
}
.inpage-nav .container a:hover { color: var(--clr-secondary); }
.inpage-nav .container a.active { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }

.section { padding: 4rem 0; }
#overview { background: var(--clr-light-2); }
#services { background: white; }
#team { background: var(--clr-light-2); }
#contact { background: white; }

.section h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--clr-secondary); }
.section p { max-width: 800px; margin-bottom: 1rem; }

.section-structured-services .container > div:not(.subscribe-cta-block) {
  margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--clr-light-1);
}
.section-structured-services .container > .service-question-block:last-of-type {
   border-bottom: none; padding-bottom: 0;
}
.section-structured-services .container > .service-question-block:nth-last-of-type(2):has(+ .subscribe-cta-block) {
  margin-bottom: 2.5rem; padding-bottom: 0; border-bottom: none;
}
.service-question-block h3 { font-size: 1.8rem; color: var(--clr-secondary); margin-bottom: 1.25rem; }
.service-question-block h4 { font-size: 1.3rem; color: var(--clr-primary); margin-top: 1rem; margin-bottom: 0.75rem; }
.service-question-block p { margin-bottom: 1rem; line-height: 1.7; }
.service-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 1rem; }
.service-lines ul { list-style: disc; margin-left: 20px; padding-left: 0; }
.service-lines li { margin-bottom: 0.6rem; }
.btn-outline {
  background-color: transparent; border: 2px solid var(--clr-primary);
  color: var(--clr-primary) !important; padding: .6rem 1.3rem;
}
.btn-outline:hover { background-color: var(--clr-primary); color: white !important; }

#team img { border-radius: 6px; margin-top: 1rem; }
#contact .container { text-align: center; }
#contact p { margin-left: auto; margin-right: auto; }

.subscribe-cta-block {
  margin-top: 3rem; padding: 2.5rem; background-color: var(--clr-dark-1);
  color: var(--clr-light-2); border-radius: 8px; text-align: center;
}
.subscribe-cta-block h3 { color: white; margin-bottom: 1rem; font-size: 1.7rem; }
.subscribe-cta-block p { margin-bottom: 1.8rem; max-width: 650px; margin-left: auto; margin-right: auto; font-size: 1rem; line-height: 1.6; }
#services-subscribe-form .form-group, #subscribe-form-main .form-group {
  margin-bottom: 1.25rem; text-align: left; max-width: 450px; margin-left: auto; margin-right: auto;
}
#services-subscribe-form input[type="email"], #subscribe-form-main input[type="email"] {
  background-color: var(--clr-dark-2); color: white; border: 1px solid var(--clr-dark-3);
  padding: 0.9rem 1rem; width: 100%; box-sizing: border-box;
}
#services-subscribe-form input[type="email"]::placeholder, #subscribe-form-main input[type="email"]::placeholder { color: var(--clr-dark-4); }
#services-subscribe-form input[type="email"]:focus, #subscribe-form-main input[type="email"]:focus {
  border-color: var(--clr-primary); box-shadow: 0 0 0 2px rgba(138, 156, 104, 0.3);
}
#services-subscribe-form .form-consent label, #subscribe-form-main .form-consent label { color: var(--clr-light-1); font-size: 0.85rem; margin-bottom: 0; font-weight: normal; }
#services-subscribe-form .form-consent a, #subscribe-form-main .form-consent a { color: var(--clr-primary); text-decoration: underline; }
#services-subscribe-form .form-consent input[type="checkbox"], #subscribe-form-main .form-consent input[type="checkbox"] { width: auto; margin-top: -0.1em; }
#services-subscribe-form button.btn, #subscribe-form-main button.btn {
  background-color: var(--clr-primary); width: 100%; padding: .9rem 1.5rem; font-size: 1rem;
}
#services-subscribe-form button.btn:hover, #subscribe-form-main button.btn:hover { background-color: var(--clr-secondary); }
#subscribe-form-status-services { margin-top: 1rem; font-weight: 600; min-height: 1.2em; }
#subscribe-form-status-services.success { color: #4CAF50; }
#subscribe-form-status-services.error { color: #F44336; }

/* --- 7. Footer --- */
footer { background: var(--clr-dark-2); color: var(--clr-light-1); padding: 3rem 1rem 2rem; text-align: center; font-size: 0.9rem; }
footer a { color: var(--clr-primary); transition: color 0.2s; }
footer a:hover { color: white; }
.footer-links { margin-bottom: 1rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- Styles pour la Page Contact Dédiée (contact.html) --- */
.contact-page-section h1 { text-align: center; margin-bottom: 1rem; color: var(--clr-secondary); }
.contact-page-section .contact-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; font-size: 1.1rem; color: var(--clr-dark-3); }
.contact-content-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; margin-top: 2rem; }
.contact-info h2, .contact-form h2 { margin-bottom: 1.5rem; color: var(--clr-primary); font-size: 1.5rem; }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { display: flex; align-items: flex-start; margin-bottom: 1.5rem; gap: 1rem; font-size: 1rem; }
.contact-info li i { font-size: 1.4rem; color: var(--clr-primary); margin-top: 0.1em; }
.contact-info li a { color: var(--clr-dark-2); text-decoration: none; }
.contact-info li a:hover { color: var(--clr-secondary); text-decoration: underline; }
.map-container { margin-top: 2rem; border: 1px solid var(--clr-light-1); border-radius: 4px; overflow: hidden; }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--clr-dark-2); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--clr-dark-4);
  border-radius: 4px; font-family: inherit; font-size: 1rem; box-sizing: border-box;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--clr-primary); box-shadow: 0 0 0 2px rgba(138, 156, 104, 0.3);
}
.contact-form .required { color: var(--clr-secondary); margin-left: 0.25rem; }
.contact-form .form-consent { display: flex; align-items: center; gap: 0.75rem; }
.contact-form .form-consent input[type="checkbox"] { width: auto; margin-top: -0.1em; }
.contact-form .form-consent label { margin-bottom: 0; font-weight: normal; }
.contact-form .form-consent label a { color: var(--clr-primary); text-decoration: underline; }
.contact-form .form-consent label a:hover { color: var(--clr-secondary); }
.contact-form button.btn { width: auto; padding: .8rem 2rem; }
#form-status { margin-top: 1rem; font-weight: 600; }
#form-status.success { color: green; }
#form-status.error { color: red; }

/* --- Styles pour les Pages Learn (learn-business.html & learn-individual.html) --- */
.learn-page-content { background-color: var(--clr-light-2); }
.learn-page-intro { text-align: center; margin-bottom: 3rem; padding-top: 2rem; }
.learn-page-intro h1 { color: var(--clr-secondary); margin-bottom: 1rem; }
.learn-page-intro .intro-text { font-size: 1.1rem; max-width: 800px; margin: 0 auto 1.5rem auto; color: var(--clr-dark-3); }
.switch-mode-notice { font-size: 0.9rem; margin-top: 1rem; }
.switch-mode-notice a { color: var(--clr-primary); text-decoration: underline; }
.switch-mode-notice a:hover { color: var(--clr-secondary); }

.service-category-block {
  background-color: white; padding: 2rem; margin-bottom: 2.5rem;
  border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}
.service-category-block h2 {
  color: var(--clr-primary); font-size: 1.7rem; margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--clr-light-1); padding-bottom: 0.5rem;
}
.service-category-block .category-description { margin-bottom: 1.5rem; color: var(--clr-dark-3); }
.service-category-block ul.service-list { list-style: none; padding-left: 0; }
.service-category-block ul.service-list li {
  padding: 0.75rem 0; border-bottom: 1px dashed var(--clr-light-1);
  display: flex; align-items: flex-start; cursor: pointer;
  transition: background-color 0.2s;
}
.service-category-block ul.service-list li:hover { background-color: var(--clr-light-2); }
.service-category-block ul.service-list li.selected-service {
  background-color: var(--clr-light-1); border-left: 3px solid var(--clr-primary);
  padding-left: calc(0.75rem - 3px);
}
.service-category-block ul.service-list li:last-child { border-bottom: none; }
.service-category-block ul.service-list .service-icon {
  margin-right: 10px; color: var(--clr-primary); font-size: 1.2em; line-height: 1.4; user-select: none;
}
.service-category-block ul.service-list .service-icon.checked::before { content: '✅'; color: var(--clr-primary); }
.service-category-block ul.service-list .service-name { font-weight: 600; color: var(--clr-dark-2); display: block; }
.service-category-block ul.service-list .service-mini-desc { font-size: 0.85rem; color: var(--clr-dark-3); padding-left: 28px; display: block; }

.faq-section { margin-top: 3rem; background-color: white; padding: 2rem; border-radius: 8px; }
.faq-section h2 { text-align: center; color: var(--clr-secondary); margin-bottom: 2rem; }
.faq-item { margin-bottom: 1.5rem; }
.faq-item dt { font-weight: 600; color: var(--clr-primary); margin-bottom: 0.5rem; }
.faq-item dd { color: var(--clr-dark-3); padding-left: 1.5rem; border-left: 3px solid var(--clr-light-1); }

.final-validation-block {
  background-color: var(--clr-light-1); padding: 2.5rem; margin-top: 3rem;
  border-radius: 8px; text-align: center;
}
.final-validation-block h2 { color: var(--clr-secondary); margin-bottom: 1.5rem; }
.final-validation-block .form-group {
  margin-bottom: 1.5rem; text-align: left; max-width: 500px; margin-left: auto; margin-right: auto;
}
.final-validation-block label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.final-validation-block select, .final-validation-block input[type="email"], .final-validation-block textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--clr-dark-4);
  border-radius: 4px; font-family: inherit; font-size: 1rem; box-sizing: border-box;
}
.final-validation-block textarea { resize: vertical; min-height: 80px; }
.final-validation-block select:focus, .final-validation-block input:focus, .final-validation-block textarea:focus {
  outline: none; border-color: var(--clr-primary); box-shadow: 0 0 0 2px rgba(138, 156, 104, 0.3);
}
.final-validation-block button.btn { padding: .9rem 2rem; font-size: 1.1rem; }
#learn-form-status, #learn-form-status-individual { margin-top: 1rem; font-weight: 600; min-height: 1.2em; }
#learn-form-status.success, #learn-form-status-individual.success { color: #4CAF50; }
#learn-form-status.error, #learn-form-status-individual.error { color: #F44336; }

.floating-request-button { position: fixed; bottom: 20px; right: 20px; z-index: 100; }
.floating-request-button .btn { box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.floating-request-button .btn[disabled] { background-color: var(--clr-dark-4); cursor: not-allowed; opacity: 0.7; }

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --carousel-height: var(--carousel-height-mobile); }
  .nav__links {
    display: none; position: absolute; top: var(--header-height); left: 0; right: 0;
    background: white; flex-direction: column; padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.1); border-top: 1px solid var(--clr-light-1); gap: 0.5rem;
  }
  .nav__links.show { display: flex; }
  .nav__toggle { display: block; }

  .dropdown:hover .mega, .dropdown:hover .simple-dropdown { opacity: 0; visibility: hidden; display: none; }
  .mega, .simple-dropdown {
    position: static; transform: none; visibility: visible; opacity: 1;
    box-shadow: none; border-top: none; border: none;
    padding: 0.5rem 0 1rem 1rem; min-width: auto;
  }
  .mega { grid-template-columns: 1fr; gap: 0.5rem; }
  .nav__links .dropdown > a { font-weight: 600; color: var(--clr-primary); padding-bottom: 0.5rem; }
  .nav__links .mega a, .nav__links .simple-dropdown a { padding: 0.25rem 0; }

  .slide-caption { padding: 2rem 1rem 1rem; margin-left: 1rem; max-width: calc(100% - 2rem); }
  .slide-caption h1 { font-size: 1.8rem; }
  .slide-caption p { font-size: 1rem; margin-bottom: 1.5rem;}
  .carousel-control { padding: 0.5rem; font-size: 1.2rem; }
  .carousel-indicators { bottom: 1rem; }
  .indicator { width: 10px; height: 10px; }

  .inpage-nav { top: var(--header-height); }
  .utility-bar .container > ul.utility-links-list { padding: .5rem 0; gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .office-mode-selector { margin-bottom: 0.5rem; }

  .section h2 { font-size: 1.8rem; }
  .contact-content-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-lines { grid-template-columns: 1fr; }
  .subscribe-cta-block { padding: 1.5rem; }
  .subscribe-cta-block h3 { font-size: 1.5rem; }
  #services-subscribe-form .form-group, #subscribe-form-main .form-group { max-width: 100%; }

  .service-category-block { padding: 1.5rem; }
  .service-category-block h2 { font-size: 1.5rem; }
  .final-validation-block { padding: 1.5rem; }
  .final-validation-block h2 { font-size: 1.6rem; }
  .faq-section { padding: 1.5rem; }
  .faq-section h2 { font-size: 1.6rem; }
}
