/* ============================================================
   MOUSTIQUAIRE INSULAIRE — Design System
   Style : organique, rond, chaleureux, premium (inspiration bubble 2026)
   Palette : Corse — sable, maquis, olive, crème, terre, doré
   ============================================================ */

:root {
  /* Couleurs */
  --sable:  #EAE4D7;
  --maquis: #4F6B50;
  --olive:  #768A5B;
  --creme:  #F8F6F1;
  --terre:  #7A5C45;
  --noir:   #262626;
  --dore:   #D8B982;
  --maquis-fonce: #3E5740;
  --olive-clair:  #8FA176;
  --sable-fonce:  #DFD6C3;

  /* Typographie */
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;

  /* Rayons */
  --r-section: clamp(24px, 4vw, 44px);
  --r-card: 24px;
  --r-pill: 999px;

  /* Espacements */
  --gutter: clamp(16px, 3vw, 40px);
  --section-gap: clamp(14px, 1.6vw, 22px);

  /* Animations */
  --ease: cubic-bezier(.33, 1, .68, 1);
  --dur: .25s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--noir);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--maquis); color: var(--creme); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--noir); color: var(--creme);
  padding: 12px 20px; border-radius: 0 0 14px 0; z-index: 2000;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--maquis); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typographie ---------- */
h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.05; font-weight: 700; }

.display-hero {
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: .95;
}

.display-xl { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.01em; }
.display-lg { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
.display-md { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; }
.muted { opacity: .75; }

/* Pastille label de section (✳ FAQ) */
.pill-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 18px;
  border: 1.5px solid currentColor; border-radius: var(--r-pill);
  opacity: .9;
}
.pill-label::before { content: '✳'; font-size: 1em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  min-height: 52px; padding: 14px 30px;
  border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  touch-action: manipulation;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(.97); }

.btn-solid { background: var(--maquis); color: var(--creme); }
.btn-solid:hover { background: var(--maquis-fonce); box-shadow: 0 10px 28px rgba(79,107,80,.32); transform: translateY(-2px); }

.btn-outline { border-color: var(--noir); color: var(--noir); background: transparent; }
.btn-outline:hover { background: var(--noir); color: var(--creme); transform: translateY(-2px); }

.btn-cream { background: var(--creme); color: var(--maquis-fonce); }
.btn-cream:hover { background: var(--sable); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(38,38,38,.18); }

.btn-outline-cream { border-color: var(--creme); color: var(--creme); }
.btn-outline-cream:hover { background: var(--creme); color: var(--maquis-fonce); transform: translateY(-2px); }

.btn-dore { background: var(--dore); color: var(--noir); }
.btn-dore:hover { background: #cdab6e; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(216,185,130,.4); }

.btn-lg { min-height: 60px; padding: 18px 40px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--creme);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 30px rgba(38,38,38,.08); }

.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 13px; object-fit: cover; background: #fff;
  transition: transform .35s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-text {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.02rem; line-height: .95; letter-spacing: .01em;
  color: var(--noir);
}

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-block; padding: 10px 16px;
  font-weight: 600; font-size: .98rem; border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.main-nav a:hover { background: var(--sable); }
.main-nav a.is-active { background: var(--sable); }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-login {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem;
  transition: opacity var(--dur);
}
.header-login svg { width: 21px; height: 21px; }
.header-login:hover { opacity: .65; }
.header-cta { min-height: 48px; padding: 11px 24px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: var(--r-pill); border: 1.5px solid var(--noir);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--noir);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Structure de page : sections-cartes ---------- */
.shell { max-width: 1400px; margin: 0 auto; padding: 0 var(--section-gap); }

.section-card {
  border-radius: var(--r-section);
  padding: clamp(48px, 7vw, 110px) clamp(24px, 5vw, 90px);
  margin-bottom: var(--section-gap);
  position: relative; overflow: hidden;
}

.bg-sable  { background: var(--sable);  color: var(--noir); }
.bg-maquis { background: var(--maquis); color: var(--creme); }
.bg-olive  { background: var(--olive);  color: var(--creme); }
.bg-creme  { background: var(--creme);  color: var(--noir); }
.bg-dore   { background: var(--dore);   color: var(--noir); }
.bg-noir   { background: var(--noir);   color: var(--creme); }
.bg-terre  { background: var(--terre);  color: var(--creme); }

