/*
Theme Name: MA-GEO
Theme URI: https://www.ma-geo.fr
Author: Edgar & Louise
Author URI: https://edgaretlouise.com
Description: Thème sur-mesure pour MA-GEO — Géomètres-Experts & Bureau d'études urbain
Version: 1.0.0
License: Propriétaire
Text Domain: mageo
*/

nav.primary ul,
nav#primaryNav ul {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
}
nav.primary ul li,
nav#primaryNav ul li {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
nav.primary ul li::before,
nav#primaryNav ul li::before {
  display: none !important;
}

/* =============================================
   TOKENS
   ============================================= */
:root {
  --blue:       #1B9CE0;
  --blue-dark:  #0E63B4;
  --blue-deep:  #0B4E94;
  --ink:        #1d1d1b;
  --ink-soft:   #2c2c2a;
  --muted:      #5a5a58;
  --line:       #e6e3da;
  --cream:      #f1efe9;
  --cream-soft: #f6f4ee;
  --maxw:       1280px;
  --r-lg:       18px;
  --r-md:       14px;
  --r-pill:     40px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 64px; }

/* =============================================
   TOPBAR / NAV
   ============================================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px 0;
  max-width: 1440px;
  margin: 0 auto;
}
.topbar.on-hero {
  position: relative;
  z-index: 5;
}
.site-logo { height: 38px; width: auto; }
.on-hero .site-logo { filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }

nav.primary { display: flex; align-items: center; gap: 48px; }
nav.primary a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color .2s;
}
.on-hero nav.primary a { color: #fff; font-weight: 500; }
nav.primary a:hover { color: var(--blue); }
.on-hero nav.primary a:hover { opacity: .8; color: #fff; }
nav.primary a.current-menu-item::after,
nav.primary a.current_page_item::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: currentColor;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 0;
  place-items: center;
  cursor: pointer;
}
.menu-toggle svg { width: 28px; height: 28px; }
.on-hero .menu-toggle { color: #fff; }

/* =============================================
   HERO SLIDER (home)
   ============================================= */
.hero {
  position: relative;
  height: 760px;
  overflow: hidden;
  color: #fff;
}
.hero .slides { position: absolute; inset: 0; }
.hero .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero .slide.is-active { opacity: 1; }
.hero .slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.08) 30%,
    rgba(0,0,0,.18) 65%,
    rgba(0,0,0,.45) 100%);
}
.hero-inner {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-weight: 400;
  font-size: 56px;
  letter-spacing: .02em;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero h1 .l1 { display: block; font-weight: 400; text-transform: uppercase; }
.hero h1 .l2 { display: block; font-weight: 800; text-transform: uppercase; margin-top: 6px; }
.cities {
  margin-top: 30px;
  display: flex; gap: 38px;
  font-size: 22px; font-weight: 500;
}
.dots {
  position: absolute; left: 50%; bottom: 32px;
  transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 6;
}
.dots button {
  width: 11px; height: 11px; border-radius: 50%;
  border: 0; padding: 0;
  background: rgba(255,255,255,.55);
  transition: background .25s, transform .25s;
}
.dots button.is-on { background: var(--blue); transform: scale(1.15); }

/* =============================================
   PAGE TITLE (pages internes)
   ============================================= */
.page-title {
  text-align: center;
  padding: 56px 0 12px;
}
.page-title h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: .02em;
}
.page-title .l1 { color: #5bb8e8; font-weight: 700; display: block; }
.page-title .l2 { color: var(--blue-dark); font-weight: 800; display: block; }

/* =============================================
   STATS (home)
   ============================================= */
.stats-section { background: #fff; }
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 80px 0 72px;
  max-width: 1180px;
  margin: 0 auto;
}
.stat { text-align: center; padding: 0 12px; }
.stat .num {
  font-size: 80px; color: var(--blue);
  font-weight: 400; font-style: italic;
  line-height: 1; letter-spacing: -.02em;
  display: block;
}
.stat .lbl {
  margin-top: 16px; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft); line-height: 1.5;
}

/* =============================================
   INTRO 2-COL (home)
   ============================================= */
