/* ============================================================
   Mean to Be — shared stylesheet
   Faithful rebuild of the brand site, refined & polished.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette (sampled from reference) */
  --navy:        #0A215E;
  --navy-2:      #011453;
  --navy-deep:   #011453;
  --teal:        #049296;
  --teal-bright: #05a8ab;
  --teal-soft:   #e3f1f1;
  --orange:      #F99F0B;
  --orange-dark: #e08c00;

  --ink:    #2c3342;
  --muted:  #69707f;
  --line:   #e7e9ee;
  --bg:     #ffffff;
  --bg-soft:#f1f2f4;
  --bar:    #049296;

  --shadow-card: 0 1px 2px rgba(22,36,63,.04), 0 8px 24px rgba(22,36,63,.06);
  --shadow-card-h: 0 6px 16px rgba(22,36,63,.08), 0 18px 44px rgba(22,36,63,.12);

  --container: 1200px;
  --ff-display: 'Poppins', system-ui, sans-serif;
  --ff-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}

/* ---------- Buttons & small bits ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-body); font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--orange); color: #fff; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(249,159,11,.28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(249,159,11,.34); }
.btn .ic { width: 18px; height: 18px; }

.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-soft); border-color: #d4d8e0; color: var(--navy); transform: translateY(-2px); }

.accent-rule { width: 64px; height: 4px; border-radius: 3px; background: var(--orange); border: 0; margin: 0; }

.eyebrow { font-family: var(--ff-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--teal); }

/* ---------- Section heading ---------- */
.section-head { text-align: center; display: grid; justify-items: center; gap: 18px; margin-bottom: 48px; }
.section-head h2 { margin: 0; font-family: var(--ff-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); letter-spacing: -.01em; }
.section-head h2 .ac { color: var(--teal); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 78px; }

/* Brand lockup */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .mark { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.brand .wordmark { line-height: 1.05; }
.brand .wordmark .name { font-family: var(--ff-display); font-weight: 700; font-size: 20px; letter-spacing: .01em; }
.brand .wordmark .name .cap { color: var(--navy); }
.brand .wordmark .name .al { color: var(--teal); }
.brand .wordmark .tag { font-family: var(--ff-display); font-weight: 500; font-size: 11.5px; color: var(--teal); letter-spacing: .005em; }

/* Primary nav */
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 19px; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--ff-display); font-weight: 500; font-size: 13.5px; color: var(--navy);
  line-height: 1.25; text-align: center; display: inline-block; padding-bottom: 6px;
  border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: var(--teal); }
.main-nav a.active { color: var(--teal); border-bottom-color: var(--teal); }
.main-nav .stack { max-width: 88px; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: linear-gradient(180deg, #fbfcfd 0%, #f6f8f9 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: 64px 72px; }
.hero-copy { max-width: 520px; }
.hero h1 {
  margin: 0 0 6px; font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.015em;
}
.hero h1 .l1 { color: var(--navy); display: block; }
.hero h1 .l2 { color: var(--teal); display: block; }
.hero .hero-rule { margin: 22px 0 22px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 460px; margin: 0 0 30px; }

.hero-media { position: relative; min-height: 420px; display: flex; justify-content: center; align-items: center; }
.hero-media .ring { position: absolute; border-radius: 50%; border: 2px solid rgba(4,146,150,.18); }
.hero-media .ring.r1 { width: 520px; height: 520px; left: -60px; }
.hero-media .ring.r2 { width: 380px; height: 380px; left: 0; border-color: rgba(249,159,11,.16); }
.hero-media image-slot { width: 100%; max-width: 580px; height: 420px; position: relative; box-shadow: var(--shadow-card-h); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding-block: 72px; }
.cards-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px 22px; display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); border-color: #dfe6e9; }
.card .ic-wrap { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 16px; }
.card .ic-wrap svg { width: 44px; height: 44px; stroke: var(--teal); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 10px; font-family: var(--ff-display); font-weight: 600; font-size: 17px; color: var(--navy); line-height: 1.25; }
.card p { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-display); font-weight: 600; font-size: 14px; color: var(--orange); }
.card .more svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .18s ease; }
.card:hover .more svg { transform: translateX(4px); }

/* ============================================================
   ABOUT (Qui suis-je)
   ============================================================ */