/* En-tête de section deux colonnes (pastille gauche / titre droite) */
.section-head {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  margin-bottom: clamp(36px, 5vw, 64px);
  align-items: start;
}
.section-head .display-xl { max-width: 18ch; }
.section-head-center { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head-center .pill-label { margin-bottom: 22px; }
.section-head-center .display-xl { max-width: 22ch; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: var(--r-section);
  overflow: hidden;
  min-height: min(86svh, 860px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  margin-bottom: var(--section-gap);
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  background: var(--olive);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(38,38,38,.18) 0%, rgba(38,38,38,.05) 40%, rgba(38,38,38,.45) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  max-width: 1000px;
  color: var(--creme);
}
.hero-content h1 { color: var(--creme); text-shadow: 0 4px 40px rgba(38,38,38,.3); }
.hero-sub {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  text-shadow: 0 2px 16px rgba(38,38,38,.4);
}
.hero-ctas { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-inner { min-height: min(56svh, 560px); }

/* ---------- Bande défilante (marquee) ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  padding: 18px 0;
  border-radius: var(--r-section);
  margin-bottom: var(--section-gap);
}
.marquee-track {
  display: inline-flex; gap: 48px; align-items: center;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  padding-right: 48px;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot { font-size: .8em; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cartes avantages ---------- */
.advantage-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.advantage-card {
  background: var(--creme);
  border-radius: var(--r-card);
  padding: 34px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(38,38,38,.1); }
.advantage-card .adv-icon {
  width: 58px; height: 58px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sable); color: var(--maquis);
  border-radius: 18px 18px 18px 4px;
}
.advantage-card .adv-icon svg { width: 28px; height: 28px; }
.advantage-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.advantage-card p { font-size: .95rem; opacity: .8; }

/* ---------- Cartes solutions (photos formes organiques) ---------- */
.solutions-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px);
}
.solution-card { display: flex; flex-direction: column; }
.solution-card .sol-img {
  aspect-ratio: 3 / 3.4; overflow: hidden; position: relative;
  background: var(--sable-fonce);
  margin-bottom: 24px;
}
/* Formes organiques alternées */
.solution-card:nth-child(4n+1) .sol-img { border-radius: 150px 150px 26px 26px; }
.solution-card:nth-child(4n+2) .sol-img { border-radius: 26px 150px 26px 150px; }
.solution-card:nth-child(4n+3) .sol-img { border-radius: 150px 26px 150px 26px; }
.solution-card:nth-child(4n+4) .sol-img { border-radius: 26px 26px 150px 150px; }
.solution-card .sol-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.solution-card:hover .sol-img img { transform: scale(1.07); }
.solution-card h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 10px; }
.solution-card p { font-size: .97rem; opacity: .85; flex-grow: 1; }
.solution-card .sol-link {
  margin-top: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
}
.solution-card .sol-link svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.solution-card .sol-link:hover svg { transform: translateX(5px); }

/* ---------- Galerie réalisations ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  aspect-ratio: 4 / 3;
  background: var(--sable-fonce);
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-tag {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(248,246,241,.92); color: var(--noir);
  font-size: .82rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}

/* ---------- Témoignages ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-card {
  background: var(--creme); color: var(--noir);
  border-radius: 28px 28px 28px 6px;
  padding: 36px 30px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s var(--ease);
}
.testimonial-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.testimonial-stars { color: var(--dore); font-size: 1.1rem; letter-spacing: 3px; }
.testimonial-card blockquote { font-size: 1.02rem; line-height: 1.6; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--maquis); color: var(--creme);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.testimonial-author strong { display: block; font-size: .98rem; }
.testimonial-author span { font-size: .85rem; opacity: .7; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid currentColor; }
.faq-item { border-bottom: 1px solid currentColor; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; text-align: left;
  font-weight: 600; font-size: 1.05rem;
  transition: opacity var(--dur);
}
.faq-question:hover { opacity: .7; }
.faq-question .faq-icon {
  flex-shrink: 0; width: 28px; height: 28px; position: relative;
}
.faq-question .faq-icon::before, .faq-question .faq-icon::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq-question .faq-icon::before { width: 16px; height: 2px; }
.faq-question .faq-icon::after { width: 2px; height: 16px; }
.faq-item.is-open .faq-icon::after { transform: rotate(90deg); }
.faq-answer {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 4px 24px; max-width: 65ch; opacity: .9; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  padding-top: clamp(70px, 10vw, 130px);
  padding-bottom: clamp(70px, 10vw, 130px);
}
.cta-final h2 { max-width: 16ch; margin: 0 auto 20px; }
.cta-final p { max-width: 50ch; margin: 0 auto 36px; opacity: .92; }

/* ---------- Page header (pages intérieures) ---------- */
.page-hero { text-align: center; padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }
.page-hero .pill-label { margin-bottom: 24px; }
.page-hero h1 { max-width: 18ch; margin: 0 auto; }
.page-hero .lead { max-width: 56ch; margin: 24px auto 0; opacity: .88; }