.intro { position: relative; padding: 72px 0 80px; overflow: hidden; }
.intro-bg {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(860px, 65%) auto;
  opacity: .07; pointer-events: none; z-index: 0;
}
.intro .wrap { position: relative; z-index: 1; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.intro h2 {
  color: var(--blue); font-weight: 600; font-size: 34px;
  margin: 0 0 28px; line-height: 1.15;
}
.intro .lead {
  font-size: 16px; font-weight: 600;
  color: var(--ink); margin: 0;
  line-height: 1.6; text-align: justify;
}
.intro h3 {
  font-size: 17px; font-weight: 700; color: var(--ink);
  margin: 0 0 20px; line-height: 1.4; text-align: justify;
}
.intro p {
  font-size: 14px; color: var(--ink-soft);
  margin: 0 0 14px; line-height: 1.7; text-align: justify;
}

/* =============================================
   FEATURES 3-COL (home)
   ============================================= */
.features-section { padding: 60px 0 72px; }
.features {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}
.col-left h3 {
  font-size: 20px; font-weight: 700;
  margin: 0 0 22px; line-height: 1.35; text-align: justify;
}
.col-left p {
  font-size: 13px; color: var(--ink-soft);
  margin: 0 0 32px; line-height: 1.75; text-align: justify;
}

.btn-dark {
  display: inline-flex; align-items: center;
  background: var(--ink); color: #fff;
  border: 0; border-radius: var(--r-pill);
  padding: 13px 28px; font-size: 14px; font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s;
}
.btn-dark:hover { background: var(--blue-dark); }

.card-blue {
  background: linear-gradient(135deg, #1f3c7d 0%, #0085c4 100%); color: #fff;
  border-radius: var(--r-lg); padding: 36px 30px;
}
.card-blue h2 {
  font-size: 24px; font-weight: 800; margin: 0 0 28px; line-height: 1.2;
}
.domain-list { display: flex; flex-direction: column; gap: 20px; }
.domain { display: flex; align-items: flex-start; gap: 14px; }
.domain .ico {
  width: 52px; height: 52px; min-width: 52px;
  flex-shrink: 0; filter: brightness(0) invert(1);
  object-fit: contain;
}
.domain .title { font-size: 13px; font-weight: 600; line-height: 1.55; }

.col-right { display: flex; flex-direction: column; gap: 20px; }
.card-cream {
  background: #e8eaf5; border-radius: var(--r-md);
  padding: 30px 26px;
}
.card-cream h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.card-cream p { color: var(--muted); margin: 0 0 24px; font-size: 13px; line-height: 1.6; }
.btn-outline {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 10px 24px; font-size: 13px; font-weight: 700;
  background: transparent; transition: background .2s, color .2s;
  text-decoration: none; color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.card-question {
  background: #fff;
  border: 1.5px solid #b8d8f0;
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: space-between;
  text-decoration: none; position: relative;
  min-height: 200px; padding: 24px 22px 22px;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 62% auto;
  transition: box-shadow .2s;
}
.card-question:hover { box-shadow: 0 8px 28px -12px rgba(27,156,224,.35); }
.card-question h3 {
  font-size: 20px; font-weight: 700; margin: 0;
  line-height: 1.25; color: var(--blue);
  max-width: 55%;
}
.arrow-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue);
  display: grid; place-items: center; flex-shrink: 0;
  transition: background .2s; border: 0; color: #fff;
  align-self: flex-end;
}
.card-question:hover .arrow-btn { background: var(--blue-dark); }
.arrow-btn svg { width: 18px; height: 18px; }

/* =============================================
   AGENCES (home)
   ============================================= */
.agences { padding: 60px 0 100px; border-top: 1px solid var(--line); }
.agences-title {
  font-weight: 600; font-size: 26px;
  margin: 0 0 44px; color: var(--ink); letter-spacing: -.01em;
}
.agences-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.agence h4 {
  font-size: 14px; font-weight: 700; margin: 0 0 12px;
  color: var(--blue); letter-spacing: .01em;
}
.agence p {
  font-size: 12px; color: var(--ink-soft);
  line-height: 1.75; margin: 0;
}

/* =============================================
   PROJETS GALLERY + FILTERS
   ============================================= */
.page-bg {
  position: fixed; inset: 0;
  opacity: .18; pointer-events: none; z-index: 0;
  background-repeat: no-repeat;
  background-position: center 12%;
  background-size: min(1500px, 110%) auto;
}
.page-content { position: relative; z-index: 1; }

.filters {
  display: flex; align-items: center; gap: 48px;
  padding: 40px 0 44px; flex-wrap: wrap;
  position: relative; z-index: 5;
}
.dropdown { position: relative; }
.dropdown.is-open { z-index: 30; }
.dropdown-btn {
  display: inline-flex; align-items: center; gap: 16px;
  border: 1.5px solid var(--ink); border-radius: 32px;
  background: #fff; padding: 14px 26px;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.dropdown-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.dropdown.is-open .dropdown-btn svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 240px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.3);
  padding: 8px; display: none; z-index: 60;
}
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu button {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0; padding: 11px 16px;
  border-radius: 8px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); transition: background .15s;
}
.dropdown-menu button:hover { background: #f0f4f8; color: var(--blue-dark); }
.dropdown-btn.has-value { border-color: var(--blue); color: var(--blue-dark); }
.dropdown-menu button.is-selected { background: #eaf6fd; color: var(--blue-dark); font-weight: 700; }

.check {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 500; color: var(--ink-soft); cursor: pointer;
}
.check input {
  appearance: none; -webkit-appearance: none;
  width: 26px; height: 26px; border: 1.5px solid var(--ink);
  border-radius: 6px; margin: 0; position: relative; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after {
  content: '';
  position: absolute; left: 8px; top: 3px;
  width: 6px; height: 12px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.filter-reset {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 14px; font-weight: 600; padding: 6px 4px;
  transition: color .15s;
}
.filter-reset:hover { color: var(--blue); }
.filter-reset svg { width: 15px; height: 15px; }
.empty-state { font-size: 16px; color: var(--muted); padding: 30px 0 10px; margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 30px;
  padding-bottom: 30px;
}
.tile {
  text-align: left; background: transparent; border: 0;
  padding: 0; cursor: pointer;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .35s, transform .35s, visibility .28s;
}
.tile.reveal { opacity: 1; transform: none; }
.tile.hiding { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.tile .thumb {
  aspect-ratio: 1 / 1;
  background-size: cover; background-position: center;
  border-radius: 6px 56px 6px 6px; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.tile:hover .thumb { transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(0,0,0,.45); }
.tile .cap {
  font-size: 15px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .01em; line-height: 1.35; color: var(--ink); padding-right: 8px;
}

/* =============================================
   MODAL PROJET
   ============================================= */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-box {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 980px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.08); border: 0; color: var(--ink);
  display: grid; place-items: center;
  transition: background .15s;
}
.modal-close:hover { background: rgba(0,0,0,.18); }
.modal-close svg { width: 20px; height: 20px; }

.modal-carousel {
  position: relative; height: 420px; overflow: hidden;
  border-radius: 20px 20px 0 0; background: #111;
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.carousel-track .slide {
  min-width: 100%; height: 100%;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  border: 0; color: #fff; display: grid; place-items: center;
  transition: background .15s; z-index: 5;
}
.carousel-arrow:hover { background: rgba(255,255,255,.35); }
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.5); transition: background .2s, transform .2s;
}
.carousel-dots button.is-on { background: #fff; transform: scale(1.2); }

.modal-body { padding: 36px 42px 42px; }
.modal-body h2 { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.modal-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: #eaf6fd;
  border-radius: 20px; padding: 4px 14px; margin-bottom: 28px;
}
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.frow { display: flex; gap: 8px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; flex-wrap: wrap; }
.frow .lab { font-weight: 700; color: var(--ink); white-space: nowrap; }
.frow.missions { flex-direction: column; }
.frow.missions ul { margin: 6px 0 0 18px; padding: 0; }
.frow.missions ul li { margin-bottom: 4px; color: var(--ink-soft); font-size: 14px; }
.modal-context h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.modal-context p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; margin: 0; }

/* =============================================
   PAGER
   ============================================= */
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 56px 0 80px;
}
.pager button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: all .15s;
}
.pager button.is-on,
.pager button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* =============================================
   HERO WITH IMAGE (contact / autres pages)
   ============================================= */
.hero-img {
  position: relative; height: 640px;
  overflow: hidden; color: #fff; background: #000;
}
.hero-img::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center 22%;
}
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.32) 0%, rgba(0,0,0,.05) 30%,
    rgba(0,0,0,.10) 65%, rgba(0,0,0,.30) 100%);
}
.hero-img-inner {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.hero-img-inner h1 {
  font-size: 64px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.4);
}

