/* ============================================================
   CONTENT'SIFY — statique, design calqué sur contentsify.fr
   Police principale : Poppins (Google Fonts)
   ============================================================ */

:root {
  --yellow: #FFD600;
  --yellow-light: #FFE34D;
  --orange: #FF8800;
  --pink: #d268cc;
  --red: #cf0100;
  --dark: #111;
  --text: #333;
  --muted: #666;
  --bg-light: #f7f7f9;
  --container: 1280px;
  --header-h: 96px;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 700; margin: 0; line-height: 1.15; }

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

/* ---------- Pill buttons ---------- */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  cursor: pointer;
  border: none;
  text-align: center;
}
.pill-btn:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.pill-btn.dark { background: var(--dark); }

/* ---------- HEADER ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: transparent;
  transition: background .3s, box-shadow .3s, height .3s;
}
.header.scrolled,
body.page-light .header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  height: 76px;
}
.header.scrolled .nav a,
body.page-light .header .nav a { color: var(--dark); font-weight: 600; }
body.page-light .header .brand img { filter: none; }
body.page-light .header .burger span { background: var(--dark); }
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.brand img { height: 54px; width: auto; transition: filter .3s; filter: brightness(0) invert(1); }
.header.scrolled .brand img { filter: none; }
.nav { display: flex; gap: 38px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  position: relative;
  padding: 8px 0;
  transition: color .2s;
}
.header.scrolled .nav a { color: var(--dark); }
.nav a::after {
  content:'';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width .3s var(--ease), left .3s var(--ease);
}
.nav a:hover::after { width: 100%; left: 0; }
.nav a:hover { color: var(--yellow); }
.header.scrolled .nav a:hover { color: var(--orange); }

.btn-contact {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255,214,0,.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,214,0,.55); }

.burger { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }
.header.scrolled .burger span { background: var(--dark); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.35) 100%);
  z-index: 1;
}
/* Pattern de lignes orange diagonales sur la droite */
.hero-lines {
  position: absolute;
  right: -8%; top: 12%;
  width: 70%; height: 65%;
  background-image: repeating-linear-gradient(110deg,
    transparent 0, transparent 11px,
    rgba(255,136,0,.7) 11px, rgba(255,136,0,.7) 13px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  z-index: 1;
  pointer-events: none;
  filter: blur(.3px);
}
.hero-inner { position: relative; z-index: 2; padding-top: var(--header-h); width: 100%; }
.hero-title {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero-sub {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
}
.text-yellow { color: var(--yellow); }
.hero-lead {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  margin: 0 0 12px;
  color: #fff;
}
.rotator-wrap {
  display: flex; align-items: baseline;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 56px);
  color: var(--orange);
  min-height: 70px;
  letter-spacing: -.5px;
}
.rotator-text { transition: color .3s; }
.rotator-cursor {
  margin-left: 4px;
  color: var(--yellow);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Block title + underline jaune ondulé ---------- */
.block-title {
  font-size: clamp(36px, 4.5vw, 55px);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin: 0 0 10px;
}
.block-title.left { text-align: left; }
.title-underline {
  display: block;
  width: 260px; height: 22px;
  margin: 0 auto 50px;
}
.block-title.left + .title-underline { margin-left: 0; }

/* ---------- SERVICES ---------- */
.services-block {
  padding: 120px 0 80px;
  background: #fff;
}
/* +20% de largeur sur le contenu des services (1280px → 1536px) */
.services-block > .container {
  max-width: 1536px;
}
.service {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 40px;
}
.service:last-child { margin-bottom: 0; }
.service-head {
  display: flex; align-items: center; gap: 22px;
  margin-bottom: 28px;
}
.service-icon {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.service-icon img { filter: brightness(0) invert(1); }
.service h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  margin: 0;
}
.service-sub {
  font-size: clamp(20px, 1.6vw, 24px);
  color: var(--dark);
  font-weight: 500;
  margin: 4px 0 0;
}
.service-body { margin-bottom: 32px; }
.service-body p {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 14px;
}
.service-body b { font-weight: 700; color: var(--dark); }
.service-illu img {
  width: 100%; height: auto;
  border-radius: 16px;
}
/* Image automatisation agrandie de 40% */
#automatisation .service-illu { overflow: visible; }
#automatisation .service-illu img {
  transform: scale(1.4);
  transform-origin: center center;
}
/* Site internet : image à gauche, texte à droite */
#site-internet .service-text { order: 2; }
#site-internet .service-illu { order: 1; }

/* ---------- REALISATIONS ---------- */
.realisations {
  padding: 100px 0;
  background: var(--bg-light);
}
.realisations-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}
.realisations-left p {
  font-size: 17px;
  color: var(--text);
  margin: 0 0 28px;
}
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.real-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transition: transform .3s var(--ease);
}
.real-card:hover { transform: translateY(-6px); }
.real-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.real-card:hover img { transform: scale(1.08); }
.real-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  color: #fff;
}
.real-overlay span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
}
.real-overlay small { font-size: 12px; opacity: .9; margin-top: 4px; }

/* ---------- CTA banner jaune ---------- */
.cta-banner {
  background: var(--yellow);
  padding: 90px 0;
  color: var(--dark);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}
.cta-left h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  margin: 0 0 18px;
}
.cta-left p {
  font-size: 18px;
  margin: 0;
}
.cta-right p {
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--dark);
}
.cta-right .pill-btn { margin-top: 16px; }

