@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* General */
/* scroll-padding-top is managed via [id] below */

body {
    font-family: 'Raleway', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333333;
    background-color: #F8F5F2;
  }

.legal-content {
  padding: 10%;
}
  
  /* Header */
:root {
  --nav-h: 84px; /* mobile default */
}
@media (min-width: 769px) {
  :root {
    --nav-h: 120px; /* desktop/tablet */
  }
}

.header {
  background-color: #333333;
  border-bottom: 1px solid #C6A87D;
  position: sticky;
  top: 0;
  z-index: 900; /* below hero at top, above content on scroll */
  min-height: var(--nav-h); /* min height for offset; can grow */
  overflow: visible; /* allow burger menu overflow */
  transition: opacity 140ms ease, transform 180ms ease; /* fast hide by default */
}

/* Hero section */
#hero {
  text-align: center;
  background-color: #333333;
  color: #C6A87D;
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  position: relative;
  z-index: 950; /* above header at page top */
}
#hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
#hero p {
  font-size: 1.2rem;
}
@media (max-width: 768px) {
  #hero h1 { font-size: 2.2rem; }
}

/* Anchor offset for navbar height */
[id] {
  scroll-margin-top: var(--nav-h);
}

/* Hidden navbar at top of page */
.header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}
.header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 1100; /* above hero for dropdown */
  overflow: visible;
}

/* Smooth appear transition */
.header.appearing {
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}

/* Hero nav: vertical stack on mobile */
@media (max-width: 768px) {
  #hero .nav-full {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: stretch;
  }
}

/* Vertical alignment for compact-header-title */
.compact-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 0.5rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0;
}
  
/* Header content container */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-desktop {
  display: block;
  height: 50px; /* desktop */
}

.logo-mobile {
  display: none;
  height: 40px; /* mobile */
}

/* Navigation menu */
.nav {
  display: flex;
  align-items: center;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none; /* hidden on desktop */
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Navigation links */
.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu li {
  list-style: none;
  margin: 0.5rem 0;
  text-align: center;
}

.nav-menu a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #28377A;
  padding: 0.75rem 1rem;
  display: block;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover {
  background-color: #6392FF;
  color: white;
}

  /* Mobile-first: hide menu by default */
.nav-menu {
  display: none; /* hidden by default */
  flex-direction: column;
  background-color: #F4F4F9;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(-10px); /* slide-out */
  opacity: 0;
  margin-top: 0;
}
  
/* Show toggle on mobile */
.nav-toggle {
  display: block;
}

/* Mobile logo */
.logo-desktop {
  display: none;
}

.logo-mobile {
  display: block;
}

/* Active menu state */
.nav-menu.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.nav-menu.active li {
  padding: 0 5%;
}



/* Form */
.contact-form {
  max-width: 500px;
  margin: auto;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
  width: 100%;
}

#consent-group {
  margin-bottom: 1.5rem;
  text-align: left;
  display: flex;
  align-items: flex-start; /* align checkbox to text start */
  gap: 0.5rem; /* gap between checkbox and text */
}

.contact-form input[type="checkbox"] {
  margin: 0; /* reset default margin */
  margin-top: 4px; /* vertical alignment */
  width: auto; /* keep native size */
}

#consent-label {
  font-size: 14px;
  font-weight: 400;
  color: #404040;
  line-height: 1.5; /* multi-line readability */
  margin: 0;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #404040;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid #CCC;
  border-radius: 5px;
  font-size: 16px;
  color: #404040;
  background-color: #F9F9F9;
  box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease;
}

.contact-form .required {
  color: #F0B429;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #C6A87D;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

input[type="checkbox"]:checked {
  background-color: #C6A87D;
  border-color: #C6A87D;
}

input[type="checkbox"]:checked::after {
  content: '✔';
  color: white;
  font-size: 12px;
  position: absolute;
  left: 6px;
  top: 3px;
}

/* Footer */
footer {
  background-color: #404040;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
}

footer a:hover {
  text-decoration: underline;
}

#legal {
  list-style: none;
  padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    gap: 1rem;
  }

  .service-card {
    width: 100%;
    box-sizing: border-box;
    margin: 1rem auto;
  }
}

