/* ==========================================================================
   ARTISAN TEMPLATE — Sites Clients
   Stack : CSS vanilla, variables :root, pas de framework
   ========================================================================== */

/* --- Fonts self-hosted (RGPD — aucune requête vers Google) --------------- */
/* Générer les fichiers : node scripts/download-fonts.js                    */

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/eb-garamond-400.woff2') format('woff2');
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/eb-garamond-500.woff2') format('woff2');
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/eb-garamond-600.woff2') format('woff2');
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/eb-garamond-700.woff2') format('woff2');
}

/* Cormorant Garamond — alternative calligraphique opt-in via content.json */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}

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

:root {
  /* Couleurs — personnalisées par client via content.json */
  --color-primary: #1E40AF;
  --color-secondary: #F59E0B;
  --color-accent: #D97706;
  --color-light: #EFF6FF;
  --color-dark: #1A1A1A;
  --color-body: rgba(29, 29, 29, 0.85);
  --color-white: #FFFFFF;
  --color-border: #E0D8CC;

  /* Typographie — `heading` configurable par client via content.json → fonts.heading */
  --font-heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Espacements */
  --section-padding-desktop: 110px;
  --section-padding-mobile: 64px;
  --container-max: 1200px;
  --container-px-desktop: 48px;
  --container-px-mobile: 24px;
  --card-gap: 40px;

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.55s ease-out;

  /* Nav */
  --nav-height: 80px;

  /* Hero */
  --hero-image: url('../images/hero.jpg');
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Utilities ----------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px-desktop);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
}

h1 {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 26px;
  font-weight: 600;
}

h4 {
  font-size: 20px;
  font-weight: 600;
}

.section-title {
  padding-left: 20px;
  border-left: 4px solid var(--color-secondary);
  margin-bottom: 48px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-body);
  margin-top: 16px;
  max-width: 600px;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 6px;
  transition: background-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(196, 153, 92, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.btn-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.btn-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* --- Navigation ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 65%, rgba(0, 0, 0, 0) 100%);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
  transition: color var(--transition-base);
  white-space: nowrap;
  /* Sécurité : se tronque (…) plutôt que de pousser le menu hors écran */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav--scrolled .nav__logo {
  color: var(--color-dark);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-base);
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav--scrolled .nav__link {
  color: var(--color-body);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav--scrolled .nav__link:hover {
  color: var(--color-secondary);
}

.nav__cta {
  font-size: 14px;
  padding: 10px 24px;
  white-space: nowrap;
}

.nav--scrolled .nav__cta {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav--scrolled .nav__burger span {
  background-color: var(--color-dark);
}

.nav__burger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger--open span:nth-child(2) {
  opacity: 0;
}

.nav__burger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(30, 58, 47, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-white);
  font-weight: 600;
}

/* Survol des liens texte uniquement — PAS le bouton CTA (.btn),
   sinon le texte passe en accent sur fond accent = invisible. */
.nav__mobile a:not(.btn):hover {
  color: var(--color-accent);
}

/* Le CTA tél dans le menu mobile garde son style bouton et un texte lisible au survol */
.nav__mobile a.btn {
  font-size: 18px;
  font-weight: 600;
}

.nav__mobile a.btn:hover {
  color: var(--color-white);
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 0 60px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.78) 0,
    rgba(0, 0, 0, 0.55) calc(var(--nav-height) + 32px),
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--color-white);
}

.hero__title {
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Section Generics ---------------------------------------------------- */
.section {
  padding-block: var(--section-padding-desktop);
  position: relative;
  z-index: 1;
  background-color: var(--color-white);
}

.section--light {
  background-color: var(--color-light);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--dark .section-title {
  border-left-color: var(--color-accent);
}

/* --- Services Cards ------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
  margin-top: 48px;
}

/* Variante 3 colonnes — page Atelier (3 installations) ou autres grilles à 3 cartes */
.services-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

/* Nombre impair de cartes : la derniere (seule sur sa ligne) est centree */
@media (min-width: 769px) {
  .services-grid:not(.services-grid--three) > .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--card-gap) / 2);
  }
}

.service-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card__image img {
  transform: translateY(-4px);
}

.service-card__body {
  padding: 32px;
}

.service-card__title {
  margin-bottom: 12px;
}

.service-card__text {
  color: var(--color-body);
  margin-bottom: 20px;
}

