/*
Theme Name: Kadence Child - Adrien Carlier
Theme URI: https://adrien.demo2.hb-digitals.fr
Description: Theme enfant Kadence — charte luxe blanc/noir/or (Playfair Display + Jost), animations reveal + view transitions, base structurelle du site Wix d'origine. 100% editable via l'editeur de blocs.
Author: HB Digitals
Template: kadence
Version: 3.17.0
Text Domain: kadence-child-adrien
*/

/* =====================================================
   Design tokens — Luxe blanc / noir / or
   ===================================================== */
:root {
  --gold: #C9A227;
  --gold-dark: #A8861D;
  --gold-soft: #F7F1DE;
  --ink: #0A0A0A;
  --ink-soft: #161616;
  --bg: #FAF8F3;
  --bg-alt: #F1EEE7;
  --muted: #6B6B6B;
  --border: #E6E2D8;

  --font-sans: "Jost", "Futura", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  /* Meme famille que le Wix (Futura Light) : titres en Jost fin */
  --font-display: "Jost", "Futura", "Century Gothic", sans-serif;

  --content-width: 1140px;

  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 18px 40px rgba(10, 10, 10, 0.08);
}

/* =====================================================
   Base
   Kadence imprime son CSS global APRES cette feuille :
   on force nos variables et on monte la specificite
   (html body / body h1) pour gagner la cascade.
   ===================================================== */
html:root {
  --global-body-font-family: var(--font-sans);
  --global-heading-font-family: var(--font-display);
}

html body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
}

body h1, body h2, body h3, body h4, .font-display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.25;
}

body h3, body h4 {
  font-weight: 400;
}

body h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
body h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
body h3 { font-size: 1.35rem; }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--gold);
}

a {
  transition: color 0.25s ease;
}

/* Liens dans les textes courants : discrets, pas de soulignement */
body .lux-section p a:not(.wp-block-button__link),
body .lux-section li a:not(.wp-block-button__link) {
  text-decoration: none;
  color: inherit;
  box-shadow: none;
}

body .lux-section p a:not(.wp-block-button__link):hover,
body .lux-section li a:not(.wp-block-button__link):hover {
  color: var(--gold-dark);
}

/* Lightbox native WP : pas de zoom sur les logos partenaires
   ni sur les tuiles projets (elles menent a la fiche) */
.partners-row .lightbox-trigger,
.proj-tile .lightbox-trigger {
  display: none !important;
}

/* Bouton loupe de la lightbox : discret, dore au survol */
.lightbox-trigger {
  background: rgba(10, 10, 10, 0.55) !important;
  border-radius: 10px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* =====================================================
   Utilitaires de charte
   ===================================================== */
.overline {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold-dark);
}

.overline::before {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.85rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--muted);
}

.gold-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 1.5rem 0;
}

.text-center { text-align: center; }
.text-center .overline::before { display: none; }
.text-center .overline::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin: 0.85rem auto 0;
}

/* =====================================================
   Sections
   ===================================================== */

/* Centrage du contenu : les sections sont pleine largeur,
   leurs enfants directs sont contraints et centres
   (independant du moteur de layout WP/Kadence). */
.page-header-lux > *,
.lux-section > *,
.lux-section-alt > *,
.band-dark > * {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.lux-section {
  padding: 5.5rem 1.5rem;
}

.lux-section-alt {
  background: var(--bg-alt);
  padding: 5.5rem 1.5rem;
}

/* Section cabinet : ivoire (option 1) */
.lux-section-stone {
  background: var(--bg);
}

/* Pas d interstice entre les sections pleine largeur
   (le block-gap WP laissait une barre blanche entre hero et cabinet) */
.entry-content > .alignfull,
.entry-content > .wp-block-cover.alignfull,
.entry-content > .wp-block-group.alignfull {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Kadence ecrase les gouttieres des .alignfull (padding-left/right: 0) :
   on retablit les 1.5rem lateraux sur nos sections pleine largeur.
   (.reviews-band exclu : full-bleed voulu) */
body .entry-content .alignfull:where(.lux-section, .lux-section-alt, .band-dark, .page-header-lux, .projx-nav, .partners-band) {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.band-dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 5.5rem 1.5rem;
}

body .band-dark h1, body .band-dark h2, body .band-dark h3, body .band-dark h4 {
  color: #fff;
}

.band-dark .overline { color: var(--gold); }
.band-dark a:not(.wp-block-button__link) { color: var(--gold); }
.band-dark .lead { color: rgba(255, 255, 255, 0.65); }

/* Hero — cover video, textes a gauche, filtre degrade noir->transparent */
.lux-hero.wp-block-cover {
  min-height: 82vh;
  min-height: 82svh; /* barres UI mobiles : svh evite le saut de hauteur */
  padding: 6rem 1.5rem;
  text-align: left;
}

.lux-hero .wp-block-cover__background {
  background: linear-gradient(100deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.62) 45%,
    rgba(10, 10, 10, 0.15) 100%) !important;
  opacity: 1 !important;
}

.lux-hero .wp-block-cover__video-background {
  filter: grayscale(0.35) contrast(1.05) brightness(0.85);
}

.lux-hero .wp-block-cover__inner-container {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
}

.lux-hero .overline {
  color: var(--gold);
}

body .lux-hero-title {
  color: #fff;
  font-size: clamp(1.9rem, 5vw + 0.9rem, 3.9rem);
  line-height: 1.12;
  max-width: 38rem;
  margin: 1.25rem 0 0;
}

.lux-hero .lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin: 1.5rem 0 2.25rem;
}