/* ---------- Valeurs / À propos ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card {
  background: rgba(248,246,241,.12);
  border: 1.5px solid rgba(248,246,241,.25);
  border-radius: var(--r-card);
  padding: 32px 26px;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.value-card:hover { background: rgba(248,246,241,.2); transform: translateY(-5px); }
.value-card .value-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  color: var(--dore); display: block; margin-bottom: 12px;
}
.value-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.value-card p { font-size: .95rem; opacity: .85; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split-img { overflow: hidden; background: var(--sable-fonce); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img.arch { border-radius: 200px 200px 28px 28px; aspect-ratio: 4/4.6; }
.split-img.blob { border-radius: 38% 62% 55% 45% / 45% 42% 58% 55%; aspect-ratio: 1; }
.split-content h2 { margin-bottom: 20px; }
.split-content p + p { margin-top: 14px; }
.split-content .btn { margin-top: 28px; }

/* Timeline */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 36px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px; background: currentColor; opacity: .25; border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--dore);
}
.timeline-item .timeline-year {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--dore);
}
.timeline-item h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.timeline-item p { opacity: .85; max-width: 56ch; }

/* Équipe */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.team-card { text-align: center; }
.team-card .team-img {
  aspect-ratio: 1; overflow: hidden; margin-bottom: 20px;
  background: var(--sable-fonce);
}
.team-card:nth-child(odd) .team-img { border-radius: 150px 150px 30px 30px; }
.team-card:nth-child(even) .team-img { border-radius: 30px 30px 150px 150px; }
.team-card .team-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.team-card:hover .team-img img { transform: scale(1.05); }
.team-card h3 { font-size: 1.3rem; }
.team-card p { opacity: .75; font-size: .95rem; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat-item .stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1;
  display: block;
}
.stat-item .stat-label { font-size: .95rem; opacity: .8; margin-top: 6px; display: block; }

/* ---------- Services détaillés ---------- */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 70px) 0;
}
.service-block + .service-block { border-top: 1.5px solid rgba(38,38,38,.12); }
.bg-maquis .service-block + .service-block,
.bg-olive .service-block + .service-block { border-top-color: rgba(248,246,241,.2); }
.service-block:nth-child(even) .service-media { order: 2; }
.service-media { overflow: hidden; background: var(--sable-fonce); aspect-ratio: 4/3.2; }
.service-block:nth-child(odd) .service-media { border-radius: 160px 28px 160px 28px; }
.service-block:nth-child(even) .service-media { border-radius: 28px 160px 28px 160px; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-block:hover .service-media img { transform: scale(1.05); }
.service-content .pill-label { margin-bottom: 18px; }
.service-content h2 { margin-bottom: 14px; }
.service-content > p { opacity: .88; }
.service-perks { margin: 22px 0; display: grid; gap: 10px; }
.service-perks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.service-perks li svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--maquis); }
.bg-maquis .service-perks li svg, .bg-olive .service-perks li svg { color: var(--dore); }
.service-price {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  background: var(--sable); color: var(--terre);
  padding: 10px 22px; border-radius: var(--r-pill);
}
.bg-maquis .service-price, .bg-olive .service-price { background: rgba(248,246,241,.15); color: var(--dore); }