.service-card__link {
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card__link svg {
  transition: transform var(--transition-base);
}

.service-card__link:hover svg {
  transform: translateX(4px);
}

/* --- About / Introduction ------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image {
  border-radius: 8px;
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.about__text p {
  margin-bottom: 24px;
}

.about__stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}

.about__stat-label {
  font-size: 14px;
  color: var(--color-body);
  margin-top: 4px;
}

/* --- Realisations / Gallery ---------------------------------------------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.gallery__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 32px;
  color: rgba(29, 29, 29, 0.45);
  font-style: italic;
  font-size: 1.05rem;
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  /* .gallery uses columns layout, so span full width via inline-block trick */
  display: inline-block;
  width: 100%;
}

.gallery__item {
  /* 3 par rangée (2 gaps de 16px) ; les rangées incomplètes restent centrées
     grâce à justify-content:center du conteneur flex */
  flex: 0 1 calc((100% - 32px) / 3);
  min-width: 260px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: filter 0.4s ease;
}

.gallery__item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.gallery__item:hover .gallery__item__overlay {
  opacity: 1;
}

.gallery__item__caption {
  color: var(--color-white);
  font-weight: 500;
  font-size: 15px;
}

/* --- Testimonials -------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-top: 48px;
}

.testimonial-card {
  background-color: var(--color-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.testimonial-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.testimonial-card__text {
  font-style: italic;
  margin-bottom: 24px;
  color: var(--color-body);
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--color-dark);
}

/* --- Testimonials placeholder (mode démo) -------------------------------- */
.testimonials-placeholder {
  margin-top: 48px;
  text-align: center;
}

.testimonials-placeholder__inner {
  display: inline-block;
  background-color: var(--color-white);
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 48px 64px;
  max-width: 600px;
}

.testimonials-placeholder__stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
  opacity: 0.4;
}

.testimonials-placeholder__text {
  font-size: 1.1rem;
  color: var(--color-body);
  line-height: 1.7;
  margin-bottom: 12px;
}

.testimonials-placeholder__sub {
  font-size: 0.875rem;
  color: rgba(29, 29, 29, 0.5);
  font-style: italic;
}

/* --- Contact ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-dark);
  background-color: var(--color-light);
  border: 1.5px solid transparent;
  border-radius: 6px;
  transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--color-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.contact-info__label {
  font-size: 14px;
  color: var(--color-body);
  margin-bottom: 2px;
}

.contact-info__value {
  font-weight: 500;
  color: var(--color-dark);
}

.contact-info__value a {
  color: var(--color-dark);
}

.contact-info__value a:hover {
  color: var(--color-secondary);
}

.contact-map {
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--color-light);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Page Header (inner pages) ------------------------------------------- */
.page-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.page-header p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
}

/* --- CTA Banner ---------------------------------------------------------- */
.cta-banner {
  text-align: center;
  padding-block: 80px;
  background-color: var(--color-primary);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 16px;
  border-left: none;
  padding-left: 0;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 32px;
}

/* --- Footer -------------------------------------------------------------- */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 64px 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 15px;
  line-height: 1.7;
  max-width: 300px;
  margin-inline: auto;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  padding-block: 4px;
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.footer__social a:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  flex-wrap: wrap;
  text-align: center;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__bottom a:hover {
  color: var(--color-accent);
}

/* --- Sticky Phone (desktop pill + mobile circle) -------------------------- */
.sticky-phone {
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  border-radius: 50px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sticky-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  color: var(--color-white);
}

/* --- Timeline (page À propos — parcours client) -------------------------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  counter-reset: timeline;
}

.timeline__step {
  position: relative;
  padding: 0 24px;
  text-align: center;
}

/* Ligne de connexion entre les markers (desktop) */
.timeline__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 2px;
  background-color: var(--color-secondary);
  opacity: 0.35;
  z-index: 0;
}

.timeline__marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.timeline__number {
  line-height: 1;
}

.timeline__body {
  max-width: 360px;
  margin-inline: auto;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.timeline__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-body);
  margin: 0;
}

/* --- "Ce que nous traitons" — page Atelier (marques + véhicules fusionnés) */
.treated__brands {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 48px;
}