/* Desktop: horizontal menu */
@media (min-width: 768px) {
  .nav-menu {
    display: flex; /* always visible */
    position: static;
    flex-direction: row;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    margin-block-end: auto;
    margin-top: 1em;
  }

  .nav-toggle {
    display: none; /* hide toggle */
  }

  .logo-desktop {
    display: block; /* desktop logo */
  }

  .logo-mobile {
    display: none; /* mobile logo hidden */
  }

  #hero-content {
    text-align: end;
    width: 100%;
    margin-block-start: 0;
    background-color: rgb(244, 244, 249, 0.7);
  }
}

@media (min-width: 1024px) {
  #hero-content {
    text-align: end;
    padding-left: 60%;
    margin-block-start: 0;
    background-color: rgb(244, 244, 249, 0.1);
  }
}

@media (min-width: 1440px) {
  #hero-content {
    text-align: center;
    padding-left: 40%;
  }
}

/* Burger menu popup */
#burgerMenu {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  width: 100vw;
  position: fixed; /* fixed to viewport */
  left: 0;
  top: var(--nav-h); /* below sticky bar */
  background-color: #333;
  z-index: 1200; /* above header and hero */
  padding: 12px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

#burgerMenu a {
  color: #C6A87D;
  text-decoration: none;
  font-weight: bold;
}

/* Scroll to top button */
#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #C6A87D;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}

#scrollToTopBtn.show {
  display: block;
  opacity: 1;
}

#scrollToTopBtn:hover {
  background-color: #b18c65;
}


/* Styles moved from inline index.html */
.logo-large {
  width: 220px;
  margin-bottom: 20px;
}
.compact-header-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
/* No transitions on compact-header */
.compact-logo {
  width: 40px;
}
.compact-header-title {
  font-weight: bold;
}
.compact-burger-btn {
  background: none;
  border: none;
  color: #C6A87D;
  font-size: 1.5rem;
}
.burger-menu-popup {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.about-bg-monogramme {
  position: absolute;
  opacity: 0.05;
  width: 300px;
  top: 100px;
  left: calc(50% - 150px);
  z-index: 0;
}
.offer-btn-margin {
  margin-top: 10px;
}
.offer-details-btn {
  margin-top: 20px;
}
.contact-form-alert {
  display: none;
  margin-top: 15px;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}
.footer-top-link {
  color: #F8F5F2;
  font-size: 0.8rem;
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: #C62828;
  background-color: #FDE4E1;
}

.contact-form .error-message {
  color: #C62828;
  font-size: 0.85rem;
  margin-top: -10px;
  margin-bottom: 10px;
  display: none;
}

.contact-form .error-message.visible {
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: absolute;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #C6A87D;
  color: white;
  z-index: 999;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
}
/* Visually hidden, screen-reader accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#compact-nav {
  margin-top: 0;
  position: relative; /* positioning context for #burgerMenu */
}

a.btn-action {
  text-decoration: none;
  color: white;
}

a.btn-action:visited {
  text-decoration: none;
  color: white;
}

.compact-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}


.compact-header-cta-wrapper {
  width: 100%;
  padding: 1rem 1rem 1.25rem;
  background-color: transparent;
}

.compact-header-cta {
  background-color: #C6A87D;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  display: block;
  /* transition: none !important; */
}

.compact-header-cta:hover {
  background-color: #b89268;
}
/* Compact header */
#compact-header {
  padding: 20px;
}

#faq details {
  max-width: 980px; margin: 8px auto; padding: 12px 14px;
  background: #fff; border: 1px solid #eee; border-radius: 8px; text-align: left;
}
#faq summary { font-weight: 600; cursor: pointer; }
#faq p { margin: 8px 0 0; }

#proof ul, ol {
  list-style: none; padding: 0; margin: 0;
}

.proof {
  max-width: 600px;
  margin: auto;
  text-align: center;
  padding: 1rem;
}

@media (max-width: 600px) {
  .proof {
    padding: 1rem 0.5rem;
  }
}