/* ---------- TÉMOIGNAGES ---------- */
.testimonials {
  padding: 110px 0;
  background: #fff;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.t-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  border-top: 5px solid var(--yellow);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
}
.t-card::before {
  content: '"';
  position: absolute;
  top: 14px; right: 26px;
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
  color: var(--yellow);
  opacity: .22;
  pointer-events: none;
}
.t-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.14); }
.t-stars {
  color: var(--yellow);
  font-size: 22px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.t-quote {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 26px;
  flex: 1;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.t-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.t-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.t-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.t-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--yellow);
  padding: 80px 0 0;
  color: var(--dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.4fr;
  gap: 60px;
  padding-bottom: 40px;
}
.footer-logo { height: 70px; width: auto; margin-bottom: 18px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.footer-contact a {
  font-weight: 500;
  font-size: 16px;
  color: var(--dark);
  transition: opacity .2s;
}
.footer-contact a:hover { opacity: .7; }

.footer h4 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--dark);
}
.links-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 30px;
}
.links-cols li { margin-bottom: 14px; }
.links-cols a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  transition: opacity .2s, transform .2s;
}
.links-cols a:hover { opacity: .7; transform: translateX(4px); display: inline-block; }

.newsletter {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(0,0,0,.6);
  padding-bottom: 4px;
  margin-bottom: 26px;
  gap: 12px;
  max-width: 420px;
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 4px;
  font-size: 15px;
  color: var(--dark);
  outline: none;
  letter-spacing: 4px;
  font-family: inherit;
}
.newsletter input::placeholder { color: rgba(0,0,0,.55); letter-spacing: 4px; }
.newsletter button {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .8px;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}
.newsletter button:hover { transform: translateY(-2px); filter: brightness(1.1); }

.socials { display: flex; gap: 16px; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--dark);
  transition: transform .25s var(--ease), color .2s;
}
.socials a:hover { transform: translateY(-3px) scale(1.1); color: #FF8800; }

.footer-legal {
  display: flex; justify-content: center; gap: 80px;
  padding: 26px 32px;
  font-size: 16px;
  font-weight: 600;
  border-top: 1px solid rgba(0,0,0,.15);
}
.footer-legal a { color: var(--dark); transition: opacity .2s; }
.footer-legal a:hover { opacity: .65; }

/* ============================================================
   PAGE RÉALISATIONS
   ============================================================ */
.realisations-hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.realisations-hero::before {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 55%; height: 60%;
  background: var(--yellow);
  opacity: .14;
  border-radius: 50%;
  filter: blur(80px);
}
.realisations-hero h1 {
  font-size: clamp(48px, 6vw, 80px);
  color: var(--dark);
  margin: 0 0 18px;
  font-weight: 800;
  position: relative; z-index: 1;
}
.realisations-hero p {
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
  color: var(--text);
  position: relative; z-index: 1;
}

.realisations-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 50px;
  padding: 0 20px;
}
.filter-btn {
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--dark); color: #fff; border-color: var(--dark); }

.realisations-gallery {
  padding: 30px 0 100px;
  background: var(--bg-light);
}
.realisations-gallery .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.reali-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.reali-card.hidden { display: none; }
.reali-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.reali-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-light);
}
.reali-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.reali-card:hover .reali-card-img img { transform: scale(1.06); }
.reali-card-body {
  padding: 20px 22px 22px;
}
.reali-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}
.reali-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.reali-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
}
.reali-tag.com  { background: #FF8800; }
.reali-tag.site { background: #d268cc; }
.reali-tag.auto { background: #cf0100; }

@media (max-width: 1024px) {
  .realisations-gallery .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .realisations-gallery .grid { grid-template-columns: 1fr; }
  .realisations-hero { padding: 120px 0 40px; }
}

/* ============================================================
   PAGE CONTACT
   ============================================================ */
.contact-page-hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
  padding: 150px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-page-hero::before {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 60%;
  background: var(--yellow);
  opacity: .14;
  border-radius: 50%;
  filter: blur(90px);
}
.contact-page-hero h1 {
  font-size: clamp(48px, 6vw, 80px);
  color: var(--dark);
  margin: 0 0 16px;
  font-weight: 800;
  position: relative; z-index: 1;
}
.contact-page-hero p {
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text);
  position: relative; z-index: 1;
}
.contact-page-body {
  padding: 80px 0 110px;
  background: #fff;
}
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}
.contact-info-card {
  background: var(--dark);
  color: #fff;
  border-radius: 20px;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80%; height: 100%;
  background: var(--yellow);
  opacity: .12;
  border-radius: 50%;
  filter: blur(40px);
}
.contact-info-card > * { position: relative; z-index: 1; }
.contact-info-card h2 {
  font-size: 28px;
  color: var(--yellow);
  margin: 0 0 14px;
  font-weight: 700;
}
.contact-info-card .intro {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  margin: 0 0 32px;
  line-height: 1.7;
}
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  display: grid; place-items: center;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-text { font-size: 15px; line-height: 1.5; }
.contact-info-text .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 4px;
}
.contact-info-text a { color: #fff; transition: color .2s; }
.contact-info-text a:hover { color: var(--yellow); }
.contact-info-socials { display: flex; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.contact-info-socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.contact-info-socials a:hover { background: var(--yellow); color: var(--dark); transform: translateY(-3px); }
.contact-info-socials svg { width: 20px; height: 20px; }

/* La carte form prend le style générique mais sans padding-top du contact-section */
.contact-page-body .contact-form {
  margin: 0;
  max-width: none;
  border-top-color: var(--yellow);
}

@media (max-width: 900px) {
  .contact-page-grid { grid-template-columns: 1fr; }
  .contact-page-body { padding: 60px 0 80px; }
}

/* ============================================================
   BLOG — Liste & détail article
   ============================================================ */
.blog-hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 55%; height: 60%;
  background: var(--yellow);
  opacity: .14;
  border-radius: 50%;
  filter: blur(80px);
}
.blog-hero h1 {
  font-size: clamp(48px, 6vw, 80px);
  color: var(--dark);
  margin: 0 0 16px;
  font-weight: 800;
  position: relative; z-index: 1;
}
.blog-hero p {
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
  color: var(--text);
  position: relative; z-index: 1;
}

.blog-gallery {
  padding: 30px 0 100px;
  background: var(--bg-light);
}
.blog-gallery .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blog-card.hidden { display: none; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.15); color: inherit; }
.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-light);
  position: relative;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-img .cat-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
}
.cat-tag.cat-com  { background: #FF8800; }
.cat-tag.cat-site { background: #d268cc; }
.cat-tag.cat-auto { background: #cf0100; }
.cat-tag.cat-general { background: #555; }
.blog-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 12px;
  display: flex; gap: 10px; align-items: center;
}
.blog-card-meta::after { content: '•'; margin: 0 4px; }
.blog-card-meta:last-child::after { display: none; }
.blog-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px;
  line-height: 1.3;
}
.blog-card p {
  font-size: 14.5px;
  color: var(--text);
  margin: 0 0 18px;
  line-height: 1.6;
  flex: 1;
}
.blog-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.blog-card:hover .blog-card-link { color: var(--dark); }

@media (max-width: 1024px) { .blog-gallery .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .blog-gallery .grid { grid-template-columns: 1fr; } }

/* === PAGE DÉTAIL RÉALISATION === */
.reali-detail-hero {
  padding: 140px 0 50px;
  background: var(--bg-light);
}
.reali-detail-hero .container { max-width: 880px; }
.reali-detail-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.reali-detail-hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
  line-height: 1.1;
}
.reali-detail-desc {
  font-size: 19px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.reali-story { padding: 90px 0; background: #fff; }
.reali-story .container { max-width: 1200px; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 10px;
}
.story-card {
  background: var(--bg-light);
  border-radius: 18px;
  padding: 36px 28px;
  position: relative;
}
.story-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  font-family: 'Poppins', sans-serif;
}
.story-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 14px;
}
.story-card p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

.reali-gallery-section { padding: 90px 0; background: var(--bg-light); }
.reali-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0,0,0,.14); }