.lux-hero .wp-block-buttons { justify-content: flex-start; }

/* Mobile : le degrade lateral laisse le texte illisible sur la moitie droite,
   on passe a un degrade vertical plus couvrant */
@media (max-width: 781px) {
  .lux-hero .wp-block-cover__background {
    background: linear-gradient(180deg,
      rgba(10, 10, 10, 0.85) 0%,
      rgba(10, 10, 10, 0.55) 100%) !important;
  }
}

/* En-tête de page interne */
.page-header-lux {
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header-lux h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-top: 0.75rem;
}

.page-header-lux .overline::before { display: none; }
.page-header-lux .overline::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin: 0.85rem auto 0;
}

/* =====================================================
   Grilles
   ===================================================== */
/* WP enrobe les groupes dans .wp-block-group__inner-container :
   la grille s'applique au conteneur interne quand il existe. */
.lux-grid-3 { --grid-cols: 3; }
.lux-grid-4 { --grid-cols: 4; }

.lux-grid-3 > .wp-block-group__inner-container,
.lux-grid-4 > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 3), minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.lux-grid-3:not(:has(> .wp-block-group__inner-container)),
.lux-grid-4:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 3), minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .lux-grid-3 { --grid-cols: 2; }
  .lux-grid-4 { --grid-cols: 2; }
}

@media (max-width: 620px) {
  .lux-grid-3 { --grid-cols: 1; }
  /* Stats (4 chiffres) : 2x2 plutot qu'une colonne interminable */
  .lux-grid-4 { --grid-cols: 2; }
  .stats-band .lux-grid-4,
  .stats-band .lux-grid-4 > .wp-block-group__inner-container {
    gap: 1.5rem 1rem;
  }
}

/* =====================================================
   Cartes
   ===================================================== */
.is-style-card-lux {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.75rem 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.04);
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux), border-color 0.4s ease;
}

/* Voile dore diffus qui se revele au survol */
.is-style-card-lux::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.10) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.is-style-card-lux:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 30px 60px rgba(10, 10, 10, 0.12);
}

.is-style-card-lux:hover::before {
  opacity: 1;
}

.is-style-card-lux h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.card-num {
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1.25rem;
}

.card-price small {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =====================================================
   Carte image moderne + badge flottant
   ===================================================== */
.img-card {
  position: relative;
  transition: transform 0.5s var(--ease-lux);
}

.img-card:hover {
  transform: translateY(-4px);
}

.img-card figure {
  margin: 0;
}

.img-card img {
  display: block;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(10, 10, 10, 0.18);
}

.float-badge {
  position: absolute;
  bottom: -1.4rem;
  left: -1.6rem;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.9rem;
  align-items: center;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.5rem;
  box-shadow: 0 18px 44px rgba(10, 10, 10, 0.16);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.3;
  margin: 0;
  animation: badge-float 4.5s ease-in-out infinite;
}

/* Icone medaille doree (SVG inline, aucun fichier a charger) */
.float-badge::before {
  content: "";
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 13.5 7 21l5-2.5L17 21l-1.5-7.5'/%3E%3Cpath d='M12 6.5l.9 1.8 2 .3-1.45 1.4.35 2-1.8-.95-1.8.95.35-2L9.1 8.6l2-.3z' fill='%23C9A227' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

.float-badge strong {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.9rem;
  color: var(--gold-dark);
  line-height: 1;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .float-badge { animation: none; }
}

@media (max-width: 1024px) {
  .float-badge {
    left: 1rem;
    bottom: -1rem;
  }
}

.intro-buttons {
  margin-top: 2rem;
}

/* =====================================================
   Bandeau logos partenaires / certifications
   ===================================================== */
.partners-band {
  padding: 2.75rem 1.5rem 3.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.partners-band > * {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.partners-band .overline {
  margin-bottom: 2rem;
}

.partners-row { --p-gap: 3.5rem; }

.partners-row > .wp-block-group__inner-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--p-gap);
}

.partners-row:not(:has(> .wp-block-group__inner-container)) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--p-gap);
}