.proof-note {
  margin-top: 8px;
  font-size: .95rem;
  opacity: .9;
}


/* === Simulateur de coût d’un process non optimisé === */
.simulator-section {
  max-width: 980px;
  margin: 32px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  text-align: left;
}

.simulator-title {
  text-align: center;
  margin-top: 0;
}

.simulator-desc {
  opacity: .9;
}

.simulator-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.simulator-form input[type="number"],
.simulator-form input[type="range"] {
  width: 100%;
}

.simulator-form details {
  margin-top: 6px;
}

.simulator-form .breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.simulator-form #applyBreakdown {
  margin-top: 8px;
}

.simulator-form .btns-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.simulator-form #reductionHelp {
  font-size: .9rem;
  opacity: .8;
}

.simulator-form #reductionValue {
  margin-left: auto;
  opacity: .85;
}

.simulator-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.simulator-card {
  background: #F8F5F2;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
}

.simulator-card h3 {
  margin-top: 0;
}

.simulator-card output {
  font-size: 1.3rem;
  font-weight: 700;
}

.simulator-card div {
  font-size: .9rem;
  opacity: .85;
}

.simulator-note {
  margin-top: 10px;
  font-size: .9rem;
  opacity: .8;
}



/* Simulator mobile responsive */
@media (max-width: 600px) {
  #simulator form {
    grid-template-columns: 1fr !important;
  }

  #simulator details > div {
    grid-template-columns: 1fr !important;
  }

  #simulator #results {
    grid-template-columns: 1fr !important;
  }


  #simulator #calcBtn,
  #simulator #resetBtn {
    width: 100%;
  }

  #simulator #reductionValue {
    margin-left: 0 !important;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  #simulator form > div {
    min-width: 0;
  }
}
/* Custom range input */
input[type="range"] {
  appearance: none;
  width: 100%;
  height: 4px;
  background: #C6A87D;
  border-radius: 2px;
  outline: none;
  margin-top: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #333333;
  border: 2px solid #F8F5F2;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 0 1px rgba(0,0,0,0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #333333;
  border: 2px solid #F8F5F2;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #333333;
  border: 2px solid #F8F5F2;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: #C6A87D;
  border-radius: 2px;
}

input[type="range"]::-moz-range-track {
  height: 4px;
  background: #C6A87D;
  border-radius: 2px;
}

input[type="range"]::-ms-track {
  height: 4px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.crosslink {
  margin: 0 auto; max-width: 980px;
  font-size: .98rem; opacity: .9;
}
#crosslink-webag a { font-weight: 600; text-decoration: underline; }
#crosslink-webag a:hover { text-decoration: none; }

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }

  .floating-cta {
    display: none; /* hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #333333;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 32px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 180ms ease;
    opacity: 0;
  }

  .floating-cta:hover {
    background-color: #C6A87D;
    color: #333333;
  }

  /* Show in sync with scroll-to-top button */
  .floating-cta.show {
    display: inline-block;
    opacity: 1;
  }

  #scrollToTopBtn {
    bottom: 80px; /* space for floating CTA */
  }

  .compact-header-cta-wrapper {
    display: none;
  }
}

@media (min-width: 769px) {
  .floating-cta {
    display: none;
  }
}

.linkedin-icon {
  display: inline-block;
  margin-left: 12px;
  transition: transform 0.2s ease, fill 0.3s ease;
}

.linkedin-icon:hover svg {
  fill: #F8F5F2;
  transform: scale(1.1);
}

.linkedin-section {
  margin-top: 30px;
  background-color: #F8F5F2;
  padding: 20px;
  border-left: 4px solid #C6A87D;
  font-size: 1rem;
  color: #333333;
}

.linkedin-section a {
  color: #C6A87D;
  font-weight: bold;
  text-decoration: none;
}

.linkedin-section a:hover {
  text-decoration: underline;
}

/* Accessibility: focus-visible */
/* Suppress outline on mouse clicks */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Show outline for keyboard navigation */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #C6A87D;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Checkbox */
input[type="checkbox"]:focus-visible {
  outline: 2px solid #C6A87D;
  outline-offset: 3px;
}