/* Wrapper du média (image ou vidéo) : taille fixe + centrage */
.gallery-item > img,
.gallery-item > video {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
}
/* Images : fond clair neutre (mieux pour les logos sombres comme LM Déco) */
.gallery-item > img {
  object-fit: cover;
  cursor: pointer;
  background: #f5f5f8;
}
/* Vidéos : object-fit contain + fond sombre (rendu cinéma) */
.gallery-item > video {
  object-fit: contain;
  cursor: default;
  background: #0a0e27;
}

/* Badge catégorie sur les médias (com / site / auto) */
.gallery-item { position: relative; }
.gallery-cat-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.gallery-cat-badge.cat-com  { background: #FF8800; }
.gallery-cat-badge.cat-site { background: #d268cc; }
.gallery-cat-badge.cat-auto { background: #cf0100; }

/* Bordure top colorée selon la catégorie */
.gallery-item.has-cat { border-top: 5px solid transparent; }
.gallery-item.cat-com  { border-top-color: #FF8800; }
.gallery-item.cat-site { border-top-color: #d268cc; }
.gallery-item.cat-auto { border-top-color: #cf0100; }

.gallery-item figcaption {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  background: #fff;
  margin-top: auto;       /* pousse la légende en bas pour aligner toutes les cartes */
  border-top: 1px solid #f0f0f4;
}

/* Force le média à occuper la même hauteur dans toutes les cartes (1ère ligne de la grid) */
.reali-gallery { grid-auto-rows: 1fr; }
.gallery-item { height: 100%; }
.gallery-item > img, .gallery-item > video {
  flex: 0 0 auto;          /* ne pas s'étirer — garde l'aspect-ratio */
}

/* Variante "vidéo" : 16/9 mais sur 1 seule colonne pour rester aligné */
.gallery-video > img,
.gallery-video > video { aspect-ratio: 16 / 9; }

@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; }
  .reali-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .reali-gallery { grid-template-columns: 1fr; }
}

/* Lightbox */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(10,14,39,.92);
  display: none;
  z-index: 999;
  cursor: zoom-out;
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 56px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-weight: 300;
}

/* === PAGE ARTICLE === */
.article-hero {
  padding: 140px 0 50px;
  background: var(--bg-light);
}
.article-hero .container {
  max-width: 880px;
}
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.article-back:hover { color: var(--dark); }
.article-meta {
  display: flex; gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-meta .cat-tag { font-size: 11px; padding: 5px 12px; }
.article-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 20px;
  line-height: 1.15;
}
.article-chapeau {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}

.article-cover {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 32px;
}
.article-cover img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 60px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.article-content p { margin: 0 0 22px; }
.article-content h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--dark);
  margin: 50px 0 18px;
  line-height: 1.2;
}
.article-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 36px 0 14px;
}
.article-content strong { color: var(--dark); font-weight: 700; }
.article-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--dark); }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 22px; }
.article-content li { margin-bottom: 8px; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }
.article-content blockquote {
  border-left: 5px solid var(--yellow);
  padding: 8px 0 8px 24px;
  font-style: italic;
  margin: 30px 0;
  color: #555;
}