.about { padding-bottom: 78px; }
.about-card {
  background: var(--bg-soft); border-radius: 18px; padding: 30px;
  display: grid; grid-template-columns: 220px 1.3fr 1fr; gap: 34px; align-items: center;
}
.about-photo { width: 100%; height: 200px; }
.about-body h2 { margin: 0 0 14px; font-family: var(--ff-display); font-weight: 700; font-size: 26px; color: var(--navy); }
.about-body h2 .je { color: var(--teal); }
.about-body p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.65; }
.values { display: grid; gap: 22px; border-left: 1px solid #dcdfe5; padding-left: 30px; }
.value { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.value .v-ic { width: 44px; height: 44px; display: grid; place-items: center; }
.value .v-ic svg { width: 38px; height: 38px; stroke: var(--teal); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.value h4 { margin: 0 0 3px; font-family: var(--ff-display); font-weight: 600; font-size: 16px; color: var(--navy); }
.value p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: linear-gradient(160deg, #0A215E 0%, #0a213f 60%, #0a1d38 100%); color: #cdd6e2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.6fr 1.2fr 1.3fr; gap: 40px; padding-block: 56px 44px; }
.footer-brand .brand .wordmark .name .cap { color: #fff; }
.footer-brand .brand .wordmark .name .al { color: #cfe0e8; }
.footer-brand p { margin: 18px 0 0; font-size: 14px; color: #9fb0c4; line-height: 1.65; max-width: 280px; }
.footer-col h5 { margin: 0 0 18px; font-family: var(--ff-display); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-bright); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.footer-nav a, .footer-col li { font-size: 14px; color: #b9c4d3; }
.footer-nav a { padding: 3px 0; transition: color .15s ease; }
.footer-nav a:hover { color: #fff; }
.footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #b9c4d3; }
.footer-contact li .v { white-space: nowrap; }
.footer-contact svg { width: 17px; height: 17px; stroke: var(--teal-bright); fill: none; stroke-width: 1.8; flex-shrink: 0; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact a:hover { color: #fff; }
.zone .loc { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #d6dee8; margin-bottom: 16px; }
.zone .loc svg { width: 17px; height: 17px; stroke: var(--teal-bright); fill: none; stroke-width: 1.8; }
.zone .note { border: 1px solid rgba(120,150,180,.35); border-radius: 10px; padding: 14px 16px; font-size: 12.5px; color: #9fb0c4; line-height: 1.55; }
.footer-bar { background: var(--bar); }
.footer-bar .container { padding-block: 13px; text-align: center; font-size: 13px; color: #eaf6f4; }

/* ============================================================
   GENERIC INNER-PAGE BLOCKS
   ============================================================ */
.page-hero { background: linear-gradient(180deg, #fbfcfd, #f3f6f7); padding-block: 56px; }
.page-hero .crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.page-hero .crumb a:hover { color: var(--teal); }
.page-hero h1 { margin: 0 0 16px; font-family: var(--ff-display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); color: var(--navy); letter-spacing: -.015em; }
.page-hero h1 .ac { color: var(--teal); }
.page-hero .lead { font-size: 19px; color: var(--muted); max-width: 620px; }

.prose { padding-block: 64px; }
.prose-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.prose h2 { font-family: var(--ff-display); font-weight: 700; font-size: 28px; color: var(--navy); margin: 0 0 18px; letter-spacing: -.01em; }
.prose h3 { font-family: var(--ff-display); font-weight: 600; font-size: 19px; color: var(--navy); margin: 32px 0 10px; }
.prose p { color: var(--muted); font-size: 16.5px; margin: 0 0 16px; }
.prose ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.prose ul.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--ink); font-size: 16px; }
.prose ul.checks li::before {
  content: ""; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23049296' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.aside-card { background: var(--bg-soft); border-radius: 16px; padding: 28px; position: sticky; top: 100px; }
.aside-card h4 { font-family: var(--ff-display); font-weight: 600; font-size: 17px; color: var(--navy); margin: 0 0 8px; }
.aside-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 20px; }
.aside-card .accent-rule { margin-bottom: 20px; }

.cta-band { background: var(--teal-soft); padding-block: 56px; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin: 0; max-width: 620px; letter-spacing: -.01em; }
.cta-band p { color: var(--teal); font-weight: 600; margin: 8px 0 0; }

/* Service sub-grid for the services overview page */
.svc-list { padding-block: 70px; }
.svc-list .row { display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.svc-list .row:last-child { border-bottom: 1px solid var(--line); }
.svc-list .row .ic-wrap { width: 64px; height: 64px; border-radius: 14px; background: var(--teal-soft); display: grid; place-items: center; }
.svc-list .row .ic-wrap svg { width: 34px; height: 34px; stroke: var(--teal); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-list .row h3 { font-family: var(--ff-display); font-weight: 600; font-size: 20px; color: var(--navy); margin: 0 0 4px; }
.svc-list .row p { margin: 0; color: var(--muted); font-size: 15px; max-width: 640px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: 64px; align-items: start; }
.contact-info .item { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .item:first-of-type { border-top: 1px solid var(--line); }
.contact-info .item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; }
.contact-info .item .ic svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-info .item .lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-info .item .val { font-family: var(--ff-display); font-weight: 600; font-size: 17px; color: var(--navy); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow-card); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--ff-body); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; background: #fcfdfd;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(4,146,150,.14); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   DIRECTION VARIATIONS  (toggle via the on-page switcher)
   ============================================================ */
/* — Aéré : more air, softer borderless cards — */
body.dir-aere .hero { background: #ffffff; }
body.dir-aere .hero-inner { padding-block: 78px 88px; }
body.dir-aere .services { padding-block: 90px; }
body.dir-aere .section-head { margin-bottom: 60px; }
body.dir-aere .accent-rule { width: 46px; height: 3px; }
body.dir-aere .card { border-color: transparent; background: #fbfcfd; box-shadow: 0 14px 36px rgba(22,36,63,.07); padding: 30px 22px 26px; }
body.dir-aere .card:hover { box-shadow: 0 20px 50px rgba(22,36,63,.12); }
body.dir-aere .about-card { background: #fbfcfd; border: 1px solid var(--line); }
body.dir-aere .page-hero { background: #ffffff; border-bottom: 1px solid var(--line); }

/* — Affirmé : bolder type, pill buttons, accented cards — */
body.dir-affirme { --orange: #e8661a; }
body.dir-affirme .btn { border-radius: 999px; padding: 15px 32px; }
body.dir-affirme .hero { background: linear-gradient(180deg, #eef5f4 0%, #f6f8f9 100%); }
body.dir-affirme .hero h1 { font-weight: 800; }
body.dir-affirme .section-head h2 { font-weight: 800; }
body.dir-affirme .accent-rule { width: 72px; height: 5px; }
body.dir-affirme .card { border-top: 3px solid var(--teal); }
body.dir-affirme .card:hover { border-top-color: var(--orange); }
body.dir-affirme .page-hero h1 { font-weight: 800; }

/* — Direction switcher widget — */
.dir-switch {
  position: fixed; left: 18px; bottom: 18px; z-index: 200;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 9px 7px 14px;
  box-shadow: 0 8px 28px rgba(22,36,63,.16); font-family: var(--ff-display);
}
.dir-switch .lbl { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.dir-switch button {
  font-family: var(--ff-display); font-weight: 600; font-size: 12.5px; color: var(--navy);
  background: transparent; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.dir-switch button:hover { background: var(--bg-soft); }
.dir-switch button.on { background: var(--teal); color: #fff; }
.dir-switch .close { width: 24px; height: 24px; padding: 0; color: var(--muted); font-size: 15px; line-height: 1; }
@media (max-width: 600px) { .dir-switch .lbl { display: none; } .dir-switch { left: 12px; bottom: 12px; } }

@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .about-card { grid-template-columns: 200px 1fr; }
  .about .values { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid #dcdfe5; padding-left: 0; padding-top: 24px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 78px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .28s ease; box-shadow: 0 20px 40px rgba(22,36,63,.12);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0; }
  .main-nav li { padding: 0 32px; }
  .main-nav a { display: block; text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.active { border-bottom-color: var(--line); }
  .main-nav .stack { max-width: none; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 44px 52px; }
  .hero-copy { max-width: 620px; order: 1; }
  .hero-media { order: 2; min-height: 320px; }
  .hero-media image-slot { height: 340px; }
  .hero-media .ring.r1 { width: 380px; height: 380px; }
  .hero-media .ring.r2 { width: 280px; height: 280px; }
  .prose-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { padding-inline: 22px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card { grid-template-columns: 1fr; text-align: center; }
  .about-photo { height: 220px; }
  .about .values { grid-template-columns: 1fr; text-align: left; }
  .value { justify-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .svc-list .row { grid-template-columns: 56px 1fr; }
  .svc-list .row .more { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero p { font-size: 16px; }
}

/* ============================================================
   IMAGES DE PRODUCTION (remplacement des maquettes image-slot)
   ============================================================ */
img.mark { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 10px; display: block; }
.hero-media img.hero-photo { width: 100%; max-width: 580px; height: 420px; object-fit: cover; border-radius: 20px; position: relative; box-shadow: var(--shadow-card-h); }
img.about-photo { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; }
@media (max-width: 960px){ .hero-media img.hero-photo { height: 340px; } }
@media (max-width: 720px){ img.about-photo { height: 220px; } }

/* Wordmark "Mean to Be" + accent vert anis */
:root{ --lime:#B6C021; }
.brand .wordmark .name .to { color: var(--orange); }

/* ============================================================
   CARTES D'ACTIVITÉS ILLUSTRÉES (offre regroupée)
   ============================================================ */
.cards-grid.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.card .card-illus { width: 100%; max-width: 150px; height: 132px; object-fit: contain; margin: 4px auto 14px; display: block; }
.card .form-ic { width: 100%; height: 132px; display: grid; place-items: center; margin: 4px auto 14px; }
.card .form-ic svg { width: 72px; height: 72px; stroke: var(--teal); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card p strong { color: var(--navy); font-family: var(--ff-display); font-weight: 600; }
@media (max-width: 1100px) {
  .cards-grid.cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards-grid.cards-4, .cards-grid.cards-2 { grid-template-columns: 1fr; }
}