/* =============================================
   CONTACT (nous rejoindre)
   ============================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  padding: 64px 0 80px;
}
.contact-info h2 { font-size: 30px; font-weight: 800; color: var(--blue); margin: 0 0 24px; }
.contact-info p { color: var(--ink-soft); margin: 0 0 14px; line-height: 1.75; }
.contact-info a { color: var(--blue); font-weight: 600; }
.contact-form h2 { font-size: 30px; font-weight: 800; color: var(--ink); margin: 0 0 28px; }

.wpcf7-form .field-group { margin-bottom: 22px; }
.wpcf7-form label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  display: block; width: 100%;
  border: 0; border-bottom: 1.5px solid var(--ink);
  padding: 12px 0; font-size: 16px; font-weight: 500;
  background: transparent; outline: none;
  transition: border-color .2s;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { border-color: var(--blue); }
.wpcf7-form textarea { resize: vertical; min-height: 120px; }
.wpcf7-form .wpcf7-submit {
  margin-top: 28px;
  background: var(--ink); color: #fff;
  border: 0; border-radius: var(--r-pill);
  padding: 16px 38px; font-size: 16px; font-weight: 700;
  transition: background .2s; cursor: pointer;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--blue-dark); }

/* =============================================
   OFFRES D'EMPLOI
   ============================================= */