.treated__sublabel {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.treated__brands-list {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.5;
  color: var(--color-primary);
  max-width: 820px;
  margin: 0 auto;
}

.treated h3.treated__sublabel {
  display: block;
  text-align: center;
  margin-top: 0;
  margin-bottom: 24px;
}

/* --- Certifications & Garanties ------------------------------------------ */
.certifications-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 40px;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 32px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  min-width: 160px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cert-badge__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.cert-badge__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

/* Cert-badge avec description (utilisé par "Notre approche" sur a-propos) :
   fixe une largeur cible pour conserver une grille à 3 colonnes en desktop. */
.cert-badge:has(p) {
  flex: 1 1 280px;
  max-width: 360px;
  padding: 32px 28px;
}

.cert-badge:has(p) .cert-badge__name {
  font-size: 16px;
}

/* Variante "ribbon" : ligne horizontale de petits badges sobres, utilisée
   sur la page À propos pour différencier visuellement de "Notre approche". */
.certifications-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 36px;
  padding: 12px 0;
}

.certifications-ribbon__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  letter-spacing: 0.01em;
}

.certifications-ribbon__item svg {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* --- Contact submit button : auto-width, centré -------------------------- */
.contact-form__submit {
  align-self: center;
  min-width: 240px;
  width: auto;
}

@media (max-width: 640px) {
  .contact-form__submit {
    align-self: stretch;
    width: 100%;
  }
}

/* --- Consentement RGPD : checkbox à taille fixe (sinon la règle globale
   .form-group input{width:100%} l'étire), bloc centré sous le formulaire --- */
.form-group--consent {
  display: flex;
  justify-content: center;
}

.form-group--consent label {
  justify-content: center;
  max-width: 520px;
}

.form-group--consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
}

/* --- Urgences 24/7 -------------------------------------------------------- */
.contact-info__emergency {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  background-color: rgba(196, 153, 92, 0.1);
  border-radius: 6px;
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 600;
}

.footer__link--emergency {
  color: var(--color-accent) !important;
  font-weight: 600;
}

/* --- Lightbox ------------------------------------------------------------ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 32px;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.lightbox__close:hover {
  opacity: 0.7;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 28px;
  cursor: pointer;
  transition: opacity var(--transition-base);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.lightbox__nav:hover {
  opacity: 0.7;
}

.lightbox__nav--prev {
  left: 24px;
}

.lightbox__nav--next {
  right: 24px;
}

.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  text-align: center;
  max-width: 600px;
}

/* --- Legal --------------------------------------------------------------- */
.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--color-secondary);
}

.legal-content p {
  margin-bottom: 16px;
}

/* --- 404 ----------------------------------------------------------------- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
}

.page-404__code {
  font-family: var(--font-heading);
  font-size: 120px;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.page-404 p {
  margin-bottom: 32px;
  color: var(--color-body);
  max-width: 420px;
  margin-inline: auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Nav : menu complet sur laptop & desktop, burger UNIQUEMENT tablette/mobile (≤1024px).
   Entre 1025 et 1200px (petits portables), on compacte la nav pour que les noms longs
   tiennent sans déborder ni passer en burger. */
@media (min-width: 961px) and (max-width: 1200px) {
  /* Petits portables / tablette paysage : on compacte la nav pour que le menu complet tienne */
  .nav__logo { font-size: 17px; }
  .nav__links { gap: 16px; }
  .nav__link { font-size: 13.5px; }
  .nav__cta { font-size: 13px; padding: 9px 16px; }
}

@media (max-width: 960px) {
  /* Burger : mobile + tablette portrait uniquement.
     ≥961px (tablette paysage, portables, desktop) garde le menu complet. */
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 1024px) {
  .services-grid {
    gap: 24px;
  }

  .services-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timeline : vertical sur tablette/mobile */
  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 520px;
    margin-inline: auto;
    padding-left: 32px;
  }

  .timeline__step {
    text-align: left;
    padding: 0;
    padding-left: 24px;
  }

  .timeline__step:not(:last-child)::after {
    top: 56px;
    left: -8px;
    right: auto;
    bottom: -32px;
    width: 2px;
    height: auto;
  }

  .timeline__marker {
    position: absolute;
    left: -28px;
    top: 0;
    margin-bottom: 0;
  }

  .timeline__body {
    margin: 0;
    max-width: none;
  }

  .about-grid {
    gap: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .gallery__item {
    flex-basis: calc((100% - 16px) / 2);
  }

}

