/* QualiUp – feuille de style du site statique */
:root {
  --teal: #45bf9a;
  --teal-2: #4abdac;
  --teal-dark: #2e7f67;
  --gold: #dca50d;
  --coral: #ff6863;
  --text: #57606c;
  --text-2: #788492;
  --muted: #6a7a91;
  --heading: #4c4c4c;
  --heading-2: #272f39;
  --light: #f7f8fa;
  --border: #e4e6e9;
  --shadow: 0 3px 7px rgba(0, 0, 0, .09);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 14px/1.8 Poppins, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-2); text-decoration: none; }
a:hover { color: var(--teal-dark); }
p { margin: 0 0 10px; }
h1, h2, h3, h4 { font-family: Poppins, "Segoe UI", Arial, sans-serif; color: var(--heading); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: 35px; font-weight: 600; }
h3 { font-size: 26px; font-weight: 400; }
ul { padding-left: 20px; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 15px 0; }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.container.narrow { max-width: 860px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }
.hide-mobile { }
.spacer { display: block; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* ------------------------------------------------------------------ en-tête */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand .logo-light { display: block; height: 51px; width: auto; }
.brand .logo-dark { display: none; height: 48px; width: auto; }
.site-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: #fff; font-size: 16px; transition: color .2s; }
.site-nav a:hover { color: var(--gold); }
.site-nav a.is-active { color: var(--gold); }
.nav-toggle { display: none; }

.site-header.is-stuck {
  position: fixed;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 2px 12px rgba(0, 0, 0, .06);
  animation: slide-down .3s ease-out;
}
.site-header.is-stuck .header-inner { height: 66px; }
.site-header.is-stuck .brand .logo-light { display: none; }
.site-header.is-stuck .brand .logo-dark { display: block; }
.site-header.is-stuck .site-nav a { color: var(--heading); }
.site-header.is-stuck .site-nav a:hover,
.site-header.is-stuck .site-nav a.is-active { color: var(--teal-2); }
@keyframes slide-down { from { transform: translateY(-100%); } to { transform: none; } }

/* ------------------------------------------------------------------ accueil */
.hero {
  position: relative;
  min-height: 550px;
  background: var(--teal) center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 150px 15px 170px;
}
.hero h1 { color: #fff; font-size: 60px; font-weight: 500; line-height: 1; margin: 0 0 12px; }
.hero .tagline { font-size: 25px; font-weight: 300; margin: 0 0 32px; }
.hero .lead { font-size: 18px; font-weight: 300; line-height: 1.25; max-width: 800px; margin: 0 auto; }

.intro-card {
  position: relative; z-index: 2;
  margin: -125px auto 20px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 50px 15px 30px;
  text-align: center;
}
.intro-card h2 { max-width: 570px; margin: 0 auto 40px; }
.intro-card .lead { max-width: 570px; margin: 0 auto 50px; color: var(--muted); font-size: 16px; line-height: 1.3; }
.section-title { font-family: Lato, Poppins, sans-serif; font-weight: 700; font-size: 26px; color: var(--teal); text-transform: uppercase; margin: 0 0 6px; }
.title-underline { width: 40%; max-width: 480px; height: 2px; background: var(--teal); margin: 0 auto 30px; }

.members { position: relative; padding: 10px 40px; }
.members-track {
  display: flex; gap: 8px; justify-content: space-between;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 0;
}
.members-track::-webkit-scrollbar { display: none; }
.members-track a { flex: 0 0 173px; scroll-snap-align: start; }
.members-track img { width: 173px; height: 173px; object-fit: contain; display: block; transition: transform .2s; }
.members-track a:hover img { transform: scale(1.04); }
.scroller-prev, .scroller-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; font-size: 44px; line-height: 1; color: #c8ccd2; cursor: pointer; padding: 0 6px;
}
.scroller-prev { left: 0; } .scroller-next { right: 0; }
.scroller-prev:hover, .scroller-next:hover { color: var(--teal); }
.members.no-scroll .scroller-prev, .members.no-scroll .scroller-next { display: none; }

.section-excellence { background: var(--light); padding: 60px 0; }
.video { aspect-ratio: 16 / 9; max-width: 1170px; margin: 70px auto; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.section-excellence h2 { text-align: center; margin: 0 0 70px; }
.section-excellence .text p { color: var(--muted); }
.closing { max-width: 600px; margin: 32px auto 0; text-align: center; }
.closing p { margin-bottom: 22px; }

.btn {
  display: inline-block; height: 42px; line-height: 42px; padding: 0 36px;
  border-radius: 50px; background: rgba(69, 191, 154, .8); color: #fff;
  font-size: 14px; font-weight: 300; transition: background .2s, color .2s;
}
.btn:hover { background: var(--teal); color: #fff; }
.btn-light { background: #dedede; color: var(--heading); }
.btn-light:hover { background: var(--teal); color: #fff; }

.section-trust { position: relative; background: var(--teal) center / cover no-repeat; color: #fff; padding: 40px 10% 3%; }
.section-trust::before { content: ""; position: absolute; inset: 0; background: rgba(69, 191, 154, .8); }
.section-trust .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 150px; }
.trust-title { font-size: 25px; font-weight: 700; margin: 0; }
.logo-grid { display: grid; grid-template-columns: repeat(5, 86px); gap: 10px; }
.logo-grid div { background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 7px; }
.logo-grid img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.contact-band { background: var(--teal); border-top: 2px solid var(--teal-dark); color: #fff; }
.contact-band .container { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
.contact-band .item { min-height: 150px; display: flex; align-items: center; gap: 18px; padding: 20px 20px 20px 5%; }
.contact-band .item + .item { border-left: 1px solid rgba(255, 255, 255, .2); }
.contact-band svg { width: 45px; height: 45px; flex: 0 0 45px; stroke: #fff; fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.contact-band p { margin: 0; }
.contact-band strong { display: block; }
.contact-band a { color: #fff; }

.section-projects { position: relative; padding: 70px 10px 10px; overflow: hidden; }
.section-projects::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 70px;
  background: rgba(69, 191, 154, .69);
  clip-path: polygon(0 0, 100% 0, 100% 15%, 0 100%);
}
.section-projects h2 { color: var(--text-2); text-align: center; margin: 20px 0 30px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px; }
.filters button {
  background: #fff; border: 1px solid #ddd; border-radius: 20px; padding: 4px 14px;
  font-size: 13px; color: #999; cursor: pointer; transition: all .2s;
}
.filters button:hover { border-color: #bbb; color: #666; }
.filters button.is-active { border-color: var(--coral); color: var(--coral); }
.project-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 24px; }
.project-card { display: block; background: #fff; box-shadow: var(--shadow); color: var(--heading); text-align: center; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); color: var(--heading); }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.project-card h3 { font-size: 16px; font-weight: 400; padding: 12px 8px; margin: 0; line-height: 1.3; }
.project-card.is-hidden { display: none; }

.map { height: 400px; background: #e3e6ea; }
.leaflet-container { font: inherit; }

/* ------------------------------------------------------------------ pied de page */
.site-footer { background: var(--teal); color: #fff; }
.footer-inner { padding: 30px 15px 25px; }
.footer-inner img { height: 22px; width: auto; display: block; margin-bottom: 6px; }
.footer-inner span { font-size: 13px; }
.copyright { background: #fff; color: var(--heading); font-size: 13px; text-align: center; padding: 20px 15px; }
.copyright a { color: var(--teal-2); }
.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-2); box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.to-top svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------------ pages intérieures */
.page-title { position: relative; background: var(--teal-2); color: #fff; text-align: center; padding: 140px 15px 48px; overflow: hidden; }
.page-title.has-bg::before { content: ""; position: absolute; inset: 0; background: var(--title-bg) center / cover no-repeat; opacity: .18; }
.page-title .container { position: relative; }
.page-title h1 { color: #fff; font-size: 38px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 6px; }
.page-title p { font-size: 13px; margin: 0; }
.crumbs { background: var(--teal-2); padding: 0 0 14px; }
.crumbs .container > div { background: rgba(255, 255, 255, .13); padding: 7px 14px; font-size: 12px; color: #fff; display: flex; gap: 8px; align-items: center; }
.crumbs a { color: #fff; display: flex; }
.crumbs svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }

.page-content { padding: 60px 0; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row.container { margin-left: auto; margin-right: auto; padding: 0; }
.col { padding: 0 15px; flex: 0 0 100%; max-width: 100%; min-width: 0; }
.col-1-2 { flex-basis: 50%; max-width: 50%; }
.col-1-3 { flex-basis: 33.3333%; max-width: 33.3333%; }
.col-2-3 { flex-basis: 66.6667%; max-width: 66.6667%; }
.col-1-4 { flex-basis: 25%; max-width: 25%; }
.col-3-4 { flex-basis: 75%; max-width: 75%; }
.text p, .text li { color: var(--text-2); }
.text p.mt { margin-top: 30px; }
.text strong { color: var(--text); }
.text-styled { padding: 20px 25px 10px; border-bottom: 3px solid var(--teal-2); color: var(--text-2); margin-bottom: 20px; }
.text-styled p { color: inherit; }
.text-styled h3 { text-align: center; }
.wow-title { margin-bottom: 15px; }
.font-raleway { font-family: Raleway, Poppins, sans-serif; font-weight: 500; }
.font-lato { font-family: Lato, Poppins, sans-serif; font-weight: 700; }
.figure { margin: 0 0 20px; }
.figure.align-center { text-align: center; }
.figure img { display: inline-block; }
blockquote { border: 1px solid var(--teal-2); padding: 15px 20px; margin: 15px 0; font-style: italic; color: var(--text-2); }
.portfolio h3 { margin-top: 10px; }
.portfolio .text h3 { color: var(--heading-2); margin: 20px 0 10px; }

.carousel { position: relative; padding: 0 50px; margin-bottom: 30px; }
.carousel-track { display: flex; overflow: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.carousel-slide { flex: 0 0 100%; text-align: center; scroll-snap-align: start; }
.carousel-slide img { max-height: 500px; width: auto; max-width: 100%; display: inline-block; }
.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; font-size: 56px; line-height: 1; color: #758899; cursor: pointer; padding: 0 8px;
}
.carousel-prev { left: 0; } .carousel-next { right: 0; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; background: #cdd2d8; border: 0; padding: 0; cursor: pointer; }
.carousel-dots button.is-active { background: #758899; }

.icon-list { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.icon-list svg { width: 20px; height: 20px; flex: 0 0 20px; stroke: var(--teal-2); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.icon-list ul { list-style: none; margin: 0; padding: 0; }
.icon-list strong { color: var(--text); }

.partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-card { background: #fff; border: 1px solid #eee; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 10px; transition: box-shadow .2s; }
.logo-card:hover { box-shadow: var(--shadow); }
.logo-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* L'association */
.assoc-intro { padding: 130px 0 100px; }
.assoc-intro .figure img { box-shadow: var(--shadow); }
.assoc-intro em { color: var(--text-2); }
.section-howwework { background: #fff right 78px / auto no-repeat; min-height: 600px; padding: 45px 0; }
.accordion .panel { border-bottom: 1px solid #e5e5e5; }
.accordion h3 { margin: 0; font-size: 14px; }
.panel-title {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; padding: 14px 12px; font-weight: 700; font-size: 14px; color: var(--heading);
  cursor: pointer; text-align: left; transition: background .2s, color .2s;
}
.panel-title::after { content: "+"; font-size: 20px; font-weight: 300; }
.panel.is-open .panel-title { background: var(--teal-2); color: #fff; }
.panel.is-open .panel-title::after { content: "−"; }
.panel-body { display: none; padding: 14px 12px; color: var(--text-2); }
.panel-body p { color: var(--text-2); }
.panel.is-open .panel-body { display: block; }
.assoc-team { padding: 90px 0; }
.wings-title { display: flex; align-items: center; justify-content: center; gap: 20px; color: var(--text-2); font-weight: 400; margin: 60px 0 25px; text-align: center; }
.wings-title::before, .wings-title::after { content: ""; flex: 1; max-width: 450px; height: 1px; background: rgba(120, 132, 146, .2); }
.builders-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; text-align: center; }
.builder { display: block; color: var(--text-2); }
.builder img { width: 100%; max-width: 190px; aspect-ratio: 1; object-fit: contain; transition: transform .2s; }
.builder:hover img { transform: scale(1.05); }
.builder span { display: block; margin-top: 8px; font-size: 15px; }

/* Contact */
.contact-page h3 { margin-bottom: 4px; }
.contact-page h2 { margin-bottom: 20px; }
.contact-aside { padding-top: 35px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  width: 100%; height: 45px; padding: 1px 15px;
  border: 1px solid rgba(120, 132, 146, .5); border-radius: 3px; background: transparent;
  font: 400 14px Poppins, sans-serif; color: var(--text-2); transition: border-color .2s;
}
.contact-form textarea { height: 284px; padding: 12px 15px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--teal-2); }
.contact-form input.is-invalid, .contact-form textarea.is-invalid { border-color: var(--coral); }
.btn-submit {
  width: 100%; height: 42px; border-radius: 50px; border: 0; cursor: pointer;
  background: var(--teal-2); color: #fff; font: 300 14px Poppins, sans-serif; text-transform: uppercase;
  transition: background .2s;
}
.btn-submit:hover { background: var(--teal-dark); }
.btn-submit[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 12px 15px; border-radius: 3px; margin-bottom: 15px; }
.form-notice.is-success { background: #e6f7f1; color: var(--teal-dark); }
.form-notice.is-error { background: #fdecec; color: #b33; }

/* Mentions légales */
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal .todo { background: #fff6e0; border-left: 3px solid var(--gold); padding: 10px 14px; color: #7a5a00; }

/* ------------------------------------------------------------------ réactif */
@media (max-width: 1199px) {
  .project-grid { grid-template-columns: repeat(4, 1fr); }
  .partners-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 991px) {
  .site-header { position: sticky; top: 0; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
  .site-header.is-stuck { animation: none; }
  .header-inner, .site-header.is-stuck .header-inner { height: 66px; }
  .brand .logo-light { display: none; }
  .brand .logo-dark { display: block; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 8px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--teal-2); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; padding: 6px 20px 16px; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a, .site-header.is-stuck .site-nav a { display: block; padding: 12px 0; color: var(--heading); border-bottom: 1px solid #eee; }
  .site-nav a.is-active, .site-header.is-stuck .site-nav a.is-active { color: var(--teal-2); }
  .hero { min-height: 0; padding: 70px 15px 150px; }
  .hero h1 { font-size: 42px; }
  .page-title { padding: 50px 15px 40px; }
  .page-title h1 { font-size: 30px; }
  .assoc-intro { padding: 60px 0; }
  .section-howwework { background-image: none !important; min-height: 0; }
  .section-howwework .col-1-2 { flex-basis: 100%; max-width: 100%; }
  .section-trust { padding: 40px 15px 30px; }
  .section-trust .container { flex-direction: column; text-align: center; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .builders-grid { grid-template-columns: repeat(2, 1fr); }
  .wings-title::before, .wings-title::after { max-width: 120px; }
}
@media (max-width: 767px) {
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .col, .col-1-2, .col-1-3, .col-2-3, .col-1-4, .col-3-4 { flex-basis: 100%; max-width: 100%; }
  .hide-mobile { display: none; }
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 20px; }
  .hero .lead { font-size: 16px; }
  .intro-card { margin-top: -90px; padding: 36px 15px 20px; }
  .members { padding: 10px 30px; }
  .members-track { justify-content: flex-start; }
  .video { margin: 20px auto 50px; }
  .section-excellence h2 { margin-bottom: 40px; }
  .section-excellence .text p { text-align: left; }
  .logo-grid { grid-template-columns: repeat(5, 1fr); width: 100%; max-width: 440px; }
  .contact-band .container { grid-template-columns: 1fr; }
  .contact-band .item { min-height: 0; padding: 18px 20px; }
  .contact-band .item + .item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .contact-aside { padding-top: 40px; }
  .carousel { padding: 0 34px; }
  .carousel-prev, .carousel-next { font-size: 44px; }
  .to-top { right: 16px; bottom: 16px; }
}
@media (max-width: 479px) {
  .project-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .builders-grid { grid-template-columns: 1fr; }
  .members-track a { flex-basis: 140px; }
  .members-track img { width: 140px; height: 140px; }
}
@media print {
  .site-header, .to-top, .nav-toggle, .map, .video { display: none; }
}
