:root {
  --bleu: #2F4B97;
  --bleu-ciel: #78CAF2;
  --bleu-ciel-fonce: #2E9BD6;
  --jaune: #FBC056;
  --jaune-fonce: #C98A1E;
  --fond: #ffffff;
  --fond-doux: #F1F8FE;
  --font: "Share Tech Mono", "OCR A Extended", ui-monospace, "Courier New", monospace;
  --wrap: 1120px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--bleu);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 75, 151, .12);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.header__logo img { height: 42px; width: auto; }

.nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: .9rem; }
.nav a {
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.nav a:hover { border-color: var(--jaune); }

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--bleu);
  color: #fff;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .15s ease;
}
.btn:hover { background: var(--bleu-ciel-fonce); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  text-align: center;
  background: var(--fond);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/motif_bleu.png") repeat;
  background-size: 130px 169px;
  opacity: .16;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.hero__eyebrow { font-size: clamp(1.1rem, 2.6vw, 1.7rem); margin: 0; }
.hero__logo { width: min(560px, 82%); height: auto; }
.hero__baseline { font-size: clamp(.95rem, 2vw, 1.15rem); margin: 0; }
.hero__services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  padding: 0;
  margin: .5rem 0 0;
}
.hero__services li {
  border: 2px solid var(--bleu-ciel);
  border-radius: 999px;
  padding: .3rem 1.1rem;
  font-size: .95rem;
}
.hero__tagline {
  margin: 1.1rem 0 0;
  max-width: 46ch;
  color: var(--jaune-fonce);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.5;
}

/* ---------- Decorative brackets ---------- */
.bracket {
  position: absolute;
  width: 62px;
  height: 62px;
  border: 12px solid var(--bleu);
  border-radius: 20px;
  pointer-events: none;
}
.bracket--tl { top: 26px; left: 26px; border-right: 0; border-bottom: 0; }
.bracket--br { bottom: 26px; right: 26px; border-left: 0; border-top: 0; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section--soft { background: var(--fond-doux); }
.section__head { margin-bottom: 1.6rem; }
.section__title {
  color: var(--jaune-fonce);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: .01em;
}
.section__subtitle {
  color: var(--bleu-ciel-fonce);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  margin: .25rem 0 0;
}
.lead { max-width: 72ch; font-size: 1.02rem; }

/* ---------- Lists ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .7rem;
  max-width: 72ch;
}
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: .5em;
  background: var(--jaune);
  border-radius: 4px 4px 0 4px;
}
.checklist--lg { gap: 1rem; font-size: 1.05rem; }

.closing {
  margin-top: 1.8rem;
  max-width: 72ch;
  color: var(--jaune-fonce);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

/* ---------- Cards & grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.8rem; }

.card {
  background: #fff;
  border: 1px solid rgba(47, 75, 151, .12);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 18px 40px -30px rgba(47, 75, 151, .6);
}
.card__title { color: var(--bleu-ciel-fonce); font-size: 1.15rem; margin-bottom: 1rem; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tags li {
  border: 2px solid var(--bleu);
  border-radius: 999px;
  padding: .3rem 1rem;
  font-size: .9rem;
}

/* ---------- Photos ---------- */
.gallery {
  margin-top: 1.8rem;
  columns: 1;
  column-gap: 1.2rem;
}
.gallery img {
  width: 100%;
  height: auto;
  margin-bottom: 1.2rem;
  break-inside: avoid;
}
@media (min-width: 620px) {
  .gallery { columns: 2; }
}

/* ---------- Team ---------- */
.team {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  max-width: 660px;
}
.team__name { margin: .7rem 0 0; text-align: center; color: var(--bleu-ciel-fonce); }
.team img { width: 100%; height: auto; }

/* ---------- Partner logos ---------- */
.logos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.logos li {
  background: #fff;
  border: 1px solid rgba(47, 75, 151, .1);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 1rem;
  min-height: 100px;
}
.logos img { max-height: 56px; width: auto; object-fit: contain; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--bleu);
  color: #fff;
  padding: 4rem 0 2rem;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/motif_blanc.png") repeat;
  background-size: 130px 169px;
  opacity: .06;
  pointer-events: none;
}
.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.footer__title { color: var(--jaune); font-size: 1.15rem; margin-bottom: .9rem; }
.footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.footer a:hover { border-color: var(--jaune); }
.footer__address { font-style: normal; }

.contact { margin-bottom: 1.4rem; }
.contact:last-child { margin-bottom: 0; }
.contact__name { margin: 0; color: var(--bleu-ciel); }
.contact__role { margin: 0 0 .4rem; font-size: .85rem; opacity: .8; }

.footer__map {
  background: #fff;
  border-radius: 14px;
  padding: .6rem;
  margin-bottom: 1rem;
}
.footer__note { font-size: .88rem; opacity: .9; }

.footer__col--qr { display: flex; flex-direction: column; align-items: flex-start; }
.footer__qr { width: 150px; background: #fff; padding: 8px; border-radius: 12px; margin: .4rem 0 1.2rem; }
.footer__logo { width: 200px; height: auto; }

.footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: .85rem;
  opacity: .85;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .header__inner { justify-content: space-between; }
  .bracket { width: 44px; height: 44px; border-width: 9px; }
  .bracket--tl { top: 16px; left: 16px; }
  .bracket--br { bottom: 16px; right: 16px; }
}

@media (max-width: 520px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.25rem 0; }
  .footer { padding: 3rem 0 1.5rem; }
}