/* ---------- Blog ---------- */
.blog-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin-bottom: clamp(30px, 4vw, 50px);
}
.blog-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-block; padding: 10px 20px;
  border: 1.5px solid var(--noir); border-radius: var(--r-pill);
  font-weight: 600; font-size: .9rem;
  transition: background var(--dur), color var(--dur), transform var(--dur);
}
.cat-chip:hover { transform: translateY(-2px); }
.cat-chip.is-active, .cat-chip:hover { background: var(--noir); color: var(--creme); }

.blog-search { position: relative; }
.blog-search input {
  min-width: 260px; min-height: 52px;
  padding: 12px 52px 12px 22px;
  border: 1.5px solid var(--noir); border-radius: var(--r-pill);
  background: var(--creme);
  font-weight: 500;
}
.blog-search input::placeholder { color: var(--noir); opacity: .5; }
.blog-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--maquis); color: var(--creme);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur);
}
.blog-search button:hover { background: var(--maquis-fonce); }
.blog-search button svg { width: 19px; height: 19px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--creme);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 24px 54px rgba(38,38,38,.12); }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--sable-fonce); position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--creme); color: var(--noir);
  font-size: .78rem; font-weight: 700;
  padding: 7px 15px; border-radius: var(--r-pill);
}
.blog-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-meta { font-size: .85rem; opacity: .65; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 10px; }
.blog-card h3 a { transition: color var(--dur); }
.blog-card h3 a:hover { color: var(--maquis); }
.blog-card p { font-size: .95rem; opacity: .8; flex-grow: 1; }
.blog-card .sol-link { margin-top: 18px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--maquis); }
.blog-card .sol-link svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.blog-card .sol-link:hover svg { transform: translateX(5px); }

.blog-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: var(--maquis); color: var(--creme);
  border-radius: var(--r-section); overflow: hidden;
  margin-bottom: clamp(30px, 4vw, 50px);
}
.blog-featured-img { min-height: 340px; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-body { padding: clamp(32px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body .pill-label { margin-bottom: 18px; align-self: flex-start; }
.blog-featured-body h2 { margin-bottom: 14px; }
.blog-featured-body h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.blog-featured-body p { opacity: .9; margin-bottom: 24px; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: clamp(36px, 5vw, 60px); }
.pagination a, .pagination span {
  min-width: 48px; height: 48px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); font-weight: 600;
  border: 1.5px solid var(--noir);
  transition: background var(--dur), color var(--dur);
}
.pagination a:hover { background: var(--noir); color: var(--creme); }
.pagination .is-current { background: var(--maquis); border-color: var(--maquis); color: var(--creme); }
.pagination .is-disabled { opacity: .35; pointer-events: none; }

.blog-empty { text-align: center; padding: clamp(50px, 7vw, 90px) 20px; }
.blog-empty .display-lg { margin-bottom: 12px; }

/* ---------- Article ---------- */
.article-hero { text-align: center; padding-top: clamp(50px, 6vw, 80px); padding-bottom: clamp(50px, 6vw, 80px); }
.article-hero .pill-label { margin-bottom: 22px; }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 22ch; margin: 0 auto 20px; }
.article-meta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: .95rem; opacity: .8; }
.article-cover {
  border-radius: var(--r-section); overflow: hidden;
  margin-bottom: var(--section-gap);
  max-height: 560px; background: var(--sable-fonce);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.07rem; }