.partners-row figure {
  margin: 0;
}

.partners-row img {
  height: 54px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s var(--ease-lux);
}

.partners-row figure:hover img {
  filter: none;
  opacity: 1;
  transform: translateY(-3px);
}

@media (max-width: 620px) {
  .partners-row { --p-gap: 2rem; }
  .partners-row img { height: 40px; }
}

.credentials-list {
  margin-top: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.credentials-list li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  color: var(--ink-soft);
}

.credentials-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 1rem;
  height: 1px;
  background: var(--gold);
}

/* =====================================================
   Blog — archive et articles
   ===================================================== */

/* Bandeau titre de l'archive : meme langage que les page-headers */
.blog .entry-hero.post-archive-hero-section {
  background: transparent;
  padding: 4.5rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.blog .entry-hero .hero-section-overlay { display: none; }

body .blog .page-title.archive-title,
body h1.page-title.archive-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  color: var(--ink);
}

body h1.page-title.archive-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 0;
}

/* Grille d'articles */
.blog .content-wrap.grid-cols {
  gap: 1.75rem;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

/* Carte article */
.loop-entry.entry {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.04);
  transition: transform 0.45s var(--ease-lux), box-shadow 0.45s var(--ease-lux), border-color 0.4s ease;
}

.loop-entry.entry:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 26px 54px rgba(10, 10, 10, 0.12);
}

.loop-entry .post-thumbnail {
  overflow: hidden;
}

.loop-entry .post-thumbnail img {
  transition: transform 0.8s var(--ease-lux);
}

.loop-entry.entry:hover .post-thumbnail img {
  transform: scale(1.05);
}

.loop-entry .entry-content-wrap {
  padding: 1.5rem 1.6rem 1.6rem;
}

body .loop-entry .entry-title {
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 400;
}

.loop-entry .entry-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s ease;
}

.loop-entry .entry-title a:hover {
  color: var(--gold-dark);
}

.loop-entry .entry-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.loop-entry .entry-meta a { color: var(--gold-dark); text-decoration: none; }

.loop-entry .entry-summary {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

.loop-entry .entry-footer {
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin-top: 1rem;
}

.loop-entry .entry-footer a,
.loop-entry .post-more-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  text-decoration: none;
}

.loop-entry .entry-footer a::after,
.loop-entry .post-more-link::after {
  content: " \2192";
  transition: margin-left 0.3s var(--ease-lux);
}

.loop-entry .entry-footer a:hover::after {
  margin-left: 0.35rem;
}

/* Stats articles : oeil (vues) + coeur (j'aime) */
.ac-stats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.single-post .entry-content .ac-stats {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
  margin-top: 2rem;
}

.ac-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ac-stat svg {
  width: 17px;
  height: 17px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.ac-like-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  transition: color 0.25s ease;
}

.ac-like-btn:hover {
  color: var(--ink);
}

.ac-like-btn:hover svg {
  color: #D0433B;
}

.ac-like-btn.is-liked svg {
  color: #D0433B;
}

.ac-like-btn.is-liked .ac-heart-path {
  fill: #D0433B;
}

@keyframes ac-heart-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.ac-like-btn.is-pop svg {
  animation: ac-heart-pop 0.45s var(--ease-lux);
}

/* Article seul : confort de lecture */
.single-post .entry-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
  line-height: 1.85;
}

.single-post .entry-content h2 {
  margin-top: 2.25rem;
  padding-top: 0.5rem;
}

.single-post .entry-hero .hero-section-overlay { display: none; }