.offres-section { padding: 56px 0 100px; border-top: 1px solid var(--line); }
.offres-section h2 { font-size: 36px; font-weight: 800; color: var(--ink); margin: 0 0 40px; }
.offres-grid { display: flex; flex-direction: column; gap: 18px; }
.offre-card {
  border: 1.5px solid var(--line); border-radius: 14px;
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; transition: border-color .2s, box-shadow .2s;
}
.offre-card:hover { border-color: var(--blue); box-shadow: 0 8px 28px -16px rgba(27,156,224,.3); }
.offre-card-info h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.offre-card-meta { display: flex; gap: 18px; }
.offre-meta-tag {
  font-size: 13px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.offre-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; border-radius: var(--r-pill);
  padding: 12px 24px; font-size: 14px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0; transition: background .2s;
}
.offre-card-link:hover { background: var(--blue-dark); }
.offre-card-link svg { width: 16px; height: 16px; }

/* =============================================
   PAGE OFFRE SINGLE
   ============================================= */
.offre-single { padding: 60px 0 100px; }
.offre-single .back-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--muted);
  margin-bottom: 36px; transition: color .15s;
}
.offre-single .back-btn:hover { color: var(--blue); }
.offre-single .back-btn svg { width: 18px; height: 18px; }
.offre-single h1 { font-size: 36px; font-weight: 800; margin: 0 0 14px; }
.offre-single .meta-row { display: flex; gap: 18px; margin-bottom: 48px; }
.offre-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream); border-radius: 20px;
  padding: 6px 16px; font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.offre-section { margin-bottom: 36px; }
.offre-section h2 { font-size: 20px; font-weight: 800; color: var(--blue); margin: 0 0 14px; }
.offre-section p,
.offre-section ul { font-size: 15px; color: var(--ink-soft); line-height: 1.75; margin: 0; }
.offre-section ul { padding-left: 20px; }
.offre-section ul li { margin-bottom: 6px; }

/* =============================================
   AGENCE & ACTIVITES (texte simple)
   ============================================= */
.page-section { padding: 56px 0 80px; }
.page-section h2 { font-size: 28px; font-weight: 700; color: var(--blue); margin: 0 0 20px; }
.page-section p { color: var(--ink-soft); line-height: 1.75; margin: 0 0 14px; }
.page-section img { border-radius: var(--r-md); margin: 32px 0; }

/* =============================================
   MENTIONS LEGALES
   ============================================= */