.article-footer {
  max-width: 760px;
  margin: 80px auto;
  padding: 44px 32px;
  background: var(--bg-light);
  border-radius: 16px;
  text-align: center;
}
.article-footer h3 {
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--dark);
}
.article-footer p {
  color: var(--text);
  margin: 0 0 20px;
}

.article-others {
  background: var(--bg-light);
  padding: 80px 0;
}
.article-others h2 {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 40px;
}
.article-others .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 1024px) { .article-others .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .article-others .grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAGES LÉGALES (mentions, confidentialité)
   ============================================================ */
.legal-hero {
  background: var(--bg-light);
  padding: 150px 0 60px;
  text-align: center;
}
.legal-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  color: var(--dark);
  margin: 0 0 12px;
  font-weight: 800;
}
.legal-hero p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 32px;
}
.legal-content h2 {
  font-size: 26px;
  color: var(--dark);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 18px;
  color: var(--dark);
  margin: 28px 0 12px;
}
.legal-content p, .legal-content li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 14px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin: 0 0 14px;
}
.legal-content a { color: var(--orange); text-decoration: underline; }
.legal-content a:hover { color: var(--dark); }
.legal-content strong { color: var(--dark); font-weight: 700; }
.legal-content .placeholder {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: monospace;
}

/* ---------- Contact form ---------- */
.contact-section {
  padding: 110px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: -10%; left: -5%;
  width: 40%; height: 60%;
  background: var(--accent, var(--yellow));
  opacity: .08;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.contact-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 1;
}
.contact-head h2 {
  font-size: clamp(36px, 4.5vw, 55px);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 14px;
}
.contact-head p {
  font-size: 17px;
  color: var(--text);
  margin: 0;
}
.contact-form {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  border-top: 6px solid var(--accent, var(--yellow));
  position: relative;
  z-index: 1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-field label .req { color: var(--accent, #FF8800); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 16px 18px;
  border: 2px solid #d4d4dc;
  border-radius: 12px;
  background: #f7f7f9;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9a9aa6; }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #b8b8c4;
  background: #fff;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent, var(--yellow));
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #FFD600) 15%, transparent);
}
.form-field textarea {
  min-height: 160px;
  resize: vertical;
}
.form-submit-wrap { text-align: center; margin-top: 12px; }
.form-submit {
  background: var(--accent, #FF8800);
  color: #fff;
  border: none;
  padding: 18px 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), filter .2s, box-shadow .25s;
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
  font-family: inherit;
}
.form-submit:hover:not(:disabled) {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
}
.form-submit:disabled { opacity: .8; cursor: not-allowed; }
.form-rgpd {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
  text-align: center;
}
.form-rgpd a { color: var(--accent, var(--orange)); text-decoration: underline; }

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .contact-section { padding: 70px 0; }
}

/* ============================================================
   COOKIE BANNER RGPD
   ============================================================ */
#cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05);
  border-top: 4px solid var(--yellow);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
#cookie-banner.cookie-banner-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#cookie-banner.cookie-banner-hide {
  opacity: 0;
  transform: translateY(20px);
}
.cookie-banner-inner {
  padding: 22px 24px;
}
.cookie-banner-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.cookie-banner-text p {
  margin: 0 0 18px;
  line-height: 1.6;
  color: var(--text);
  font-size: 13.5px;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-link {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: underline;
  margin-right: auto;
}
.cookie-link:hover { color: var(--dark); }
.cookie-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: transform .2s, filter .2s, background .2s;
}
.cookie-refuse {
  background: #f0f0f4;
  color: var(--dark);
}
.cookie-refuse:hover { background: #e0e0e8; }
.cookie-accept {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(255,214,0,.3);
}
.cookie-accept:hover { filter: brightness(.95); transform: translateY(-1px); }

@media (max-width: 540px) {
  #cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
  .cookie-banner-actions { gap: 8px; }
  .cookie-link { width: 100%; margin: 0 0 8px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service { grid-template-columns: 1fr; }
  .service-illu { order: -1; max-width: 500px; margin: 0 auto; }
  .realisations-inner { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 30px;
    transform: translateY(-150%);
    transition: transform .35s var(--ease);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  .nav.open { transform: translateY(0); }
  .nav a { color: var(--dark); padding: 12px 0; border-bottom: 1px solid #eee; }
  .burger { display: block; }
  .btn-contact span { display: none; }
  .btn-contact { padding: 12px; }
  .testimonials-grid, .footer-grid, .realisations-grid, .links-cols { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: 14px; text-align: center; }
  .services-block { padding: 90px 0 50px; }
  .service { margin-bottom: 30px; }
}
@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .hero-title { letter-spacing: 1px; }
  .service-head { flex-direction: column; text-align: center; }
}

/* ============================================================
   RESPONSIVE CONSOLIDÉ — Couvre l'ensemble du site
   Breakpoints : 1024px (tablette), 768px (mobile L), 540px (mobile), 380px (XS)
   ============================================================ */

/* ===== ≤ 1024px : Tablettes ===== */
@media (max-width: 1024px) {
  :root { --container: 100%; }
  .container { padding-inline: 28px; }

  /* Hero principal */
  .hero-title { letter-spacing: 1px; }
  .hero-lines { opacity: .6; }

  /* Services bloc principal (page d'accueil) */
  .services-block .service { grid-template-columns: 1fr !important; gap: 36px; }
  .services-block .service-illu { max-width: 520px; margin: 0 auto; }
  .services-block > .container { max-width: 100%; }

  /* Témoignages */
  .testimonials-grid { grid-template-columns: 1fr 1fr; }

  /* Réalisations preview (home) */
  .realisations-inner { grid-template-columns: 1fr; gap: 40px; }

  /* CTA banner home */
  .cta-inner { grid-template-columns: 1fr; gap: 30px; }

  /* Page services (com/site/auto) — hero */
  .service-hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .service-hero-image { max-width: 480px; margin: 0 auto; }
  .service-hero-question { text-align: left; }

  /* Page détail réalisation — story */
  .story-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-newsletter { grid-column: 1 / -1; }

  /* Page contact (2 colonnes) */
  .contact-page-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-info-card { max-width: 600px; margin: 0 auto; width: 100%; }

  /* Galerie réalisation détail */
  .reali-gallery { grid-template-columns: repeat(2, 1fr); }

  /* Blog & Autres articles */
  .blog-gallery .grid { grid-template-columns: repeat(2, 1fr); }
  .article-others .grid { grid-template-columns: repeat(2, 1fr); }

  /* Page liste réalisations */
  .realisations-gallery .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ≤ 768px : Mobile L / petite tablette ===== */
@media (max-width: 768px) {
  /* HEADER : burger menu */
  .header { height: 70px; }
  .header.scrolled, body.page-light .header { height: 70px; }
  .nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 24px 28px;
    transform: translateY(-150%);
    transition: transform .35s var(--ease);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    border-top: 1px solid var(--border);
    gap: 0;
    z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    color: var(--dark) !important;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    width: 100%;
  }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header .brand img { height: 44px; }
  .btn-contact span { display: none; }
  .btn-contact { padding: 11px 14px; }
  .btn-contact svg { width: 18px; height: 18px; }

  /* Container */
  .container { padding-inline: 20px; }

  /* Hero principal */
  .hero { min-height: 90vh; }
  .hero-title { font-size: clamp(40px, 11vw, 60px); }
  .hero-sub { font-size: clamp(18px, 4.5vw, 24px); }
  .hero-lead { font-size: clamp(16px, 4vw, 20px); }
  .rotator-wrap { font-size: clamp(28px, 8vw, 42px); min-height: 60px; }
  .hero-lines { opacity: .4; right: -30%; width: 100%; }

  /* Titres blocs */
  .block-title { font-size: clamp(30px, 7vw, 42px); }

  /* Services (page accueil) */
  .services-block { padding: 70px 0 40px; }
  .service { margin-bottom: 50px; }
  .service-head { gap: 14px; }
  .service-icon { width: 70px; height: 70px; }
  .service-icon img { width: 32px; height: 32px; }

  /* Témoignages */
  .testimonials { padding: 70px 0; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 22px; }
  .t-card { padding: 28px 24px; }
  .t-card::before { font-size: 80px; top: 6px; right: 18px; }
  .t-quote { font-size: 15px; }

  /* CTA banner */
  .cta-banner { padding: 60px 0; }

  /* Pages services (com/site/auto) */
  .service-hero { padding: 110px 0 50px; }
  .service-hero-title { font-size: clamp(40px, 11vw, 60px); }
  .service-hero-subtitle { font-size: clamp(17px, 4vw, 22px); }
  .service-hero-question { font-size: clamp(17px, 4vw, 22px); padding: 6px 0 6px 18px; border-left-width: 4px; }
  .service-intro { padding: 50px 0; }
  .service-intro p { font-size: 16px; }
  .prestations-intro { padding: 30px 0 20px; }
  .service-cta { padding: 60px 0; }
  .service-cta .big { font-size: clamp(32px, 8vw, 50px); letter-spacing: 1px; }
  .service-realisations { padding: 60px 0; }

  /* Page détail réalisation */
  .reali-detail-hero { padding: 100px 0 40px; }
  .reali-detail-hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .reali-detail-desc { font-size: 17px; }
  .article-cover { padding: 0 20px; margin-bottom: 40px; }
  .article-cover img { aspect-ratio: 4/3; }
  .reali-story { padding: 60px 0; }
  .reali-gallery-section { padding: 60px 0; }
  .reali-gallery { grid-template-columns: 1fr; gap: 16px; }
  .gallery-item > img, .gallery-item > video { aspect-ratio: 4/3; }

  /* Page article */
  .article-hero { padding: 100px 0 30px; }
  .article-content { padding: 0 20px 50px; font-size: 16px; }
  .article-content h2 { margin: 40px 0 14px; }
  .article-content h3 { margin: 28px 0 10px; }
  .article-footer { padding: 26px 20px; margin: 0 16px 60px; }
  .article-others { padding: 60px 0; }
  .article-others .grid { grid-template-columns: 1fr; padding: 0 20px; }

  /* Blog */
  .blog-hero { padding: 110px 0 40px; }
  .blog-gallery { padding: 20px 0 70px; }
  .blog-gallery .grid { grid-template-columns: 1fr; gap: 22px; }

  /* Page liste réalisations */
  .realisations-hero { padding: 110px 0 30px; }
  .realisations-gallery { padding: 20px 0 70px; }
  .realisations-gallery .grid { grid-template-columns: 1fr; gap: 22px; }
  .realisations-filters { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 12px; }

  /* Réalisations preview (home) */
  .realisations { padding: 60px 0; }
  .realisations-grid { grid-template-columns: 1fr; gap: 18px; }
  .real-card { aspect-ratio: 3 / 2; }

  /* Footer */
  .footer { padding: 60px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .footer-newsletter, .footer-brand, .footer-links { grid-column: auto; }
  .links-cols { grid-template-columns: 1fr 1fr; }
  .newsletter { max-width: none; }
  .footer-legal { flex-direction: column; gap: 12px; text-align: center; padding: 20px; }

  /* Formulaires */
  .contact-section { padding: 70px 0; }
  .contact-form { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-head h2 { font-size: clamp(28px, 7vw, 38px); }

  /* Pages légales */
  .legal-hero { padding: 110px 0 30px; }
  .legal-content { padding: 50px 20px; }
  .legal-content h2 { font-size: 22px; }

  /* Lightbox close */
  .lightbox-close { top: 14px; right: 18px; font-size: 44px; }
}

/* ===== ≤ 540px : Mobile portrait ===== */
@media (max-width: 540px) {
  .container { padding-inline: 16px; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero-title { letter-spacing: .5px; }

  /* Pages services hero */
  .service-hero-eyebrow { font-size: 11px; padding: 6px 14px; }

  /* CTA */
  .pill-btn { padding: 13px 22px; font-size: 13px; }
  .btn-contact { font-size: 12px; padding: 10px 12px; }
  .btn-contact svg { width: 16px; height: 16px; }

  /* Cards */
  .service-card, .testimonial-card { padding: 26px 20px; }
  .reali-card-body { padding: 16px 18px 18px; }
  .blog-card-body { padding: 20px 22px 22px; }
  .blog-card h3 { font-size: 19px; }

  /* Story cards */
  .story-card { padding: 28px 22px; }
  .story-icon { width: 42px; height: 42px; font-size: 18px; margin-bottom: 16px; }

  /* Testimonials */
  .t-author { gap: 12px; }
  .t-avatar { width: 46px; height: 46px; font-size: 15px; }

  /* Contact info card */
  .contact-info-card { padding: 32px 24px; }
  .contact-info-item { gap: 12px; }
  .contact-info-icon { width: 38px; height: 38px; }
  .contact-info-icon svg { width: 18px; height: 18px; }

  /* Footer */
  .footer h4 { font-size: 22px; margin-bottom: 16px; }
  .links-cols { grid-template-columns: 1fr; gap: 6px; }
  .newsletter { flex-wrap: wrap; }
  .newsletter input { width: 100%; }
  .newsletter button { width: 100%; }

  /* Cookie banner */
  #cookie-banner { left: 8px; right: 8px; bottom: 8px; border-radius: 12px; }
  .cookie-banner-inner { padding: 18px 18px; }
  .cookie-banner-text strong { font-size: 14px; }
  .cookie-banner-text p { font-size: 12.5px; margin-bottom: 14px; }
  .cookie-btn { padding: 9px 16px; font-size: 12px; }
  .cookie-banner-actions { gap: 8px; }
  .cookie-banner-actions .cookie-link {
    width: 100%; order: -1; margin: 0 0 4px; text-align: left;
  }

  /* Pages services - icones plus petites */
  .service-icon { width: 60px; height: 60px; }
  .service-icon img { width: 28px; height: 28px; }
  .service h3 { font-size: 22px; }
  .service-sub { font-size: 16px; }

  /* Bloc title underline */
  .title-underline { width: 200px; }

  /* Tags réalisations */
  .reali-tag, .cat-tag { font-size: 10px; padding: 3px 8px; }
}

/* ===== ≤ 380px : Très petit mobile ===== */
@media (max-width: 380px) {
  .hero-title { font-size: 38px; }
  .service-hero-title { font-size: 38px; }
  .block-title { font-size: 26px; }
  .pill-btn { padding: 12px 18px; font-size: 12px; letter-spacing: .5px; }
  .btn-contact { padding: 9px 10px; }
  .reali-detail-tags { gap: 6px; }
  .filter-btn { padding: 7px 12px; font-size: 11px; }
}

/* ===== ORIENTATION & ACCESSIBILITY ===== */

/* Empêche le zoom auto sur iOS sur les inputs (font-size doit être >= 16px) */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="password"], input[type="date"],
  select, textarea {
    font-size: 16px !important;
  }
}

/* Préfère reduce-motion : désactive les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rotator-cursor { animation: none; }
}

/* Améliore le tap-target sur mobile (boutons & liens 44px min) */
@media (pointer: coarse) {
  .nav a, .filter-btn, .pill-btn, .btn-contact, button, .real-card, .reali-card, .blog-card {
    min-height: 44px;
  }
}

/* ============================================================
   PREVIEW RÉALISATIONS — Cartes agrandies (pages services + home)
   ============================================================ */

/* Container élargi pour la section preview des pages services */
.service-realisations > .container,
.realisations > .container.realisations-inner {
  max-width: 1480px;
}

/* Grille avec gap plus serré */
.service-realisations .realisations-grid,
.realisations .realisations-grid {
  gap: 22px;
}

/* Cartes plus grandes et plus carrées (4/3 → 5/4) pour mieux voir les logos */
.service-realisations .real-card,
.realisations .real-card {
  aspect-ratio: 5 / 4;
}

/* Image : garde cover mais le rendu est plus généreux grâce à l'aspect ratio */
.service-realisations .real-card img,
.realisations .real-card img {
  object-position: center;
}

/* Overlay : padding + tailles texte plus visibles */
.service-realisations .real-overlay,
.realisations .real-overlay {
  padding: 26px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 55%, transparent 100%);
}
.service-realisations .real-overlay span,
.realisations .real-overlay span {
  font-size: 22px;
  letter-spacing: .8px;
}
.service-realisations .real-overlay small,
.realisations .real-overlay small {
  font-size: 13.5px;
  margin-top: 5px;
}

/* Responsive : retour à 1 carte par ligne sous 768px (déjà géré ailleurs) */
@media (max-width: 768px) {
  .service-realisations .real-card,
  .realisations .real-card {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================================
   FIX OVERFLOW HORIZONTAL (décalage blanc à droite)
   NB : on utilise `clip` et non `hidden` pour ne pas casser
   `position: sticky` du carrousel scroll-driven (pages services).
   ============================================================ */
html, body {
  overflow-x: clip;
  max-width: 100%;
}
/* Fallback pour les vieux navigateurs qui ne supportent pas `clip` */
@supports not (overflow-x: clip) {
  html { overflow-x: hidden; }
  /* On laisse body sans overflow-x: hidden pour préserver le sticky */
}

/* Sécurise les sections pleine largeur qui ont des effets décoratifs (lignes, halos) */
.hero,
.service-hero,
.realisations-hero,
.blog-hero,
.contact-page-hero,
.legal-hero,
.reali-detail-hero,
.article-hero,
.reali-story,
.reali-gallery-section,
.cta-banner,
.service-cta,
.testimonials,
.contact-section,
.services-block,
.realisations,
.service-realisations {
  overflow-x: clip;
}

/* ============================================================
   GALERIE PLEIN ÉCRAN — Style charte graphique (Maison Lucienne)
   ============================================================ */

/* Galerie pleine largeur viewport (sort du container)
   ─────────────────────────────────────────────────────
   Système v4 : HAUTEUR de rangée UNIQUE + object-fit: contain
   → toutes les cellules même hauteur → tout colle parfaitement
   → images jamais coupées (bandes vides comblées par fond doux) */
.reali-gallery-fullbleed {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(340px, 36vw, 540px);  /* UNE SEULE hauteur pour toutes les rangées */
  gap: 0;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

/* Tailles : juste la LARGEUR varie. Toutes les rangées font la même hauteur. */
.reali-gallery-fullbleed .gallery-item.size-1 { grid-column: span 2; }  /* 1/3 viewport */
.reali-gallery-fullbleed .gallery-item.size-2 { grid-column: span 3; }  /* 1/2 viewport */
.reali-gallery-fullbleed .gallery-item.size-3 { grid-column: span 6; }  /* pleine largeur */

/* La cellule : pas de border-radius, pas de shadow, overflow hidden */
.reali-gallery-fullbleed .gallery-item {
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.reali-gallery-fullbleed .gallery-item:hover {
  transform: none;
  box-shadow: none;
}

/* Médias : remplissent 100% de la cellule, ratio NATIF préservé via contain */
.reali-gallery-fullbleed .gallery-item > img,
.reali-gallery-fullbleed .gallery-item > video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;       /* pas de ratio forcé sur l'image */
  display: block;
  object-fit: contain;       /* JAMAIS de crop — visuel intégral */
  object-position: center center;
  box-sizing: border-box;
}

/* Sans fond défini → fond gris doux pour combler les vides éventuels
   (quand le ratio image ≠ ratio cellule). Vidéos → fond cinéma noir. */
.reali-gallery-fullbleed .gallery-item:not(.has-bg) > img {
  background: linear-gradient(135deg, #fafafc 0%, #f0f0f4 100%);
}
.reali-gallery-fullbleed .gallery-item:not(.has-bg) > video {
  background: #0a0e27;
}

/* Médias AVEC fond perso (logo sur couleur) → padding pour respirer */
.reali-gallery-fullbleed .gallery-item.has-bg > img,
.reali-gallery-fullbleed .gallery-item.has-bg > video {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 12% 14%;
  background: transparent !important;
}
.reali-gallery-fullbleed .gallery-item.has-bg.size-3 > img,
.reali-gallery-fullbleed .gallery-item.has-bg.size-3 > video {
  padding: 8% 22%;
}
.reali-gallery-fullbleed .gallery-item.has-bg.size-1 > img,
.reali-gallery-fullbleed .gallery-item.has-bg.size-1 > video {
  padding: 16%;
}

/* Override le fond gris par défaut quand on a un fond personnalisé */
.reali-gallery-fullbleed .gallery-item.has-bg {
  background-image: none !important;
}

/* Badge catégorie : repositionné pour le full-bleed */
.reali-gallery-fullbleed .gallery-cat-badge {
  top: 20px; left: 20px;
}

/* Légende : flotte en bas-gauche du média (petit label discret, pas une bande) */
.reali-gallery-fullbleed .gallery-item figcaption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(10, 14, 39, 0.85);
  color: #fff;
  border-top: none;
  margin: 0;
  padding: 8px 16px;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  max-width: calc(100% - 32px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Bordure top catégorie plus visible */
.reali-gallery-fullbleed .gallery-item.has-cat { border-top-width: 6px; }

/* Responsive — on garde une hauteur de rangée UNIQUE adaptée à l'écran */
@media (max-width: 1024px) {
  .reali-gallery-fullbleed { grid-auto-rows: clamp(260px, 40vw, 420px); }
  .reali-gallery-fullbleed .gallery-item.size-1 { grid-column: span 3; }
  .reali-gallery-fullbleed .gallery-item.size-2 { grid-column: span 6; }
}
@media (max-width: 600px) {
  .reali-gallery-fullbleed { grid-auto-rows: clamp(220px, 70vw, 380px); }
  .reali-gallery-fullbleed .gallery-item.size-1,
  .reali-gallery-fullbleed .gallery-item.size-2,
  .reali-gallery-fullbleed .gallery-item.size-3 { grid-column: span 6; }
  .reali-gallery-fullbleed .gallery-item.has-bg > img { padding: 14% 18%; }
}

/* ============================================================
   PALETTE DE COULEURS (réalisation type identité visuelle)
   ============================================================ */
.reali-palette { padding: 90px 0 30px; background: var(--bg-light); }
.reali-palette .container { margin-bottom: 40px; }
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  width: 100%;
}
.palette-swatch {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 24px;
  font-family: 'Courier New', monospace;
  text-align: center;
  transition: transform .3s var(--ease);
}
.palette-swatch:hover { transform: scale(1.02); z-index: 1; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.palette-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.palette-hex {
  font-size: 14px;
  opacity: .85;
  letter-spacing: 1px;
}

/* ============================================================
   TYPOGRAPHIES (réalisation type identité visuelle)
   ============================================================ */
.reali-typos { padding: 60px 0 30px; background: var(--bg-light); }
.reali-typos .container { margin-bottom: 40px; }
.typos-grid {
  display: grid;
  width: 100%;
  gap: 0;
}
.typos-grid.grid-cols-1 { grid-template-columns: 1fr; }
.typos-grid.grid-cols-2 { grid-template-columns: 1fr 1fr; }
.typos-grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.typos-grid.grid-cols-4 { grid-template-columns: repeat(2, 1fr); }  /* 4 typos sur 2 lignes de 2 */

.typo-card {
  padding: 60px 50px 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 380px;
  position: relative;
}
.typo-usage {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  opacity: .8;
  margin-bottom: 22px;
  letter-spacing: 1px;
}
.typo-aa {
  font-size: clamp(120px, 16vw, 220px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -3px;
}
.typo-name {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  opacity: .75;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  padding-top: 18px;
  border-top: 1.5px solid currentColor;
  width: 80%;
  max-width: 280px;
}
.typo-alpha {
  font-size: 18px;
  line-height: 1.5;
  opacity: .9;
  margin: 0 auto;
  max-width: 90%;
}

@media (max-width: 900px) {
  .typos-grid.grid-cols-3, .typos-grid.grid-cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .typos-grid { grid-template-columns: 1fr !important; }
  .typo-card { padding: 50px 30px 40px; min-height: 320px; }
  .palette-swatch { aspect-ratio: 4 / 3; padding: 28px 20px; }
}

/* ============================================================
   GALERIE — RAFFINEMENT VISUEL (effet magazine)
   ============================================================ */

/* Fond de la section : dégradé subtil + ombre intérieure pour donner du relief */
.reali-gallery-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, #fafafc 100%);
  padding: 90px 0 30px;
}

/* La galerie elle-même : léger fond + ombre intérieure haut/bas */
.reali-gallery-fullbleed {
  background: #ffffff;
  box-shadow: inset 0 8px 22px -10px rgba(0,0,0,.08),
              inset 0 -8px 22px -10px rgba(0,0,0,.08);
  margin: 50px 0 30px;
}

/* Effet hover plus subtil et raffiné */
.reali-gallery-fullbleed .gallery-item {
  overflow: hidden;
  position: relative;
  transition: filter .4s var(--ease);
}
.reali-gallery-fullbleed .gallery-item > img,
.reali-gallery-fullbleed .gallery-item > video {
  transition: transform .8s var(--ease);
}
.reali-gallery-fullbleed .gallery-item:hover > img:not([style*="contain"]) {
  transform: scale(1.04);
}
/* Logos avec object-fit contain : zoom plus subtil */
.reali-gallery-fullbleed .gallery-item.has-bg:hover > img {
  transform: scale(1.06);
}

/* Vignette légère au survol */
.reali-gallery-fullbleed .gallery-item:not(.has-bg)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.15) 100%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.reali-gallery-fullbleed .gallery-item:hover::after { opacity: 1; }

/* Badge catégorie : plus stylé (ombre + glow subtil) */
.reali-gallery-fullbleed .gallery-cat-badge {
  top: 22px; left: 22px;
  padding: 7px 16px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.15);
  backdrop-filter: blur(2px);
}

/* Bordure top catégorie : un peu plus fine et élégante */
.reali-gallery-fullbleed .gallery-item.has-cat { border-top-width: 4px; }

/* Animation fade-in au scroll */
.reali-gallery-fullbleed .gallery-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .4s var(--ease);
}
.reali-gallery-fullbleed .gallery-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Séparateur subtil entre lignes de la grille (lignes verticales aux jonctions) */
.reali-gallery-fullbleed .gallery-item {
  border-right: 1px solid rgba(0,0,0,.04);
}
.reali-gallery-fullbleed .gallery-item.size-3 { border-right: none; }

/* Logos sans fond défini : ajout d'un fond doux neutre par défaut */
.reali-gallery-fullbleed .gallery-item:not(.has-bg) {
  background: linear-gradient(135deg, #fafafc 0%, #f2f2f6 100%);
}

/* Lightbox : meilleur z-index et animation */
#lightbox { transition: opacity .25s ease; opacity: 0; pointer-events: none; }
#lightbox.open { opacity: 1; pointer-events: auto; }
