/* ============================================================
   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;
  background: #000;
}
.gallery-item > img {
  object-fit: cover;
  cursor: pointer;
}
/* Vidéos : object-fit contain + fond noir pour respecter le ratio sans rogner */
.gallery-item > video {
  object-fit: contain;
  cursor: default;
}

.gallery-item figcaption {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  background: #fff;
}

/* 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: 0 auto 80px;
  padding: 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; }
}

/* ---------- 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; }
}