/* =====================================================
   Avis Google — carrousel infini
   ===================================================== */
.reviews-band {
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

/* Badge note globale style Google */
.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.4rem auto 0 !important;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.4rem 0.6rem 1.1rem;
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.06);
}

.g-badge::before {
  content: "";
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.g-badge strong {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.g-badge-stars {
  color: #FBBC04;
  letter-spacing: 2px;
  font-size: 1rem;
}

.g-badge-label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Carrousel pleine largeur d'ecran : on leve la contrainte de largeur
   de la section, seul l'en-tete reste centre */
.reviews-band > * {
  max-width: none !important;
}

.reviews-band .text-center {
  max-width: var(--content-width);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 1.5rem;
}

/* Piste défilante */
.rev-viewport {
  margin-top: 2.75rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.rev-viewport > *,
.rev-track {
  max-width: none !important;
}

.rev-track > .wp-block-group__inner-container,
.rev-track:not(:has(> .wp-block-group__inner-container)) {
  display: flex;
  width: max-content;
  animation: rev-scroll 55s linear infinite;
}

.rev-viewport:hover .rev-track > .wp-block-group__inner-container,
.rev-viewport:hover .rev-track:not(:has(> .wp-block-group__inner-container)) {
  animation-play-state: paused;
}

@keyframes rev-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .rev-track > .wp-block-group__inner-container,
  .rev-track:not(:has(> .wp-block-group__inner-container)) {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Carte avis, look fiche Google */
.rev-card {
  position: relative;
  width: min(370px, calc(100vw - 3.5rem));
  flex-shrink: 0;
  margin: 0 0.75rem !important;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.35rem 1.45rem 1.5rem;
  box-shadow: 0 10px 26px rgba(10, 10, 10, 0.05);
}

/* Logo G en haut a droite de chaque carte */
.rev-card::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  right: 1.35rem;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rev-card > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "av name"
    "stars stars"
    "text text";
  column-gap: 0.8rem;
  margin: 0 !important;
}

.rev-avatar {
  grid-area: av;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #4285F4;
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
}

.rev-card:nth-child(5n+2) .rev-avatar { background: #EA4335; }
.rev-card:nth-child(5n+3) .rev-avatar { background: #34A853; }
.rev-card:nth-child(5n+4) .rev-avatar { background: #9C27B0; }
.rev-card:nth-child(5n) .rev-avatar { background: #F29900; }

.rev-name {
  grid-area: name;
  margin: 0 !important;
  line-height: 1.3;
  align-self: center;
  padding-right: 2rem;
}

.rev-name strong {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}

.rev-name span {
  font-size: 0.78rem;
  color: var(--muted);
}

.rev-stars {
  grid-area: stars;
  margin: 0.75rem 0 0 !important;
  color: #FBBC04;
  letter-spacing: 3px;
  font-size: 1rem;
  line-height: 1;
}

.rev-text {
  grid-area: text;
  margin: 0.6rem 0 0 !important;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* =====================================================
   Page contact — formulaire + carte Google
   ===================================================== */
.cta-form-band .cta-form-cols {
  margin-top: 2.75rem;
  text-align: left;
}

.cta-form-band .contact-info-card {
  background: linear-gradient(165deg, #1A1712 0%, #0B0A09 60%);
  border-color: rgba(201, 162, 39, 0.3);
  margin-top: 4.5rem !important;
}

.cta-form-band .contact-info-card .contact-line {
  color: rgba(255, 255, 255, 0.72);
}

.cta-form-band .contact-info-card .contact-line strong {
  color: #fff;
}

.cta-form-band .contact-info-card .contact-line a {
  color: #fff;
}

.cta-form-band .contact-info-card .contact-line a:hover {
  color: var(--gold);
}

/* Formulaire version noire luxe (meme matiere que les cartes prestations) */
.form-card.form-card--dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #1A1712 0%, #0B0A09 60%);
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transition: border-color 0.4s ease, box-shadow 0.5s var(--ease-lux);
}

/* Reflet lumineux qui balaye la carte au survol, comme les prestations */
.form-card.form-card--dark::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -80%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-16deg);
  transition: left 1s var(--ease-lux);
  pointer-events: none;
}

.form-card.form-card--dark:hover::after { left: 140%; }

.form-card.form-card--dark:hover {
  border-color: rgba(201, 162, 39, 0.7);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.5), 0 0 46px rgba(201, 162, 39, 0.1);
}

body .form-card.form-card--dark .form-card-title {
  color: #fff;
}

.form-card.form-card--dark .form-card-sub {
  color: rgba(255, 255, 255, 0.6);
}

.form-card.form-card--dark .wpcf7 label {
  color: rgba(255, 255, 255, 0.55);
}

.form-card.form-card--dark .wpcf7 input[type="text"],
.form-card.form-card--dark .wpcf7 input[type="email"],
.form-card.form-card--dark .wpcf7 input[type="tel"],
.form-card.form-card--dark .wpcf7 select,
.form-card.form-card--dark .wpcf7 textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.form-card.form-card--dark .wpcf7 input::placeholder,
.form-card.form-card--dark .wpcf7 textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-card.form-card--dark .wpcf7 select option {
  background: #14120F;
  color: #fff;
}

.form-card.form-card--dark .wpcf7 input:focus,
.form-card.form-card--dark .wpcf7 select:focus,
.form-card.form-card--dark .wpcf7 textarea:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-card.form-card--dark .cf-rgpd,
.form-card.form-card--dark .cf-rgpd label {
  color: rgba(255, 255, 255, 0.55);
}

.form-card.form-card--dark input[type="submit"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.form-card.form-card--dark input[type="submit"]:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2.4rem;
  box-shadow: 0 18px 44px rgba(10, 10, 10, 0.06);
  height: 100%;
}

body .form-card-title {
  font-size: 1.6rem;
  margin: 0.5rem 0 0.35rem;
}

.form-card-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem !important;
}

/* Champs CF7 */
.form-card .wpcf7 label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--muted);
}

.form-card .wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.4rem;
}

.form-card .wpcf7 input[type="text"],
.form-card .wpcf7 input[type="email"],
.form-card .wpcf7 input[type="tel"],
.form-card .wpcf7 select,
.form-card .wpcf7 textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-card .wpcf7 input:focus,
.form-card .wpcf7 select:focus,
.form-card .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.16);
}

