/* Recoupe — tests A/B du haut de page. Actif seulement avec ?ab dans l'adresse ; sans ça, la page reste la version actuelle. */

/* ================= sélecteur de maquettes (outil de test, pas sur le site) ================= */
.ab-panel { position: fixed; right: 16px; bottom: 16px; z-index: 100; width: 300px; padding: 16px; border-radius: 20px; background: rgba(20,20,22,.92); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.1); font: 500 13px/1.3 Inter, sans-serif; }
.ab-panel h4 { margin: 0 0 4px; font: 600 11px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ab-panel .grp { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.ab-panel .grp:last-of-type { margin-bottom: 8px; }
.ab-panel button { font: 500 12.5px/1 Inter, sans-serif; color: #fff; background: rgba(255,255,255,.08); border: 0; border-radius: 999px; padding: 8px 11px; cursor: pointer; }
.ab-panel button[aria-pressed="true"] { background: #fff; color: #1D1D1F; }
.ab-panel .code { color: rgba(255,255,255,.55); font-size: 12px; }
.ab-panel .code b { color: #E9967A; }
.ab-panel .hide { position: absolute; top: 10px; right: 10px; padding: 6px 9px; }
.ab-panel.min { width: auto; padding: 0; background: none; box-shadow: none; }
.ab-panel.min > *:not(.hide) { display: none; }
.ab-panel.min .hide { position: static; background: rgba(20,20,22,.92); }

/* ================= fonds ================= */
.ab-rideau { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: none; }
.ab-veil { position: absolute; inset: 0; z-index: -1; display: none; pointer-events: none; }
.hero[data-fond="anthracite-fonce"] .ab-rideau, .hero[data-fond="anthracite-clair"] .ab-rideau,
.hero[data-fond="anthracite-fonce"] .ab-veil, .hero[data-fond="anthracite-clair"] .ab-veil { display: block; }
.hero[data-fond^="anthracite"] .hero-par, .hero[data-fond^="anthracite"] .hero-scrim, .hero[data-fond^="anthracite"] .hero-edge { display: none; }
.hero[data-fond^="anthracite"] { background: #1D1D1F; }
.hero[data-fond^="anthracite"] .hero-grain { opacity: .12; }
/* voile sombre derrière le texte, à gauche ou au centre selon la disposition */
.hero[data-fond^="anthracite"] .ab-veil { background: radial-gradient(60% 60% at 26% 50%, rgba(29,29,31,.6), rgba(29,29,31,0) 100%); }
.hero[data-fond^="anthracite"][data-photos="centre"] .ab-veil { background: radial-gradient(55% 45% at 50% 38%, rgba(29,29,31,.6), rgba(29,29,31,0) 100%); }
/* un soleil discret, seul accent de couleur sur l'anthracite (comme G1) */
.ab-sun { position: absolute; z-index: -1; pointer-events: none; display: none; border-radius: 50%; filter: blur(10px);
  background: radial-gradient(closest-side, rgba(233,150,122,.18), rgba(194,69,42,.06) 55%, rgba(194,69,42,0)); }
.hero[data-fond^="anthracite"] .ab-sun { display: block; }

/* cadrage de chaque photo */
.hero[data-fond="reunion"] .hero-bg { object-position: 0% 50%; }
.hero[data-fond="contrejour"] .hero-bg { object-position: 72% 50%; transform-origin: 70% 50%; }
.hero[data-fond="couloir"] .hero-bg { object-position: 60% 50%; transform-origin: 30% 52%; animation-name: kenburns-couloir; }
@keyframes kenburns-couloir { from { transform: scale(1.18); } to { transform: scale(1.24) translate(-.6%, -.3%); } }
/* disposition centrée : le voile des photos devient central */
.hero[data-photos="centre"]:not([data-fond^="anthracite"]) .hero-scrim {
  background: radial-gradient(70% 70% at 50% 45%, rgba(20,15,12,.82) 0%, rgba(20,15,12,.55) 55%, rgba(20,15,12,.25) 100%); }

/* ================= dispositions des photos ================= */
.ab-cards { display: none; gap: 18px; }
.ab-card { position: relative; margin: 0; width: 210px; height: 262px; border-radius: 22px; overflow: hidden; flex: none;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); background: #E9E9EC; }
.ab-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ab-card figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 9px 11px; border-radius: 12px; text-align: left;
  background: linear-gradient(140deg, rgba(255,255,255,.86), rgba(255,255,255,.7)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); color: #1D1D1F; }
.ab-card figcaption b { display: block; font: 500 14px/1.25 Manrope, sans-serif; }
.ab-card figcaption span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: #6E6E73; }
.ab-who { display: none; color: #fff; }
.ab-who b { display: block; font: 500 17px/1.35 Manrope, sans-serif; }
.ab-who span { display: block; margin-top: 3px; font-size: 14.5px; color: rgba(245,242,239,.7); }
.ab-grid { display: block; }
.ab-side { display: none; position: relative; }

/* A · actuel : photos rondes croisées + texte (rien à changer) */

/* B · cadres sous les boutons, alignés à gauche */
.hero[data-photos="dessous"] .duo { display: none; }
.hero[data-photos="dessous"] .ab-who { display: block; margin-top: 10px; }
.hero[data-photos="dessous"] .hero-copy .ab-cards { display: flex; margin-top: 2px; }
.hero[data-photos="dessous"] .hero-in { padding-bottom: 72px; }

/* C · texte à gauche, cadres décalés à droite */
.hero[data-photos="droite"] .ab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 48px; align-items: center; width: 100%; }
.hero[data-photos="droite"] .ab-side { display: block; height: 470px; }
.hero[data-photos="droite"] .ab-side .ab-cards { display: block; }
.hero[data-photos="droite"] .ab-side .ab-card { position: absolute; width: 230px; height: 290px; }
.hero[data-photos="droite"] .ab-side .ab-card:nth-child(1) { left: 0; top: 0; }
.hero[data-photos="droite"] .ab-side .ab-card:nth-child(2) { right: 0; top: 150px; }
.hero[data-photos="droite"] .duo { display: none; }
.hero[data-photos="droite"] .ab-who { display: block; }
.hero[data-photos="droite"] .h1 { font-size: clamp(44px, 4.8vw, 72px); }

/* D · tout centré, cadres sous le texte */
.hero[data-photos="centre"] .hero-in { justify-content: center; padding-bottom: 72px; }
.hero[data-photos="centre"] .hero-copy { align-items: center; text-align: center; margin: 0 auto; max-width: 860px; }
.hero[data-photos="centre"] .lead { max-width: 640px; }
.hero[data-photos="centre"] .ctas { justify-content: center; }
.hero[data-photos="centre"] .duo { display: none; }
.hero[data-photos="centre"] .ab-who { display: block; margin-top: 10px; }
.hero[data-photos="centre"] .hero-copy .ab-cards { display: flex; justify-content: center; }
.hero[data-photos="centre"] .ab-card figcaption { text-align: center; }

@media (max-width: 1100px) {
  .hero[data-photos="droite"] .ab-grid { grid-template-columns: 1fr; }
  .hero[data-photos="droite"] .ab-side { height: auto; }
  .hero[data-photos="droite"] .ab-side .ab-cards { display: flex; }
  .hero[data-photos="droite"] .ab-side .ab-card { position: relative; left: auto; right: auto; top: auto; width: 190px; height: 240px; }
}
@media (max-width: 560px) {
  .ab-card { width: 150px; height: 190px; }
  .ab-panel { width: auto; left: 16px; }
}