@media (max-width: 768px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 22px;
  }

  .container {
    padding-inline: var(--container-px-mobile);
  }

  .section {
    padding-block: var(--section-padding-mobile);
  }

  /* Hero */
  .hero {
    min-height: 80vh;
    padding: calc(var(--nav-height) + 24px) 0 48px;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-grid--three {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image {
    order: -1;
  }

  .about__image img {
    aspect-ratio: 16 / 9;
  }

  .about__stats {
    gap: 32px;
  }

  /* Gallery */
  .gallery__item {
    flex-basis: calc((100% - 16px) / 2);
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Sticky phone — circular icon only on mobile */
  .sticky-phone {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    gap: 0;
  }

  .sticky-phone__label {
    display: none;
  }

  /* Page header */
  .page-header {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
  }

  .page-header h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }

  .gallery__item {
    flex-basis: 100%;
  }

  .about__stats {
    flex-direction: column;
    gap: 24px;
  }

  .page-404__code {
    font-size: 80px;
  }
}


/* ── Badge démo (visible uniquement en mode démo) ──────────────────────────── */

.demo-badge {
  background: #f59e0b;
  color: #1a1a1a;
  text-align: center;
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Seasonal banner (home, opt-in via content.seasonal.current) -------- */
.seasonal-banner {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 40px 0;
  border-top: 4px solid var(--color-secondary);
}

.seasonal-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.seasonal-banner__text {
  flex: 1 1 auto;
  min-width: 260px;
}

.seasonal-banner__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.seasonal-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.2;
  color: var(--color-white);
}

.seasonal-banner__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.92;
}

.seasonal-banner__cta {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .seasonal-banner { padding: 28px 0; }
  .seasonal-banner__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* --- Footer : 4 colonnes quand spécialités activées ---------------------- */
.footer__grid--with-specialties {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 900px) {
  .footer__grid--with-specialties { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid--with-specialties { grid-template-columns: 1fr; }
}

/* --- Page header — variantes pour les pages spécialités ------------------ */
.page-header--with-image {
  position: relative;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 100px 0 80px;
  overflow: hidden;
}
.page-header--with-image .page-header__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('../images/mariages-1.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-header--with-image .container { position: relative; z-index: 1; }
.page-header--with-image h1,
.page-header--with-image p,
.page-header--with-image .page-header__eyebrow { color: var(--color-white); }
.page-header--with-image .page-header__eyebrow { color: var(--color-secondary); }

.page-header--sober {
  background: var(--color-light);
  color: var(--color-body);
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.page-header--sober h1 { color: var(--color-primary); }
.page-header--sober p { color: var(--color-body); }

.page-header__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-secondary);
  margin-bottom: 14px;
}

/* --- Section variants ---------------------------------------------------- */
.section--narrow .container { max-width: 760px; }

/* --- Mariages — process en 3 étapes -------------------------------------- */
.extra-process {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.extra-process__step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.extra-process__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}
.extra-process__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--color-primary);
}
.extra-process__body p {
  margin: 8px 0 0;
  color: var(--color-body);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .extra-process { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Hommages — note partnership ---------------------------------------- */
.hommages-note {
  background: var(--color-light);
  border-left: 4px solid var(--color-secondary);
  padding: 28px 32px;
  border-radius: 4px;
}
.hommages-note__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-primary);
  font-style: italic;
}