.article-body .article-intro {
  font-size: 1.25rem; font-weight: 500; line-height: 1.6;
  margin-bottom: 36px; color: var(--maquis-fonce);
}
.article-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 44px 0 16px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul { margin: 0 0 18px; padding-left: 4px; display: grid; gap: 10px; }
.article-body ul li { display: flex; gap: 12px; align-items: flex-start; }
.article-body ul li::before {
  content: ''; flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--dore); margin-top: 9px;
}
.article-body em { font-style: italic; }
.article-cta {
  margin-top: 50px; text-align: center;
  background: var(--sable); border-radius: var(--r-card);
  padding: 44px 32px;
}
.article-cta h2 { margin: 0 0 10px; }
.article-cta p { margin-bottom: 24px; opacity: .85; }
.article-related { margin-top: clamp(40px, 6vw, 70px); }
.article-related h2 { text-align: center; margin-bottom: 36px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info-card {
  background: rgba(248,246,241,.12);
  border: 1.5px solid rgba(248,246,241,.22);
  border-radius: var(--r-card);
  padding: 26px 26px;
  display: flex; gap: 18px; align-items: flex-start;
}
.contact-info-card .ci-icon {
  flex-shrink: 0; width: 50px; height: 50px;
  border-radius: 16px 16px 16px 4px;
  background: var(--dore); color: var(--noir);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-card .ci-icon svg { width: 24px; height: 24px; }
.contact-info-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { font-size: .97rem; opacity: .9; }
.contact-info-card a:hover { text-decoration: underline; }

.corse-map { margin: 10px auto 0; max-width: 240px; opacity: .95; }

.form-card {
  background: var(--creme); color: var(--noir);
  border-radius: var(--r-section);
  padding: clamp(28px, 4vw, 50px);
}
.form-card h2 { margin-bottom: 8px; }
.form-card > p { opacity: .75; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .92rem; }
.form-field label .req { color: var(--terre); }
.form-field input, .form-field select, .form-field textarea {
  min-height: 54px;
  padding: 14px 18px;
  border: 1.5px solid rgba(38,38,38,.25);
  border-radius: 16px;
  background: #fff;
  transition: border-color var(--dur), box-shadow var(--dur);
  width: 100%;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--maquis);
  box-shadow: 0 0 0 4px rgba(79,107,80,.15);
}
.form-field .field-error { color: #a4402f; font-size: .85rem; font-weight: 600; }
.form-field input.has-error, .form-field textarea.has-error, .form-field select.has-error { border-color: #a4402f; }
.form-actions { grid-column: 1 / -1; margin-top: 6px; }
.form-actions .btn { width: 100%; }

.alert {
  border-radius: 16px; padding: 16px 22px; margin-bottom: 22px;
  font-weight: 600; display: flex; gap: 12px; align-items: flex-start;
}
.alert svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.alert-success { background: #e4ecdf; color: #3a5238; }
.alert-error { background: #f3e0da; color: #8c3a28; }

/* ---------- Connexion ---------- */
.auth-wrap {
  max-width: 520px; margin: 0 auto;
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
.auth-card {
  background: var(--creme); color: var(--noir);
  border-radius: var(--r-section);
  padding: clamp(30px, 4vw, 48px);
}
.auth-card .form-grid { grid-template-columns: 1fr; }
.auth-tabs {
  display: flex; gap: 8px; background: var(--sable);
  padding: 6px; border-radius: var(--r-pill); margin-bottom: 30px;
}
.auth-tabs a {
  flex: 1; text-align: center; padding: 12px 10px;
  border-radius: var(--r-pill); font-weight: 700; font-size: .95rem;
  transition: background var(--dur), color var(--dur);
}
.auth-tabs a.is-active { background: var(--maquis); color: var(--creme); }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head .logo-mark { width: 60px; height: 60px; margin: 0 auto 16px; }
.auth-head p { opacity: .7; }
.auth-foot { text-align: center; margin-top: 22px; font-size: .95rem; }
.auth-foot a { font-weight: 700; color: var(--maquis); }
.auth-foot a:hover { text-decoration: underline; }

.auth-demo {
  margin-top: 26px; padding-top: 24px;
  border-top: 1.5px dashed rgba(38,38,38,.18);
  text-align: center;
}
.auth-demo-label {
  display: block; font-size: .85rem; font-weight: 600;
  opacity: .55; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .05em;
}
.auth-demo-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.auth-demo-btns form { flex: 1 1 150px; }
.auth-demo-btns .btn { width: 100%; }

.account-banner {
  background: var(--maquis); color: var(--creme);
  border-radius: var(--r-card); padding: 30px;
  text-align: center; margin-bottom: 24px;
}
.account-banner h2 { margin-bottom: 8px; }
.account-banner .btn { margin-top: 18px; }

/* ---------- Animations d'apparition ---------- */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none !important; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 0 var(--section-gap) var(--section-gap); max-width: 1400px; margin: 0 auto; }
.footer-card {
  background: var(--noir); color: var(--creme);
  border-radius: var(--r-section);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 80px) clamp(24px, 3vw, 40px);
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(30px, 4vw, 50px);
  border-bottom: 1px solid rgba(248,246,241,.18);
}
.footer-brand .logo-text { color: var(--creme); }
.footer-brand p { margin-top: 18px; opacity: .75; max-width: 32ch; font-size: .97rem; }
.footer-col h3 {
  font-family: var(--font-body); font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  opacity: .55; margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { opacity: .85; transition: opacity var(--dur); font-size: .98rem; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-col li { font-size: .98rem; opacity: .85; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; font-size: .88rem; opacity: .65;
}
.footer-legal a:hover { text-decoration: underline; }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--section-gap); align-items: start; }
.admin-sidebar {
  background: var(--noir); color: var(--creme);
  border-radius: var(--r-card); padding: 26px 18px;
  position: sticky; top: 90px;
}
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar a {
  padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: .95rem;
  transition: background var(--dur);
}
.admin-sidebar a:hover { background: rgba(248,246,241,.12); }
.admin-sidebar a.is-active { background: var(--maquis); }
.admin-main { min-width: 0; }
.admin-table-wrap { overflow-x: auto; background: var(--creme); border-radius: var(--r-card); padding: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(38,38,38,.1); }
.admin-table th { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; opacity: .6; }
.admin-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 5px 14px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.badge-green { background: #e4ecdf; color: #3a5238; }
.badge-sand { background: var(--sable); color: var(--terre); }
.badge-blue { background: #e0e8ef; color: #38536b; }
.badge-red { background: #f3e0da; color: #8c3a28; }
.badge-type { background: var(--noir); color: var(--creme); }
.badge-type.facture { background: var(--dore); color: var(--noir); }

/* ---------- Documents client (devis & factures) ---------- */
.docs-section { margin-top: 26px; }
.docs-section h2 { margin-bottom: 14px; }
.doc-card {
  background: #fff; border: 1.5px solid rgba(38,38,38,.1);
  border-radius: var(--r-card);
  padding: 22px 24px; margin-bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 14px 20px;
  align-items: center; justify-content: space-between;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(38,38,38,.08); }
.doc-main { flex: 1 1 280px; min-width: 0; }
.doc-main .doc-ref { font-size: .8rem; font-weight: 700; letter-spacing: .05em; opacity: .55; text-transform: uppercase; }
.doc-main h3 { font-size: 1.12rem; margin: 2px 0 4px; }
.doc-main p { font-size: .9rem; opacity: .75; }
.doc-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.doc-amount { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.doc-empty {
  text-align: center; background: var(--sable);
  border-radius: var(--r-card); padding: 38px 24px;
}
.doc-empty p { opacity: .75; margin-top: 6px; }
.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: var(--section-gap); }
.admin-stat {
  background: var(--creme); border-radius: var(--r-card); padding: 28px;
}
.admin-stat .stat-num { font-size: 2.6rem; color: var(--maquis); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .88rem; }
.btn-danger { background: #f3e0da; color: #8c3a28; }
.btn-danger:hover { background: #8c3a28; color: var(--creme); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .advantage-grid, .values-grid, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 0; z-index: 999;
    background: var(--creme);
    padding: 110px var(--gutter) 40px;
    transform: translateY(-102%);
    transition: transform .45s var(--ease);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 700;
    padding: 14px 18px;
  }
  .nav-mobile-extra { display: block; }
  .nav-mobile-extra .btn { width: 100%; margin-top: 12px; font-size: 1.05rem; }
  .header-login span { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; position: relative; z-index: 1001; }
  .site-header { background: var(--creme); }

  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .split, .service-block, .contact-layout, .blog-featured { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-media { order: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid, .blog-grid, .team-grid, .admin-cards { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 240px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
}

@media (max-width: 580px) {
  .advantage-grid, .solutions-grid, .gallery-grid, .values-grid, .form-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { min-height: 78svh; }
  .hero-ctas .btn { width: 100%; }
  .blog-search { width: 100%; }
  .blog-search input { width: 100%; min-width: 0; }
  .gallery-item.tall { grid-row: auto; }
}
