/* Variables */
:root {
  --blue: #061b38;
  --accent: #477783;
  --gray-light: #c0c3bc;
  --white: #f5ede0;
  --text-dark: #111111;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

html, body {
  max-width: 100%;
}

main {
  overflow: hidden;
}

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

/* Header */

header {
  position: sticky;
  top: 0;
  background-color: var(--blue);
  color: var(--white);
  padding: 1.5rem 0;
  z-index: 999;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

header.sticky {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.header nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.header nav li {
  position: relative;
}

.header nav a {
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.header nav a.btn-primary {
  padding: 0.6rem 1.2rem;
}

.header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header nav a:hover::after {
  transform: scaleX(1);
}

.header nav a:hover {
  color: var(--accent);
}

.header a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
  z-index: 0;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  position: relative;
  background: var(--blue);
  color: var(--white);
  padding: 4rem 0;
  text-align: left;
  overflow: hidden;
}

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

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out both;
}

.hero p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--gray-light);
  max-width: 720px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero a {
  margin-top: 1.5rem;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orbital-bg {
  position: absolute;
  top: 50%;
  left: 75%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.orbite {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  animation: spin 30s linear infinite;
}

.orbite2 {
  width: 400px;
  height: 400px;
  top: 100px;
  left: 100px;
  animation-duration: 90s;
  animation-direction: reverse;
}

.dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Sections */
.services,
.fonctionnement {
  padding: 4rem 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 5rem 0;
  text-align: left;

  @media (max-width: 768px) {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.service {
  background-color: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.service h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.service p {
  font-size: 1.125rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.fonctionnement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
  position: relative;
  z-index: 1;

  @media (max-width: 768px) {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.fonctionnement h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.fonctionnement .etapes h2 {
  margin-bottom: 0;
}

.fonctionnement .etapes p {
  margin-top: 1.25rem;;
}

.etapes {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}

.etapes ol,
.etapes ul {
  padding-left: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.etapes ol li,
.etapes ul li {
  margin-bottom: 0.75rem;
  position: relative;
}

.etapes ol li::marker,
.etapes ul li::marker {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
}

.publics {
  margin-top: 4rem;
}

.publics h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: var(--blue);
}

.publics-item {
  margin-bottom: 2.2rem;
}

.publics-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  color: var(--blue);
}

.publics-item p {
  margin: 0;
  font-size: 1rem;
}

.faq-section {
  /*background: var(--white);*/
  border: 1px solid var(--white);
  padding: 4rem 2rem;
  color: var(--text-dark);
  border-radius: 16px;
  position: relative;
  margin-bottom: 5rem;

  @media (max-width: 768px) {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--blue);
}

.faq-item {
  max-width: 700px;
  margin: 0 25% 2.5rem auto;
  padding: 1.5rem 2rem;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  background-color: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease-in-out;

  @media (max-width: 768px) {
    margin: 0 auto 2.5rem;
  }
}

.faq-item--right {
  margin: 0 auto 2.5rem 25%;

  @media (max-width: 768px) {
    margin: 0 auto 2.5rem;
  }
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
}

.faq-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.faq-item p a,
.publics-item p a {
  color: var(--accent);
  position: relative;
  text-decoration: none;
}

.faq-item p a::after,
.publics-item p a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.faq-item p a:hover::after,
.publics-item p a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Rejoindre, CTA, Footer */
.rejoindre,
.cta,
.footer {
  padding: 3rem 0;
  text-align: center;
}

.rejoindre-cta {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.rejoindre-cta.bottom-padding {
  margin-bottom: 5rem;
}

.rejoindre-cta .rejoindre,
.rejoindre-cta .cta {
  flex: 1 1 50%;
  padding: 6rem 2rem;
  box-sizing: border-box;
}

.rejoindre-cta .rejoindre {
  background-color: var(--white);
  color: var(--text-dark);
}

.rejoindre-cta .cta {
  background-color: var(--accent);
  color: var(--white);
}

.rejoindre-cta .inner {
  max-width: 540px;
  margin: 0 auto;
}

.rejoindre-cta h2 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.rejoindre-cta p {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.rejoindre-cta ul  {
  margin-bottom: 2rem;
}

.rejoindre-cta ul li {
  list-style-type: none;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .rejoindre-cta {
    flex-direction: column;
  }

  .rejoindre-cta .rejoindre,
  .rejoindre-cta .cta {
    flex: 1 1 100%;
    padding: 3rem 1rem;
  }
}

.cta-form-section {
  background: var(--gray-light);
  padding: 4rem 2rem;
  text-align: center;

  @media (max-width: 768px) {
    padding: 4rem 1rem;
  }
}

.cta-form-section.accent {
  background: var(--accent);
}

.cta-form-section.accent h2,
.cta-form-section.accent p {
  color: var(--white);
}

.cta-form-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-form-section p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.cta-form input,
.cta-form textarea {
  padding: 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
}

textarea {
  height: 8rem;
}

.cta-form button {
  padding: 1rem 2rem;
  border: none;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.footer {
  background: var(--blue);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-local-links {
  margin-top: 2rem;
}

.footer-local-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-local-links ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  max-width: 800px;
}

.footer-local-links li a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
}

.footer-local-links li a:hover {
  text-decoration: underline;
  color: #ffffffcc; /* blanc un peu atténué au survol */
}

.footer-copy {
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-delay.visible {
  opacity: 1;
  transform: translateY(0);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  color: inherit; /* hérite du parent (souvent blanc ou noir selon header) */
}

.logo-link img {
  display: block;
  height: 40px;
}

.decor-fonctionnement {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--accent);
  opacity: 0.12;
  border-radius: 50% 50% 45% 55% / 60% 40% 60% 40%;
  pointer-events: none;
  z-index: 0;
  animation: pulseGlowClean 5s ease-in-out infinite, slowRotate 60s linear infinite;
}

.decor-top-left {
  top: -60px;
  left: -40px;
  transform: rotate(-15deg);
}

.decor-bottom-right {
  bottom: -60px;
  right: -40px;
  transform: rotate(20deg);
}

.decor-bottom-left {
  bottom: -60px;
  left: -40px;
  transform: rotate(50deg);
}

@keyframes slowRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseGlowClean {
  0%, 100% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.28;
  }
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.btn-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
  z-index: 0;
}

.btn-secondary:hover::after {
  left: 100%;
}

.btn-secondary span {
  position: relative;
  z-index: 1;
}

.btn-secondary.btn-reverse {
  color: var(--blue);
  background: var(--white);
}

.btn-secondary.btn-reverse::after {
  background: rgba(0, 0, 0, 0.2);
}

.not-found {
  text-align: center;
  padding: 6rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.not-found h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.not-found p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.not-found a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.footer-legal {
  margin-top: 2rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--white);
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.footer-legal-links li {
  display: inline-block;
  margin: 0 0.75rem;
}

.footer-legal-links a {
  color: var(--white);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
  opacity: 0.8;
}

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.legal h1 {
  font-size: 2.75rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--blue);
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.legal p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.legal a {
  color: var(--blue);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.legal a:hover {
  opacity: 0.8;
}

.contact-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.contact-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.contact-page p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

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

.contact-layout {
  padding-top: 4rem;
}

.contact-layout.accent {
  background: var(--accent);
}

.contact-layout .container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
}

.contact-layout.accent h2,
.contact-layout.accent p {
  color: var(--white);
}

.contact-form {
  flex: 2 1 500px;
}

.contact-alt {
  flex: 1 1 300px;
}

.contact-alt {
  padding: 2rem;
  text-align: center;
}

.calendly-box h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.calendly-box p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #333;
}

.pb {
  padding-bottom: 1.5rem;
}
#contact {
  scroll-margin-top: 92px;
}

.cta-60-40 {
  background: var(--white);
  color: var(--blue);
  padding: 5rem 0;
}

.cta-60-40__container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6rem;
  align-items: center;
}

.cta-60-40__left h2,
.cta-60-40__left p,
.cta-60-40__left ul,
.cta-60-40__right h3,
.cta-60-40__right p,
.cta-60-40__right ul {
  color: var(--white);
}

.cta-60-40 .badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.cta-60-40 h2,
.cta-60-40 p {
  color: var(--blue);
}

.cta-60-40__card {
  background: var(--blue);
  color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-60-40__card ul {
  padding-top: 1.5rem;
}

.cta-60-40__card ul li {
  list-style-position: inside;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.cta-60-40 .btn-primary, .btn-secondary {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .cta-60-40__container {
    grid-template-columns: 1fr;
  }
}


/* Bouton menu burger - invisible en desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Effet X */
.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.only-mobile {
  display: none;
}

.only-desktop {
  display: inline-block;
}

/* Menu responsive : uniquement actif en mobile */
@media (max-width: 768px) {
  .only-mobile {
    display: block;
  }

  .only-desktop {
    display: none;
  }

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

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--blue);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 1rem;
  }

  .main-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
  }

  .main-nav .btn-primary {
    align-self: flex-start;
  }
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.cc-revoke {
  display: none !important;
}

.trusted-clients {
  background: var(--white);
  padding: 4rem 1.5rem;
  border-top: 1px solid #eaeaea;
  text-align: center;
}

.trusted-clients.bottom-padding {
  margin-bottom: 5rem;
}

.trusted-clients .subtitle {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.trusted-clients h2 {
  font-size: 1.8rem;
  color: var(--blue);
  margin-bottom: 2.5rem;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

.client-logos img {
  max-height: 60px;
  max-width: 100%;
  opacity: 0.75;
  transition: opacity 0.3s ease;
  filter: grayscale(80%);
}

.client-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.logo-note {
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .trusted-clients {
    padding: 3rem 1rem;
  }

  .trusted-clients h2 {
    font-size: 1.5rem;
  }

  .client-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .client-logos img {
    max-height: 50px;
  }
}

@media (max-width: 480px) {
  .client-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .client-logos img {
    max-height: 40px;
  }
}

.trusted-clients.bg-blue {
  background-color: var(--blue);
  color: var(--white);
}

.trusted-clients.bg-accent {
  background-color: var(--accent);
}

.trusted-clients.bg-blue h2 {
  color: var(--white);
}

.trusted-clients.bg-blue .subtitle,
.trusted-clients.bg-blue .logo-note {
  color: rgba(255, 255, 255, 0.7);
}