.legal { padding: 30px 0 96px; }
.legal-inner { max-width: 880px; margin: 0 auto; }
.legal section { margin-bottom: 46px; }
.legal h2 { font-size: 30px; font-weight: 800; color: var(--blue); margin: 0 0 16px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.legal p { font-size: 16px; color: var(--ink-soft); line-height: 1.72; margin: 0 0 16px; }
.legal a { color: var(--blue); font-weight: 600; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 46px 0; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 44px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1.4fr;
  gap: 40px; align-items: start;
}
.footer-logos { display: flex; align-items: center; gap: 34px; }
.footer-logo { height: 36px; width: auto; }
.footer-ge { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #6b6b69; }
.footer-ge .mark { font-weight: 800; font-size: 26px; letter-spacing: 1px; color: #2c2c2a; }
.footer-ge .mark b { color: #e2231a; }
.footer-ge small { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.footer-col a { transition: color .15s; }
.footer-col a:hover { color: var(--blue); }
.footer-col a.current-menu-item { color: var(--blue); font-weight: 700; }
.footer-eco { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .wrap { padding: 0 40px; }
  .topbar { padding: 26px 40px 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .agences-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .card-blue { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: auto 1fr 1fr; }
  .footer-eco { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 28px; }
  .topbar { padding: 20px 28px 0; position: relative; }
  .menu-toggle { display: grid; }
  nav.primary {
    position: absolute; top: calc(100% + 12px); right: 28px;
    background: #fff; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 10px 22px; border-radius: 12px; min-width: 220px;
    display: none; box-shadow: 0 16px 40px -16px rgba(0,0,0,.3);
    border: 1px solid var(--line);
  }
  nav.primary.is-open { display: flex; }
  nav.primary a { padding: 12px 0; width: 100%; font-size: 16px; color: var(--ink) !important; }
  nav.primary a.current-menu-item::after { display: none; }
  .page-title h1 { font-size: 38px; }
  .hero h1 { font-size: 38px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .modal-cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .topbar { padding: 16px 20px 0; }
  .site-logo { height: 32px; }
  nav.primary { right: 20px; }
  .page-title h1 { font-size: 30px; }
  .hero h1 { font-size: 30px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .agences-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-logos { gap: 24px; }
  .offre-card { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   CONTACT FORM 7 — Styles maquette MA-GEO
   ============================================= */

/* Wrapper global CF7 */
.wpcf7 { width: 100%; }
.wpcf7 form { display: flex; flex-direction: column; }
.wpcf7 .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--blue);
    color: var(--blue-dark);
    background: #eaf6fd;
}
.wpcf7 .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #e2231a;
    margin-top: 4px;
    padding-left: 14px;
}

/* Champs texte, email, tel */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select {
    display: block;
    width: 100%;
    border: 1.5px solid var(--ink);
    border-radius: 32px;
    padding: 11px 20px;
    font-size: 13px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    margin-bottom: 10px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder { color: var(--ink); opacity: .65; }
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27,156,224,.15);
}
.wpcf7 input.wpcf7-not-valid {
    border-color: #e2231a;
    box-shadow: 0 0 0 3px rgba(226,35,26,.1);
}

/* Textarea */
.wpcf7 textarea {
    display: block;
    width: 100%;
    border: 1.5px solid var(--ink);
    border-radius: 16px;
    padding: 11px 20px;
    font-size: 13px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    min-height: 110px;
    resize: vertical;
    outline: none;
    margin-bottom: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.wpcf7 textarea::placeholder { color: var(--ink); opacity: .65; }
.wpcf7 textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27,156,224,.15);
}
.wpcf7 textarea.wpcf7-not-valid { border-color: #e2231a; }

/* Checkbox consentement */
.wpcf7 .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 4px 0 20px;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 26px; height: 26px;
    min-width: 26px;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: background .15s, border-color .15s;
    background: #fff;
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked {
    background: var(--blue);
    border-color: var(--blue);
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 8px; top: 3px;
    width: 6px; height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    cursor: pointer;
}

/* Bouton submit */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    border-radius: 32px;
    padding: 11px 32px;
    font-size: 13px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
    margin-top: 6px;
    align-self: flex-start;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
    background: var(--ink);
    color: #fff;
}

/* Spinner de chargement */
.wpcf7 .wpcf7-spinner {
    margin-left: 12px;
    vertical-align: middle;
}

/* Mention champs obligatoires */
.wpcf7 .required-note {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 20px;
}
.wpcf7 .required-note b { color: var(--blue); }

/* Span wrapper CF7 — supprimer le display:block par défaut */
.wpcf7 span.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Responsive */
@media (max-width: 560px) {
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 textarea {
        padding: 14px 20px;
        font-size: 14px;
    }
    .wpcf7 input[type="submit"] {
        width: 100%;
        justify-content: center;
    }
}