/* --- Hommages — grid des types ------------------------------------------ */
.hommages-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.hommages-type {
  background: var(--color-white);
  padding: 28px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.hommages-type__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-primary);
}
.hommages-type p {
  margin: 0;
  color: var(--color-body);
  line-height: 1.65;
}
@media (max-width: 700px) {
  .hommages-types { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Gallery — variante sobre (sans hover scale agressif) ---------------- */
.gallery--sober .gallery__item { box-shadow: none; }

/* --- Gallery — grille 2 colonnes régulière (pour 4 items, ex: hommages) ---- */
.gallery--two-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  columns: auto;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.gallery--two-cols .gallery__item { margin-bottom: 0; }
@media (max-width: 700px) {
  .gallery--two-cols { grid-template-columns: 1fr; }
}

/* --- CTA banner — variante sobre ---------------------------------------- */
.cta-banner--sober {
  background: var(--color-light);
}
.cta-banner--sober h2,
.cta-banner--sober p { color: var(--color-primary); }

/* --- Nav dropdown 'Prestations' (opt-in via extra_pages) ---------------- */
/* Comportement : ouverture au survol souris (hover) + au survol du menu       */
/* lui-même (hover sur le dropdown garde ouvert). Pas de :focus-within :       */
/* il garderait le menu ouvert après un clic sur le trigger (focus persistant).*/
/* Ouverture au clavier : géré par .nav__item--has-dropdown.is-open via JS.    */
.nav__item--has-dropdown {
  position: relative;
  display: inline-block;
}
.nav__item--has-dropdown > .nav__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.nav__chevron {
  margin-left: 4px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav__item--has-dropdown:hover .nav__chevron,
.nav__item--has-dropdown.is-open .nav__chevron {
  transform: rotate(180deg);
}
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  min-width: 240px;
  padding: 8px 0;
  margin-top: 8px;          /* gap visuel ↔ pont hover (compensé par ::before) */
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 1000;
}
/* Pont invisible entre le trigger et le menu pour que le hover ne se coupe pas
   quand la souris descend (sinon le menu se ferme avant qu'on l'atteigne). */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown.is-open .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}
.nav__dropdown-link {
  display: block;
  padding: 10px 20px;
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav__dropdown-link:hover {
  background: var(--color-light);
  color: var(--color-secondary);
}

/* Sécurité : sur mobile (≤1024px) la nav__links est masquée (display: none),
   donc le dropdown desktop ne peut pas s'afficher. Le menu mobile (nav__mobile)
   gère ses propres sous-items via .nav__mobile-sub. Mais au cas où le viewport
   change (rotation tablette), on force le dropdown fermé sous 1024px. */
@media (max-width: 960px) {
  .nav__dropdown { display: none !important; }
}

/* Mobile nav : sous-items des spécialités */
.nav__mobile .nav__mobile-sub {
  padding-left: 28px !important;
  font-size: 0.95em;
  opacity: 0.85;
}

/* ==========================================================================
   RÉCHAUFFEMENT — éléments éditoriaux/locaux (eyebrow, hero-meta, trust-bar)
   Donnent de la chaleur et de la confiance sans changer l'identité.
   ========================================================================== */

/* --- Eyebrow / kicker au-dessus des titres -------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

/* En-tête de section : eyebrow + titre + intro groupés */
.section-head { margin-bottom: 48px; }
.section-head .section-title { margin-bottom: 0; }
.section-intro {
  margin-top: 18px;
  max-width: 640px;
  padding-left: 24px;            /* aligné sur le retrait du titre (border-left 4px + 20px) */
  color: var(--color-body);
}

/* --- Hero : accroche locale (pastille) + infos pratiques ------------------ */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 26px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero__eyebrow svg { color: var(--color-accent); flex-shrink: 0; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}
.hero__meta-item svg { color: var(--color-accent); flex-shrink: 0; }

/* --- Trust-bar (engagements clés sous le hero) ---------------------------- */
.trust-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-block: 34px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--color-light);
  color: var(--color-secondary);
}
.trust-item__icon svg { width: 22px; height: 22px; }
.trust-item__body { display: flex; flex-direction: column; }
.trust-item__body strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-dark);
  line-height: 1.25;
}
.trust-item__body span { font-size: 13px; color: var(--color-body); }

/* --- Cartes prestations : liseré d'accent au survol ----------------------- */
.service-card { border-top: 3px solid transparent; }   /* réservé → pas de saut au survol */
.service-card:hover { border-top-color: var(--color-accent); }

/* --- À propos : bouton secondaire ----------------------------------------- */
.about__cta { margin-top: 36px; }