.form-card .cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.1rem;
}

@media (max-width: 620px) {
  .form-card .cf-grid { grid-template-columns: 1fr; }
}

/* Tablette : colonnes serrees -> une seule colonne de champs */
@media (max-width: 1024px) and (min-width: 782px) {
  .form-card .cf-grid { grid-template-columns: 1fr; }
}

/* Mobile : la carte contact ne doit plus flotter tres bas sous le formulaire */
@media (max-width: 781px) {
  .cta-form-band .contact-info-card { margin-top: 1.5rem !important; }
}

@media (max-width: 620px) {
  .form-card { padding: 1.75rem 1.25rem; }
  .form-card input[type="submit"] { width: 100%; }
}

.form-card .wpcf7 form > p,
.form-card .cf-grid p {
  margin: 0 0 1.1rem;
}

.form-card .cf-rgpd {
  font-size: 0.82rem;
  color: var(--muted);
}

.form-card .cf-rgpd .wpcf7-form-control-wrap { display: inline; }
.form-card .cf-rgpd label { display: inline; text-transform: none; letter-spacing: normal; font-size: 0.82rem; }
.form-card .cf-rgpd input[type="checkbox"] { accent-color: var(--gold); margin-right: 0.4rem; }

.form-card input[type="submit"] {
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.9rem 2.4rem;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-lux), box-shadow 0.3s ease;
}

.form-card input[type="submit"]:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.16);
}

.form-card .wpcf7-spinner { margin-left: 0.75rem; }

.form-card .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #B3261E;
  margin-top: 0.3rem;
}

.form-card .wpcf7-response-output {
  border-radius: 12px;
  border-color: var(--gold) !important;
  padding: 0.8rem 1rem !important;
  font-size: 0.88rem;
  margin: 1rem 0 0 !important;
}

/* Carte Google */
.map-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(10, 10, 10, 0.08);
  height: 380px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile : carte moins haute */
@media (max-width: 620px) {
  .map-card { height: 300px; }
}

.contact-info-card {
  margin-top: 1.5rem;
}

.contact-line {
  position: relative;
  padding-left: 1.9rem;
  margin: 0.7rem 0 0 !important;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.contact-line a { text-decoration: none; color: var(--ink); }
.contact-line a:hover { color: var(--gold-dark); }

.contact-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 16px;
  height: 16px;
  background: center / contain no-repeat;
}