/* --- CTA : deux actions (formulaire + téléphone) -------------------------- */
.cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; padding-block: 28px; }
  .hero__meta { gap: 14px; }
  .section-intro { padding-left: 0; }
}
@media (max-width: 460px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MODULES — banque d'effets vanilla, 0 dépendance (sélection par generate.js)
   Variantes de slot (galerie, cartes) + modules accent + effets ambiants.
   Idées sourcées via 21st.dev, réimplémentées en vanilla.
   ========================================================================== */

/* --- Ambiant : scroll-reveal enrichi (flou léger) ------------------------- */
.reveal { filter: blur(6px); }
.reveal.is-visible { filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { filter: none; transform: none; opacity: 1; transition: none; }
}

/* --- Ambiant : zoom photo au survol (origine = curseur, JS) --------------- */
.zoomable { overflow: hidden; }
.zoomable img { transition: transform .45s ease; will-change: transform; }
.zoomable:hover img { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .zoomable:hover img { transform: none; } }

/* --- Ambiant : survol enrichi des cartes services ------------------------- */
.service-card { transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }

/* --- Variante galerie : BENTO --------------------------------------------- */
.gallery--bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery--bento .gallery__item { margin: 0; height: 100%; border-radius: 10px; }
.gallery--bento .gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery--bento .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery--bento .gallery__item:nth-child(4) { grid-column: span 2; }
@media (max-width: 768px) {
  .gallery--bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery--bento .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery--bento .gallery__item:nth-child(4) { grid-column: span 2; }
}

/* --- Variante galerie : MASONRY (colonnes CSS) ---------------------------- */
.gallery--masonry { display: block; column-count: 3; column-gap: 16px; }
.gallery--masonry .gallery__item { margin: 0 0 16px; break-inside: avoid; border-radius: 10px; display: inline-block; width: 100%; }
.gallery--masonry .gallery__item img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .gallery--masonry { column-count: 2; } }
@media (max-width: 540px) { .gallery--masonry { column-count: 1; } }

/* --- Variante cartes : ICÔNE ---------------------------------------------- */
.service-card--icon { display: flex; flex-direction: column; background: var(--color-white); border: 1px solid var(--color-border); box-shadow: none; }
.service-card--icon:hover { box-shadow: 0 12px 40px rgba(0,0,0,.08); border-color: transparent; }
.service-card__icon {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 14px;
  background: var(--color-light); color: var(--color-secondary); margin: 36px 36px 0;
  transition: background-color var(--transition-base), color var(--transition-base);
}
.service-card--icon:hover .service-card__icon { background: var(--color-secondary); color: var(--color-white); }
.service-card--icon .service-card__body { padding: 22px 36px 36px; }

/* --- Variante cartes : SPOTLIGHT (halo qui suit le curseur, JS) ----------- */
.service-card--spotlight { position: relative; isolation: isolate; }
.service-card--spotlight::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--color-secondary) 18%, transparent), transparent 70%);
}
.service-card--spotlight:hover::before { opacity: 1; }
.service-card--spotlight > * { position: relative; z-index: 1; }

/* --- Module : Avant / Après ----------------------------------------------- */
.beforeafter {
  position: relative; max-width: 760px; margin-inline: auto; aspect-ratio: 16/10;
  border-radius: 12px; overflow: hidden; user-select: none; touch-action: none;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.beforeafter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beforeafter__after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.beforeafter__label {
  position: absolute; top: 14px; padding: 4px 12px; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55);
  border-radius: 100px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 3;
}
.beforeafter__label--before { left: 14px; } .beforeafter__label--after { right: 14px; }
.beforeafter__handle { position: absolute; top: 0; bottom: 0; left: var(--ba-pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); z-index: 4; cursor: ew-resize; }
.beforeafter__handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%,-50%); background: #fff; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.beforeafter__handle::before { content: '⟺'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1; font-size: 18px; color: var(--color-primary); }

/* --- Module : FAQ accordéon ----------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 8px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--color-dark); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--color-secondary); transition: transform .3s ease; flex-shrink: 0; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item__body { padding: 0 8px 24px; color: var(--color-body); max-width: 64ch; }

/* --- Module : Steps (process vertical) — namespacé pour éviter le composant
       horizontal pré-existant ".timeline" (page À propos / Notre approche) --- */
.steps { max-width: 760px; margin-inline: auto; counter-reset: step; }
.steps__item { position: relative; padding: 0 0 36px 60px; }
.steps__item::before { content: ''; position: absolute; left: 17px; top: 8px; bottom: -8px; width: 2px; background: var(--color-border); }
.steps__item:last-child::before { display: none; }
.steps__item::after { content: counter(step); counter-increment: step; position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--color-primary); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.steps__item h3 { font-size: 19px; margin-bottom: 6px; }
.steps__item p { color: var(--color-body); }

/* --- Module : Bandeau marquee --------------------------------------------- */
.marquee { overflow: hidden; background: var(--color-primary); color: #fff; padding-block: 14px; }
.marquee__track { display: inline-flex; gap: 0; white-space: nowrap; padding-left: 40px; animation: marquee 34s linear infinite; }
.marquee__track span { font-size: 14px; letter-spacing: .05em; display: inline-flex; align-items: center; }
.marquee__track span::after { content: '•'; margin: 0 40px; color: var(--color-secondary); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