.contact-line-tel::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.contact-line-pin::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.contact-line-zone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 0 20 15.3 15.3 0 0 1 0-20z'/%3E%3C/svg%3E");
}

/* =====================================================
   Cartes prestations — noires premium, tape a l'oeil
   ===================================================== */
.presta-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(165deg, #1A1712 0%, #0B0A09 60%);
  border: 1px solid rgba(201, 162, 39, 0.28);
  padding: 1.9rem 1.8rem 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  height: 100%;
  font-size: 0.95rem;
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux), border-color 0.4s ease;
}

.presta-card > .wp-block-group__inner-container {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

.presta-card:not(:has(> .wp-block-group__inner-container)) {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Reflet lumineux qui balaye la carte au survol */
.presta-card::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -80%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-16deg);
  transition: left 0.9s var(--ease-lux);
  pointer-events: none;
}

.presta-card:hover::after { left: 140%; }

.presta-card:hover {
  transform: translateY(-10px);
  border-color: rgba(201, 162, 39, 0.75);
  box-shadow: 0 32px 70px rgba(10, 10, 10, 0.35), 0 0 46px rgba(201, 162, 39, 0.12);
}

.services-sub {
  max-width: 46rem;
  margin: 1.1rem auto 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--muted);
}

.services-sub strong {
  font-weight: 500;
  color: var(--ink-soft);
}

/* Section elargie (cartes prestations plus larges) */
.section-wide > * {
  max-width: 1320px;
}

/* Picto dore en haut a droite de la carte */
.presta-icon {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  width: 46px;
  margin: 0 !important;
  opacity: 0.8;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-lux), filter 0.4s ease;
  pointer-events: none;
}

.presta-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.presta-card:hover .presta-icon {
  opacity: 1;
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.45));
}

body .presta-card h3 {
  color: #fff;
  font-size: 1.18rem;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  padding-right: 4.5rem;
}

.presta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.presta-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  line-height: 1.5;
}

.presta-list li:last-child { border-bottom: none; }

.presta-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 0.85rem;
  color: var(--gold);
}

.presta-list strong {
  color: #fff;
  font-weight: 500;
}

.presta-list span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

body .presta-card .wp-block-buttons {
  margin-top: auto !important;
  justify-content: center;
}

body .presta-card .wp-block-button .wp-block-button__link {
  font-size: 0.85rem;
  padding: 0.65rem 1.7rem;
}

.presta-note {
  margin: 0.9rem 0 0 !important;
  text-align: center;
  font-size: 0.74rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
}

.presta-note::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.5rem;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* =====================================================
   Filtres projets (pilules) + tuiles cachees
   ===================================================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2.75rem;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-lux);
}

.filter-pill:hover {
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-pill.is-active:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.tile-hidden {
  display: none !important;
}

.projets-intro {
  max-width: 44rem;
  margin: 1.25rem auto 0 !important;
}

/* =====================================================
   Vitrine projets recents — tuiles photo immersives
   ===================================================== */
.sec-head > .wp-block-group__inner-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Markup moderne : flex directement sur la classe */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.proj-tile {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: var(--ink);
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
  /* Markup moderne (plus d'inner-container) : le texte est enfant direct */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem 1.5rem;
}

/* Texte au-dessus du voile degrade (::after est z-index:1) ;
   l'image et .proj-tile-cat restent en absolu */
.proj-tile > .proj-tile-title,
.proj-tile > .proj-tile-loc,
.proj-tile > .proj-tile-cta {
  position: relative;
  z-index: 2;
  margin: 0;
}

.proj-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 70px rgba(10, 10, 10, 0.25), inset 0 0 0 1px rgba(201, 162, 39, 0.5);
}

/* Fleche cercle doree qui apparait au survol */
.proj-tile::before {
  content: "\2192";
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(-8px) rotate(-45deg);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-lux);
}

.proj-tile:hover::before {
  opacity: 1;
  transform: none;
}

.proj-tile-img,
.proj-tile-img img {
  position: absolute;
  inset: 0;
  margin: 0 !important;
  width: 100%;
  height: 100%;
}

.proj-tile-img img {
  object-fit: cover;
  filter: saturate(0.82);
  transition: transform 0.9s var(--ease-lux), filter 0.6s ease;
}

.proj-tile:hover .proj-tile-img img {
  transform: scale(1.07);
  filter: saturate(1.05);
}

/* Voile degrade pour la lisibilite du texte */
.proj-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.05) 45%, rgba(5, 5, 5, 0.55) 75%, rgba(5, 5, 5, 0.92) 100%);
  transition: background 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

/* Calque texte en absolu : la hauteur de la tuile ne depend
   QUE de l'aspect-ratio, jamais du contenu */
.proj-tile > .wp-block-group__inner-container {
  position: absolute !important;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: auto;
  margin: 0 !important;
  max-width: none !important;
  padding: 1.4rem 1.5rem;
  overflow: hidden;
}

.proj-tile-cat {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  margin: 0 !important;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink);
  background: rgba(250, 248, 243, 0.92);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

body .proj-tile-title {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}

body .proj-tile-title a {
  color: #fff;
  text-decoration: none;
}

/* Lien etendu : toute la tuile est cliquable */
.proj-tile-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.proj-tile-loc {
  margin: 0.2rem 0 0 !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.proj-tile-cta {
  margin: 0.75rem 0 0 !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  width: max-content;
  line-height: 1.4;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, transform 0.35s var(--ease-lux);
}

.proj-tile:hover .proj-tile-cta {
  background: #fff;
  transform: translateX(4px);
}

/* Vignette projet (placeholder ou photo) */
.proj-thumb {
  margin: -2.75rem -2.25rem 1.5rem;
}

.proj-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.6s ease, transform 0.6s var(--ease-lux);
}

.is-style-card-lux:hover .proj-thumb img {
  filter: grayscale(0);
  transform: scale(1.03);
}

.proj-loc {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* =====================================================
   Statistiques
   ===================================================== */
/* Bande stats : ruban fin, noir profond ameliore */
.band-dark.stats-band {
  padding: 2.1rem 1.5rem;
  background: linear-gradient(180deg, #17140E 0%, #0C0B09 55%, #0A0A0A 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.4);
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
}

/* Stat : chiffre au-dessus, libelle en dessous, le tout centre */
.stat > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  height: 100%;
}

.stat:not(:has(> .wp-block-group__inner-container)) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  height: 100%;
}

/* Verrouillage total des espacements dans la bande stats :
   aucune marge heritee (block-gap WP, Kadence) ne peut decaler un bloc */
body .stats-band .wp-block-group,
body .stats-band .wp-block-group__inner-container,
body .stats-band p {
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

body .stats-band p {
  line-height: 1.25;
}

body .stats-band .stat {
  height: 100%;
}

/* ...mais le conteneur principal reste centre dans la page */
body .stats-band > .wp-block-group__inner-container,
body .stats-band > .wp-block-group {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: var(--content-width);
  width: 100%;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =====================================================
   Boutons
   ===================================================== */
body .wp-block-button .wp-block-button__link {
  border-radius: 999px;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.85rem 2.1rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-lux), box-shadow 0.3s ease;
}

body .wp-block-button .wp-block-button__link:hover {
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.16);
}

body .is-style-btn-dark .wp-block-button__link {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

body .is-style-btn-dark .wp-block-button__link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

body .is-style-btn-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

body .is-style-btn-outline .wp-block-button__link:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

body .is-style-btn-gold .wp-block-button__link {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}

body .is-style-btn-gold .wp-block-button__link:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

body .is-style-btn-outline-light .wp-block-button__link {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

body .is-style-btn-outline-light .wp-block-button__link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
  transform: translateY(-2px);
}

/* Lien texte doré avec flèche */
.gold-link a, a.gold-link {
  color: var(--gold-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
}

.gold-link a::after, a.gold-link::after {
  content: " \2192";
  transition: margin-left 0.3s var(--ease-lux);
}

.gold-link a:hover::after, a.gold-link:hover::after {
  margin-left: 0.4rem;
}

/* =====================================================
   FAQ (bloc details)
   ===================================================== */
/* FAQ editoriale 2 colonnes : entete sticky a gauche, accordeons a droite */
.faq-head > .wp-block-group__inner-container,
.faq-head {
  position: sticky;
  top: 120px;
  align-self: start;
}

/* Mobile : plus de sticky (l'entete empilee bloquait le defilement visuel) */
@media (max-width: 781px) {
  .faq-head,
  .faq-head > .wp-block-group__inner-container {
    position: static;
  }
}


.faq-lead {
  font-size: 1rem;
  margin: 1rem 0 1.75rem;
}

/* Accordeons blancs arrondis, liseret dore a l'ouverture */
.lux-faq {
  counter-reset: faq;
  margin-left: auto;
  margin-right: auto;
}

.lux-faq .wp-block-details {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.5rem;
  margin: 0 0 0.85rem !important;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.lux-faq .wp-block-details:hover {
  border-color: rgba(201, 162, 39, 0.45);
}

.lux-faq .wp-block-details[open] {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 14px 34px rgba(10, 10, 10, 0.07);
}

.lux-faq summary {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lux-faq summary::-webkit-details-marker { display: none; }

.lux-faq summary::before {
  counter-increment: faq;
  content: counter(faq, decimal-leading-zero);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.lux-faq summary {
  justify-content: flex-start;
}

.lux-faq summary::after {
  margin-left: auto;
}

.lux-faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-lux);
}

.lux-faq .wp-block-details[open] summary::after {
  transform: rotate(45deg);
}

.lux-faq .wp-block-details p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0.85rem 0 0.2rem 2.4rem;
  padding-right: 2rem;
  max-width: 44rem;
}

/* Mobile : reponses pleine largeur (plus d'indentation ni de retrait droit) */
@media (max-width: 620px) {
  .lux-faq .wp-block-details p {
    margin-left: 0;
    padding-right: 0;
  }
}

/* Ouverture animee en douceur (navigateurs recents) */
@supports (interpolate-size: allow-keywords) {
  .lux-faq { interpolate-size: allow-keywords; }

  .lux-faq ::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.4s var(--ease-lux), content-visibility 0.4s allow-discrete;
  }

  .lux-faq [open]::details-content {
    height: auto;
  }
}

/* =====================================================
   Tableaux (tarifs)
   ===================================================== */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table th {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--ink);
  background: transparent;
}

.wp-block-table td {
  padding: 0.9rem 1rem;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.wp-block-table tr:hover td {
  background: var(--gold-soft);
}

.wp-block-table td:last-child {
  font-family: var(--font-display);
  white-space: nowrap;
}

/* Tres petits ecrans : le tableau devient une pile de cartes
   (une ligne = un bloc, le prix en evidence en bas) */
@media (max-width: 560px) {
  .wp-block-table thead { display: none; }
  .wp-block-table tr {
    display: block;
    padding: 0.75rem 0;
  }
  .wp-block-table td {
    display: block;
    padding: 0.15rem 0;
    border-bottom: 0;
  }
  .wp-block-table tr + tr { border-top: 1px solid var(--border); }
  .wp-block-table td:last-child {
    white-space: normal;
    color: var(--gold-dark);
    font-size: 1.05rem;
  }
}

/* =====================================================
   Header (Kadence) : integralement deporte dans
   css/navbar.css (position fixed + etat .is-scrolled,
   voir navbar.js). Ne rien rajouter ici.
   ===================================================== */

/* =====================================================
   Footer (Kadence)
   ===================================================== */
#colophon.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  border-top: 2px solid var(--gold);
}

#colophon.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

#colophon.site-footer a:hover {
  color: var(--gold);
}

/* =====================================================
   Animations — reveal au scroll
   (activées seulement quand le JS est present : html.has-reveal)
   ===================================================== */
/* .reveal-item est pose par reveal.js (avec un delai en cascade) :
   sans JS, la classe n'existe pas -> rien n'est jamais cache. */
html.has-reveal .reveal,
html.has-reveal .reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-lux), transform 0.7s var(--ease-lux);
}

html.has-reveal .reveal.in-view,
html.has-reveal .reveal-item.in-view {
  opacity: 1;
  transform: none;
}

/* Jamais d'elements caches dans l'editeur de blocs */
.editor-styles-wrapper .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* LCP : le premier ecran (hero / en-tete de page) ne doit JAMAIS
   attendre le JS pour apparaitre */
html.has-reveal .lux-hero .reveal,
html.has-reveal .page-header-lux .reveal,
html.has-reveal .projx-hero .reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.has-reveal .reveal,
  html.has-reveal .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================================
   View Transitions — cross-fade entre pages (façon SPA)
   ===================================================== */
@view-transition {
  navigation: auto;
}

@keyframes lux-vt-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

::view-transition-new(root) {
  animation: lux-vt-in 0.35s ease-out;
}

::view-transition-old(root) {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root),
  ::view-transition-old(root) {
    animation: none;
  }
}
