/* ===========================
   CUSTOMOTOR — CSS GLOBAL (CLEAN + PREMIUM)
   =========================== */

/* ===========================
   VARIABLES (TOKENS)
   =========================== */
:root{
  --accent:#e10600;
  --transition:.35s ease;

  /* header height injectée par JS */
  --cm-header-h: 0px;

  /* layout tokens */
  --max: 1400px;              /* largeur globale */
  --max-narrow: 1160px;       
  --pad: clamp(1rem, 2.5vw, 2rem);

  --radius: 18px;
  --radius2: 24px;

  /* glass tokens */
  --bg0: rgba(255,255,255,.04);
  --bg1: rgba(255,255,255,.06);
  --bd0: rgba(255,255,255,.10);
  --bd1: rgba(255,255,255,.14);
  --tx0: rgba(255,255,255,.92);
  --tx1: rgba(255,255,255,.70);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* ===========================
   BASE
   =========================== */
*{ box-sizing:border-box; }

body{
  margin:0;
  color:#fff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(225,6,0,.10), transparent 55%),
    radial-gradient(900px 600px at 90% 15%, rgba(255,255,255,.06), transparent 55%),
    #000;
}

.cm-container{
  max-width: var(--max);
  margin:0 auto;
  padding:0 var(--pad);
}

/* helpers width */
.cm-container--narrow{
  max-width: var(--max-narrow);
}

/* Focus visible global */
:where(a,button,input,select,textarea):focus-visible{
  outline: 2px solid rgba(120,150,255,.65);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ===========================
   NEON / GLOW
   =========================== */
.cm-neon{
  color:#fff;
  text-shadow:
    0 0 6px rgba(255,255,255,.35),
    0 0 14px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 28px color-mix(in srgb, var(--accent) 45%, transparent);
}
@keyframes neon-breath{
  0%,100%{
    text-shadow:
      0 0 6px rgba(255,255,255,.30),
      0 0 14px color-mix(in srgb, var(--accent) 55%, transparent),
      0 0 26px color-mix(in srgb, var(--accent) 35%, transparent);
  }
  50%{
    text-shadow:
      0 0 10px rgba(255,255,255,.45),
      0 0 22px color-mix(in srgb, var(--accent) 75%, transparent),
      0 0 42px color-mix(in srgb, var(--accent) 55%, transparent);
  }
}
.cm-neon--animated{ animation: neon-breath 3.5s ease-in-out infinite; }

/* ===========================
   NEON RACING (ROUGE)
   =========================== */
.cm-neon-racing{
  color:#fff;
  text-shadow:
    0 0 4px rgba(255,255,255,.35),
    0 0 10px rgba(225,6,0,.75),
    0 0 22px rgba(225,6,0,.55),
    0 0 42px rgba(225,6,0,.35);
}
@keyframes neon-racing-pulse{
  0%,100%{
    text-shadow:
      0 0 4px rgba(255,255,255,.30),
      0 0 10px rgba(225,6,0,.65),
      0 0 20px rgba(225,6,0,.45);
  }
  50%{
    text-shadow:
      0 0 6px rgba(255,255,255,.45),
      0 0 16px rgba(225,6,0,.95),
      0 0 36px rgba(225,6,0,.65);
  }
}
.cm-neon-racing--animated{
  animation: neon-racing-pulse 2.2s cubic-bezier(.4,0,.2,1) infinite;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  .cm-neon--animated,
  .cm-neon-racing--animated{ animation:none; }
}

/* ===========================
   HEADER
   =========================== */
.cm-header{
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* TOP BAR */
.cm-topbar{
  background:#000;
  padding:.1rem 0;
}
.cm-topbar__inner{
  display:flex;
  justify-content:center;
  gap:1.2rem;
}
.cm-icon{
  color:#fff;
  opacity:.7;
  transition:var(--transition);
  text-decoration:none;
}
.cm-icon:hover{
  opacity:1;
  color:var(--accent);
}

/* NAVBAR */
.cm-nav{
  background:linear-gradient(to bottom, rgba(0,0,0,.92), rgba(0,0,0,.65));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cm-nav__inner{
  max-width: var(--max);
  margin:auto;
  padding:.90rem var(--pad);
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  position:relative;
}

/* LOGO */
.cm-brand,
.cm-brand:visited{
  color:#fff;
  text-decoration:none;
  display:flex;
  align-items:center;
}
.cm-brand__pill{
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  background:transparent !important;

  padding:0;
  font-family: Orbitron, sans-serif;
  font-size:1.1rem;
  font-weight:400;
  letter-spacing:3px;
  opacity:.95;
}
.cm-brand__o{ color:var(--accent); font-weight:600; }
.cm-brand:hover .cm-brand__pill{ opacity:1; }

/* supprime les cadres de focus DANS le header uniquement */
.cm-header a:focus,
.cm-header a:focus-visible,
.cm-header button:focus,
.cm-header button:focus-visible{
  outline:none !important;
  box-shadow:none !important;
}

/* MENU (droite) */
.cm-menu{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:2.5rem;
}
.cm-links{
  list-style:none;
  display:flex;
  gap:2.2rem;
  margin:0;
  padding:0;
}
.cm-link{
  color:#fff;
  text-decoration:none;
  font-weight:300;
  letter-spacing:.5px;
  position:relative;
  padding:.25rem 0;
  display:inline-flex;
  align-items:center;
}
.cm-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0%;
  height:1px;
  background:var(--accent);
  transition:var(--transition);
}
.cm-link:hover::after,
.cm-link.active::after{ width:100%; }
.cm-link.active{ font-weight:400; }

/* AUTH (login/register) + CTA logged in */
.cm-auth{
  display:flex;
  align-items:center;
  gap: .9rem;
}
.cm-auth a{
  font-size:.92rem;
  color:#bbb;
  text-decoration:none;
  position:relative;
  padding:.25rem 0;
}
.cm-auth a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0%;
  height:1px;
  background:rgba(255,255,255,.35);
  transition:var(--transition);
}
.cm-auth a:hover{ color:#fff; }
.cm-auth a:hover::after{ width:100%; }

/* pills account/logout (pas underline) */
.cm-auth__account,
.cm-auth__logout{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.45rem .75rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color:#bbb;
  text-decoration:none;
  font-size:.9rem;
  transition: .25s ease;
  position: static;
}
.cm-auth__account::after,
.cm-auth__logout::after{ content:none !important; }

.cm-auth__account i,
.cm-auth__logout i{
  font-size:.95rem;
  line-height:1;
}
.cm-auth__account:hover,
.cm-auth__logout:hover{
  color:#fff;
  border-color: rgba(255,255,255,.18);
}
.cm-auth__account:hover i{
  color: var(--accent);
  filter:
    drop-shadow(0 0 6px rgba(225,6,0,.55))
    drop-shadow(0 0 14px rgba(225,6,0,.35));
}
.cm-auth__account--admin:hover i{ color:#fff; filter:none; }

/* BURGER */
.cm-burger{
  display:none;
  background:none;
  border:none;
  flex-direction:column;
  gap:5px;
  padding:.35rem;
  cursor:pointer;
}
.cm-burger span{
  width:22px;
  height:2px;
  background:#fff;
  border-radius:2px;
}

/* RESPONSIVE MENU */
@media (max-width: 900px){
  .cm-burger{ display:flex; }

  .cm-menu{
    position:absolute;
    top:100%;
    left:1rem;
    right:1rem;

    background:rgba(0,0,0,.96);
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;
    padding:1.2rem;

    flex-direction:column;
    align-items:stretch;
    gap:1.2rem;

    display:none;
  }
  .cm-menu.open{ display:flex; }

  .cm-links{ flex-direction:column; gap:1rem; }

  .cm-auth{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .cm-auth__account,
  .cm-auth__logout{ width:max-content; }
}

/* ===========================
   FOOTER
   =========================== */
.cm-footer{ background:#000; color:#fff; }
.cm-footer__main{
  padding:4rem var(--pad);
  border-top:1px solid rgba(255,255,255,.08);
}
.cm-footer__inner{
  max-width: var(--max);
  margin:auto;
  display:grid;
  grid-template-columns:1.2fr 2fr;
  gap:3rem;
}
.cm-footer__logo{
  font-family: Orbitron, sans-serif;
  letter-spacing:3px;
  font-size:1.2rem;
  margin-bottom:.5rem;
}
.cm-footer__o{ color:var(--accent); font-weight:600; }
.cm-footer__tagline{ color:#aaa; font-size:.95rem; }
.cm-footer__cols{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:2.5rem;
}
.cm-footer__col h4{ font-weight:400; margin-bottom:.8rem; }
.cm-footer__col ul{ list-style:none; padding:0; margin:0; }
.cm-footer__col li{ color:#bbb; font-size:.9rem; margin-bottom:.4rem; }

.cm-footer__bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:1.2rem var(--pad);
}
.cm-footer__bottom-inner{
  max-width: var(--max);
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}
.cm-footer__bottom p{ font-size:.85rem; color:#888; }
.cm-footer__social{ display:flex; gap:1rem; }
.cm-footer__social a{ color:#bbb; font-size:1rem; transition:.25s; text-decoration:none; }
.cm-footer__social a:hover{ color:var(--accent); }

/* FOOTER – LIENS LÉGAUX */
.cm-footer__legal{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  align-items:center;
}
.cm-footer__legal a{
  color:#888;
  text-decoration:none;
  font-size:.85rem;
  position:relative;
  padding:.15rem 0;
  transition: .25s ease;
}
.cm-footer__legal a:hover{ color:#fff; }
.cm-footer__legal a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:1px;
  background: rgba(255,255,255,.35);
  transition: .25s ease;
}
.cm-footer__legal a:hover::after{ width:100%; }

@media (max-width: 900px){
  .cm-footer__inner{ grid-template-columns:1fr; }
  .cm-footer__cols{ grid-template-columns:1fr; }
  .cm-footer__bottom-inner{ flex-direction:column; text-align:center; }
  .cm-footer__legal{ justify-content:center; }
}

/* ===========================
   BUTTONS (front)
   =========================== */
.cm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  text-decoration:none;
  border-radius:999px;
  padding:.85rem 2.2rem;
  transition:.35s ease;
  font-weight:400;
  position:relative;
  color:#fff;
}
.cm-btn::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  background:
    radial-gradient(60% 60% at 50% 120%,
      color-mix(in srgb, var(--accent) 55%, transparent),
      transparent 70%);
  opacity:0;
  transition:.35s ease;
  pointer-events:none;
}
.cm-btn:hover::after{ opacity:1; }

.cm-btn--outline{
  border:1px solid rgba(255,255,255,.9);
  color:#fff;
  background:transparent;
  overflow:hidden;
}
.cm-btn--outline::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(225,6,0,.35),
    transparent 70%);
  transform: translateX(-120%);
}
.cm-btn--outline:hover::before{
  transform: translateX(120%);
  transition: transform .55s ease;
}
.cm-btn--outline:hover{
  background:#fff;
  color:#000;
}

/* Link “more” */
.cm-link-more{
  color:#bbb;
  text-decoration:none;
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  transition:.35s ease;
}
.cm-link-more:hover{ color:#fff; }

/* ===========================
   PAGE LOAD / REVEAL 
   =========================== */
html.js-loading body { overflow: hidden; }

.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Hero visible immédiatement  */
.perf-hero.reveal{
  opacity: 1;
  transform: none;
}

/* Parallax : évite les sauts (le JS manipule transform) */
[data-parallax]{
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* Delays optionnels */
.reveal--1{ transition-delay: .12s; }
.reveal--2{ transition-delay: .24s; }
.reveal--3{ transition-delay: .36s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  html.js-loading body { overflow: auto; }
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
  [data-parallax]{ transform: none !important; }
}

/* ===========================
   FALLBACK si color-mix non supporté
   =========================== */
@supports not (color: color-mix(in srgb, #fff 50%, transparent)){
  .cm-neon{
    text-shadow:
      0 0 6px rgba(255,255,255,.35),
      0 0 14px rgba(225,6,0,.55),
      0 0 28px rgba(225,6,0,.35);
  }
  .cm-btn::after{
    background: radial-gradient(60% 60% at 50% 120%, rgba(225,6,0,.35), transparent 70%);
  }
}

/* ===========================
   RESPONSIVE (ajout pour reverse)
   =========================== */
@media (max-width: 920px){
  /* tu l'as déjà, je le laisse identique */
  .perf-split,
  .perf-split--reverse{ grid-template-columns: 1fr; }
  .perf-split__media{ min-height: 260px; }

  /* AJOUT : reverse => image en premier sur mobile */
  .perf-split--reverse .perf-split__media{ order: -1; }
}


/* ===========================
   HOME HERO
   =========================== */
.cm-hero{
  position:relative;
  min-height:82vh;
  display:flex;
  align-items:flex-start;
  margin-bottom:3.5rem;
  overflow:hidden;
}
.cm-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--hero-img);
  background-size:cover;
  background-position:center 55%;
  background-repeat:no-repeat;
  z-index:0;

  transform: scale(1.15);
  filter: blur(6px) brightness(.85);
  opacity:0;

  transition:
    transform 1.8s cubic-bezier(.22,.61,.36,1),
    filter 1.6s ease,
    opacity 1.2s ease;
}
.cm-hero.is-visible::before{
  transform: scale(1);
  filter: blur(0) brightness(1);
  opacity:1;
}
.cm-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:.08;
  mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,.06) 0 1px,
      rgba(0,0,0,0) 1px 3px);
}
.cm-hero__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(circle at 30% 30%,
      rgba(0,0,0,.35),
      rgba(0,0,0,.75)),
    linear-gradient(
      to right,
      rgba(0,0,0,.88) 0%,
      rgba(0,0,0,.35) 48%,
      rgba(0,0,0,.88) 100%
    );
}
.cm-hero.is-visible .cm-hero__overlay::after{
  content:"";
  position:absolute;
  top:-30%;
  left:-40%;
  width:60%;
  height:160%;
  transform: rotate(20deg);
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.12),
    rgba(255,255,255,0)
  );
  animation: cm-sweep-once 900ms ease-out 220ms both;
  pointer-events:none;
  opacity:.9;
}
@keyframes cm-sweep-once{
  from { left:-40%; opacity:0; }
  30%  { opacity:1; }
  to   { left:110%; opacity:0; }
}
.cm-hero__overlay::before{
  content:"";
  position:absolute;
  inset:-45% -65%;
  background: linear-gradient(115deg,
    transparent 44%,
    rgba(225,6,0,.10) 50%,
    transparent 56%
  );
  transform: translateX(-35%) rotate(6deg);
  animation: cm-red-sweep 8.5s ease-in-out infinite;
  pointer-events:none;
  mix-blend-mode: screen;
  opacity:.28;
}
@keyframes cm-red-sweep{
  0%,100% { transform: translateX(-35%) rotate(6deg); opacity: .18; }
  50%     { transform: translateX(35%)  rotate(6deg); opacity: .34; }
}
@media (prefers-reduced-motion: reduce){
  .cm-hero__overlay::before{ animation:none; opacity:0; }
}

.cm-hero__inner{ position:relative; z-index:3; width:100%; }
.cm-hero__content{
  max-width:520px;
  padding-top: calc(var(--cm-header-h) + 1.8rem);
  padding-bottom:3.2rem;
}
.cm-hero__kicker{
  margin:0 0 .55rem;
  color:var(--accent);
  font-weight:500;
  font-size:1.25rem;
  letter-spacing:3px;
  position:relative;
}
.cm-hero__kicker::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:42px;
  height:2px;
  background:var(--accent);
  box-shadow:
    0 0 8px rgba(225,6,0,.9),
    0 0 18px rgba(225,6,0,.6);
}
.cm-hero__title{
  margin:0 0 1.4rem;
  font-weight:300;
  font-size:2.45rem;
  line-height:1.15;
}
@media (max-width:900px){
  .cm-hero{ min-height:68vh; }
  .cm-hero::before{ background-position:center 50%; }
  .cm-hero__content{ padding-top: calc(var(--cm-header-h) + 1.2rem); }
  .cm-hero__title{ font-size:2rem; }
}

/* ignition underline */
@keyframes cm-ignition {
  0%   { opacity: 0; transform: translateY(10px); filter: blur(6px); }
  45%  { opacity: 1; transform: translateY(0);  filter: blur(0); }
  60%  {
    text-shadow:
      0 0 6px rgba(255,255,255,.35),
      0 0 14px rgba(225,6,0,.85),
      0 0 34px rgba(225,6,0,.55);
  }
  100% { opacity: 1; transform: none; filter: none; }
}
.cm-ignition{
  position:relative;
  display:inline-block;
  padding-bottom:.35rem;
  animation: cm-ignition .9s cubic-bezier(.2,.8,.2,1) both;
}
.cm-ignition::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:3px;
  border-radius:999px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.95),
    rgba(255,255,255,0)
  );
  box-shadow:
    0 0 10px rgba(255,255,255,.55),
    0 0 22px rgba(255,255,255,.35);
  opacity:0;
  transform: translateY(2px);
}
.cm-hero.is-visible .cm-ignition::after{
  animation: cm-underline-in 900ms cubic-bezier(.22,.61,.36,1) 250ms forwards,
             cm-underline-pulse 2200ms ease-in-out 1300ms infinite;
}
@keyframes cm-underline-in{
  from{ width:0%; opacity:0; transform: translateY(2px); }
  to{ width:100%; opacity:1; transform: translateY(0); }
}
@keyframes cm-underline-pulse{
  0%,100%{
    filter: brightness(1);
    box-shadow:
      0 0 10px rgba(255,255,255,.45),
      0 0 18px rgba(255,255,255,.25);
  }
  50%{
    filter: brightness(1.15);
    box-shadow:
      0 0 14px rgba(255,255,255,.65),
      0 0 30px rgba(255,255,255,.35);
  }
}

/* ===========================
   LOOKBOOK (HOME)
   =========================== */
.cm-lookbook{
  background:#000;
  padding:4.5rem 0 5rem;
  position:relative;
}
.cm-lookbook::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at center, transparent 60%, rgba(0,0,0,.35));
  pointer-events:none;
}
.cm-lookbook__head{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:2rem;
  margin-bottom:2rem;
}
.cm-section-kicker{
  margin:0 0 .4rem;
  color:var(--accent);
  letter-spacing:2px;
  font-weight:500;
  font-size:1rem;
}
.cm-section-title{
  margin:0;
  font-weight:300;
  letter-spacing:1px;
  font-size:2rem;
}

/* Carousel */
.cm-carousel{
  position:relative;
  display:flex;
  align-items:center;
  z-index:1;
}
.cm-carousel__viewport{
  position:relative;
  overflow:hidden;
  width:100%;
}
.cm-carousel__viewport::before,
.cm-carousel__viewport::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:90px;
  z-index:4;
  pointer-events:none;
}
.cm-carousel__viewport::before{
  left:0;
  background: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
.cm-carousel__viewport::after{
  right:0;
  background: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
.cm-carousel__track{ 
  display:flex;
  gap:1.6rem;
  overflow: visible;        
  will-change: auto;        
  scroll-behavior:auto;
  padding:.4rem .1rem;
  scrollbar-width:none;
  scroll-snap-type:none;
}
.cm-carousel__track::-webkit-scrollbar{ display:none; }

.cm-carousel__item{
  flex:0 0 auto;
  width:380px;
  height:190px;
  background-color: #222;
  background-image:var(--img);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
  border-radius:6px;
  position:relative;
  overflow:hidden;
  text-decoration:none;

  box-shadow:0 20px 40px rgba(0,0,0,.45);
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
  filter: saturate(.95) contrast(1.02);
}
.cm-carousel__item::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.1));
  opacity:.35;
  transition:.35s ease;
}
.cm-carousel__item::before{
  content:"Voir le projet";
  position:absolute;
  left:1.2rem;
  bottom:1rem;
  font-size:.9rem;
  color:#fff;
  padding:.4rem .9rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.35);
  opacity:0;
  transform: translateY(8px);
  transition:.35s ease;
}
.cm-carousel__item:hover{
  transform: translateY(-4px);
  box-shadow:0 28px 60px rgba(0,0,0,.6);
}
.cm-carousel__item:hover::after{ opacity:.75; }
.cm-carousel__item:hover::before{ opacity:1; transform: translateY(0); }

.cm-carousel__item.is-active{
  transform: scale(1.025) translateY(-2px);
  filter: saturate(1.15) contrast(1.1);
  box-shadow:
    0 35px 75px rgba(0,0,0,.75),
    0 0 28px rgba(225,6,0,.55);
}
.cm-carousel__item.is-active::after{ opacity:.28; }

/* Arrows */
.cm-carousel__arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.65);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.6);
  transition:.25s ease;
  z-index:6;
}
.cm-carousel__arrow:hover{
  background:#000;
  border-color: rgba(255,255,255,.18);
  color:#fff;
}
.cm-carousel__arrow svg{ display:block; width:18px; height:18px; }
.cm-carousel__arrow--left{ left:-22px; }
.cm-carousel__arrow--right{ right:-22px; }

@media (max-width:900px){
  .cm-carousel__viewport::before,
  .cm-carousel__viewport::after{ width:55px; }
  .cm-carousel__arrow{ display:none; }
  .cm-carousel__item{ width:280px; height:160px; }
}

/* Motion blur */
.cm-carousel.is-moving .cm-carousel__item{
  filter: saturate(.92) contrast(1.02) blur(.9px);
  transform: translateZ(0);
  transition: filter .15s ease;
}
.cm-carousel.is-moving .cm-carousel__item.is-active{
  filter: saturate(1.15) contrast(1.1) blur(0);
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .cm-ignition{ animation:none; }
  .cm-hero::before,
  .cm-hero.is-visible{ transition:none; animation:none; transform:none; filter:none; opacity:1; }
  .cm-hero.is-visible .cm-hero__overlay::after{ animation:none; display:none; }
  .cm-hero::after{ opacity:.06; }
  .cm-carousel.is-moving .cm-carousel__item{ filter:none; }
  .reveal{ transition:none; opacity:1; transform:none; }
  .cm-hero.is-visible .cm-ignition::after{ animation:none; width:100%; opacity:1; transform:none; }
}

/* ===========================
   LEGAL PAGES
   =========================== */
.cm-legal-hero{
  position:relative;
  padding: 5.5rem 0 3rem;
  overflow:hidden;
}
.cm-legal-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 55%;
  filter: blur(4px) brightness(.55);
  transform: scale(1.08);
  opacity: .9;
  z-index:0;
}
.cm-legal-hero__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(circle at 30% 30%,
      rgba(0,0,0,.35),
      rgba(0,0,0,.85));
}
.cm-legal-hero__inner{
  position:relative;
  z-index:2;
  padding-top: calc(var(--cm-header-h) + 1.2rem);
}
.cm-legal-hero__title{
  margin:.5rem 0 .6rem;
  font-weight:300;
  font-size:2.2rem;
  letter-spacing:.5px;
}
.cm-legal-hero__subtitle{
  margin:0 0 1.6rem;
  color:#bbb;
  max-width: 60ch;
  line-height:1.6;
}
.cm-legal-hero__actions{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}
.cm-legal{ padding: 3.5rem 0 5rem; }
.cm-legal__card{
  border:1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(0,0,0,.55);
  box-shadow: 0 25px 60px rgba(0,0,0,.55);
  padding: 2rem;
  line-height:1.75;
}
.cm-legal__h2{
  margin: 1.6rem 0 .5rem;
  font-weight:400;
  font-size:1.1rem;
  color:#fff;
}
.cm-legal__p{ margin: 0 0 .75rem; color:#bbb; }
.cm-legal__meta{
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cm-legal__small{ margin:0; color:#888; font-size:.85rem; }
@media (max-width:900px){
  .cm-legal-hero{ padding: 4.6rem 0 2.4rem; }
  .cm-legal__card{ padding: 1.4rem; border-radius: 16px; }
  .cm-legal-hero__title{ font-size:1.8rem; }
}

/* ===========================
   CONTACT PAGE
   =========================== */
.cm-contact{ padding: 3.5rem 0 5rem; }
.cm-contact__grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 2rem;
  align-items:start;
}
.cm-contact__card{
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background: rgba(0,0,0,.55);
  box-shadow: 0 25px 60px rgba(0,0,0,.55);
  padding: 2rem;
}
.cm-contact__h2{
  margin:0 0 .35rem;
  font-weight:400;
  font-size:1.15rem;
}
.cm-contact__p{
  margin:0 0 1.25rem;
  color:#bbb;
  line-height:1.6;
}
.cm-contact__list{
  list-style:none;
  padding:0;
  margin: 1rem 0 0;
  display:grid;
  gap:.85rem;
}
.cm-contact__label{
  display:block;
  color:#888;
  font-size:.85rem;
  letter-spacing:.4px;
}
.cm-contact__value{ color:#fff; opacity:.9; }

.cm-form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cm-field{ margin-bottom: 1rem; }
.cm-label{
  display:block;
  margin: 0 0 .4rem;
  color:#bbb;
  font-size:.9rem;
}
.cm-input,
.cm-textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color:#fff;
  padding: .85rem 1rem;
  outline:none;
  transition: .25s ease;
}
.cm-input:focus,
.cm-textarea:focus{
  border-color: rgba(225,6,0,.55);
  box-shadow: 0 0 0 3px rgba(225,6,0,.15);
}
.cm-error{
  display:block;
  margin-top:.35rem;
  color:#ffb3b0;
  font-size:.85rem;
}
.cm-form__actions{
  display:flex;
  align-items:center;
  gap: 1rem;
  flex-wrap:wrap;
  margin-top: .25rem;
}
.cm-contact__fineprint{
  margin: 1.1rem 0 0;
  color:#888;
  font-size:.85rem;
  line-height:1.55;
}
.cm-contact__fineprint a{
  color:#bbb;
  text-decoration:none;
  position:relative;
}
.cm-contact__fineprint a:hover{ color:#fff; }
.cm-contact__fineprint a::after{
  content:"";
  position:absolute;
  left:0; bottom:-3px;
  width:0%;
  height:1px;
  background: rgba(255,255,255,.35);
  transition:.25s ease;
}
.cm-contact__fineprint a:hover::after{ width:100%; }

/* Alerts */
.cm-alert{
  border-radius:16px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.55);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  margin-bottom: 1.5rem;
}
.cm-alert strong{ display:block; margin-bottom:.15rem; }
.cm-alert--success{ border-color: rgba(46, 204, 113, .35); }
.cm-alert--success strong{ color: #d7ffe6; }
.cm-alert--info{ border-color: rgba(255,255,255,.12); color:#ddd; margin-bottom: 1rem; }
.cm-alert--error{ border-color: rgba(225,6,0,.35); color:#ffd6d6; margin-bottom: 1rem; }

@media (max-width: 900px){
  .cm-contact__grid{ grid-template-columns: 1fr; }
  .cm-contact__card{ padding: 1.4rem; border-radius:16px; }
  .cm-form__row{ grid-template-columns: 1fr; }
}

/* ===========================
   AUTH PAGES (LOGIN/REGISTER) + PASSWORD
   =========================== */
.cm-auth-page{ padding: 3.5rem 0 5rem; }

.cm-auth-card{
  max-width: 560px;
  margin: 0 auto;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background: rgba(0,0,0,.55);
  box-shadow: 0 25px 60px rgba(0,0,0,.55);
  padding: 2rem;
}
.cm-auth-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
  margin-top: .25rem;
}
.cm-auth-divider{
  margin: 1.5rem 0 1.2rem;
  height: 1px;
  background: rgba(255,255,255,.08);
}
.cm-auth-note{
  margin:0;
  color:#888;
  font-size:.9rem;
  line-height:1.6;
}
.cm-auth-note__label{ color:#bbb; margin-right:.35rem; }

.cm-input-wrap{ position:relative; }
.cm-input--withbtn{ padding-right: 3rem; }
.cm-input-btn{
  position:absolute;
  right:.6rem;
  top:50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;
  transition:.25s ease;
}
.cm-input-btn:hover{ color:#fff; border-color: rgba(255,255,255,.18); }
.cm-input-btn i{ color:#bbb; transition: .25s ease; }
.cm-input-btn:hover i{
  color: var(--accent);
  filter:
    drop-shadow(0 0 6px rgba(225,6,0,.55))
    drop-shadow(0 0 14px rgba(225,6,0,.35));
}

/* password meter */
.cm-passmeter{
  margin-top:.75rem;
  padding-top:.75rem;
  border-top:1px solid rgba(255,255,255,.08);
}
.cm-passmeter__row{
  display:flex;
  gap:.5rem;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:.45rem;
}
.cm-passmeter__label{ color:#888; font-size:.85rem; }
.cm-passmeter__text{ color:#bbb; font-size:.85rem; }
.cm-passmeter__bar{
  height:8px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}
.cm-passmeter__fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background: rgba(225,6,0,.65);
  transition: width .2s ease;
}
.cm-passmeter__hint{
  margin:.5rem 0 0;
  color:#888;
  font-size:.8rem;
  line-height:1.4;
}
.cm-passmeter[data-level="0"] .cm-passmeter__fill{ opacity:.25; }
.cm-passmeter[data-level="1"] .cm-passmeter__fill{ opacity:.35; }
.cm-passmeter[data-level="2"] .cm-passmeter__fill{ opacity:.50; }
.cm-passmeter[data-level="3"] .cm-passmeter__fill{ opacity:.65; }
.cm-passmeter[data-level="4"] .cm-passmeter__fill{ opacity:.80; }
.cm-passmeter[data-level="5"] .cm-passmeter__fill{ opacity:1; }

/* password icon */
.cm-passicon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
}
.cm-passicon svg{ display:block; width:18px; height:18px; }

.cm-input-btn i,
.cm-input-btn .cm-passicon{
  color:#bbb;
  transition:.25s ease;
}
.cm-input-btn:hover i,
.cm-input-btn:hover .cm-passicon{
  color: var(--accent);
  filter:
    drop-shadow(0 0 6px rgba(225,6,0,.55))
    drop-shadow(0 0 14px rgba(225,6,0,.35));
}

@media (max-width: 900px){
  .cm-auth-card{ padding: 1.4rem; border-radius:16px; }
}

/* ===========================
   ACCOUNT (user dashboard)
   =========================== */
.cm-account{ padding: 3.5rem 0 5rem; }
.cm-account__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items:start;
}
.cm-account__card{
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background: rgba(0,0,0,.55);
  box-shadow: 0 25px 60px rgba(0,0,0,.55);
  padding: 2rem;
}
.cm-account__h2{
  margin:0 0 .35rem;
  font-weight:400;
  font-size:1.15rem;
}
.cm-account__p{
  margin:0 0 1.25rem;
  color:#bbb;
  line-height:1.6;
}
.cm-account__actions{
  display:flex;
  flex-direction:column;
  gap:.75rem;
}
.cm-account__chip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.9rem 1rem;
  border-radius:14px;
  text-decoration:none;
  color:#ddd;
  background: rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.10);
  transition: .25s ease;
}
.cm-account__chip:hover{
  border-color: rgba(255,255,255,.18);
  color:#fff;
  transform: translateY(-1px);
}
.cm-account__chip--accent{ border-color: rgba(225,6,0,.30); }
.cm-account__chip--accent:hover{
  border-color: rgba(225,6,0,.55);
  box-shadow: 0 0 0 3px rgba(225,6,0,.12);
}
.cm-account__divider{
  margin: 1.5rem 0 1.25rem;
  height: 1px;
  background: rgba(255,255,255,.08);
}
.cm-account__list{
  list-style:none;
  padding:0;
  margin: 1rem 0 0;
  display:grid;
  gap:.85rem;
}
.cm-account__label{
  display:block;
  color:#888;
  font-size:.85rem;
  letter-spacing:.4px;
}
.cm-account__value{
  display:block;
  color:#fff;
  opacity:.92;
  margin-top:.15rem;
}
.cm-account__fineprint{
  margin: 1.1rem 0 0;
  color:#888;
  font-size:.85rem;
  line-height:1.55;
}
@media (max-width: 900px){
  .cm-account__grid{ grid-template-columns: 1fr; }
  .cm-account__card{ padding: 1.4rem; border-radius:16px; }
}

/* ===========================
   TABLE (front “glass”) + badges
   =========================== */
.cm-select{ appearance:none; }

.cm-table-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom: 1.25rem;
  flex-wrap:wrap;
}
.cm-table-wrap{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  overflow:hidden;
  background: rgba(0,0,0,.35);
}
.cm-table{
  width:100%;
  border-collapse:collapse;
  font-size:.95rem;
}
.cm-table thead th{
  text-align:left;
  padding: .95rem 1rem;
  font-weight:400;
  color:#ddd;
  background: rgba(0,0,0,.45);
  border-bottom:1px solid rgba(255,255,255,.08);
  white-space:nowrap;
}
.cm-table tbody td{
  padding: .95rem 1rem;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:middle;
}
.cm-table tbody tr:hover{ background: rgba(255,255,255,.03); }
.cm-td-muted{ color:#aaa; }
.cm-td-right{ text-align:right; }
.cm-th-right{ text-align:right; }

.cm-table-link{
  color:#bbb;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  transition:.25s ease;
}
.cm-table-link:hover{ color:#fff; }

.cm-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.35rem .7rem;
  border-radius:999px;
  font-size:.82rem;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color:#ddd;
}
.cm-badge--warn{
  border-color: rgba(225,6,0,.25);
  box-shadow: 0 0 0 3px rgba(225,6,0,.08);
}
.cm-badge--ok{
  border-color: rgba(46,204,113,.25);
  box-shadow: 0 0 0 3px rgba(46,204,113,.08);
}
.cm-badge--muted{ opacity:.75; }

/* ===========================
   REVIEWS — RATING (étoiles)
   =========================== */
.cm-rating{
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}
.cm-rating__stars{
  display:flex;
  gap:.25rem;
  color:#333;
  opacity:.9;
  transform: translateY(1px);
}
.cm-rating__stars i{
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
  transition: .2s ease;
}
.cm-rating[data-level="1"] .cm-rating__stars i:nth-child(-n+1),
.cm-rating[data-level="2"] .cm-rating__stars i:nth-child(-n+2),
.cm-rating[data-level="3"] .cm-rating__stars i:nth-child(-n+3),
.cm-rating[data-level="4"] .cm-rating__stars i:nth-child(-n+4),
.cm-rating[data-level="5"] .cm-rating__stars i:nth-child(-n+5){
  color: rgba(225,6,0,.85);
  filter:
    drop-shadow(0 0 6px rgba(225,6,0,.35))
    drop-shadow(0 0 14px rgba(225,6,0,.20));
}

/* ===========================
   ADMIN UI — (tes classes existantes)
   =========================== */

/* Page head  */
.pagehead{
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 2.25rem var(--pad) 1.25rem;

  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
}
.pagehead h1,
.pagehead h2{
  margin:0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing:.08em;
  text-transform: uppercase;
  color: var(--tx0);
}
.pagehead p{
  margin:.4rem 0 0;
  color: var(--tx1);
  max-width: 60ch;
}
.pagehead__actions{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
@media (max-width: 900px){
  .pagehead{ align-items:flex-start; flex-direction:column; }
  .pagehead__actions{ justify-content:flex-start; }
}

/* Surfaces/cards */
.surface{
  background: linear-gradient(180deg, var(--bg1), var(--bg0));
  border: 1px solid var(--bd0);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.surface--pad{ padding: 1.25rem; }
.surface--pad-lg{ padding: 1.5rem; }

.muted{ color: var(--tx1); }

.hr{
  border:0;
  height:1px;
  background: linear-gradient(90deg, transparent, var(--bd1), transparent);
  margin: 1.25rem 0;
}

/* Badges & status */
.badge{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.35rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--bd0);
  background: rgba(255,255,255,.06);
  color: var(--tx0);
  font-size:.82rem;
  letter-spacing:.04em;
  text-transform: lowercase;
}

/* Admin buttons (.btn) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.78rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  text-decoration:none;
  cursor:pointer;
  transition: var(--transition);
  box-shadow: 0 14px 35px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
.btn:hover{
  border-color: rgba(255,255,255,.20);
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}
.btn:active{ transform: translateY(0); }

.btn--ghost{
  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
.btn--ghost:hover{
  background: rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.18);
}
.btn--xs{
  padding: .55rem .75rem;
  border-radius: 14px;
  font-size: .9rem;
}
.btn--pill{
  border-radius: 999px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

/* ===========================
   PERFORMANCE PAGE (MAQUETTE) + SERVICES — ALIGN FIX
   =========================== */


:root{
  --perf-wrap: var(--max-narrow); 
}

/* wrapper commun */
.perf-wrap{
  max-width: var(--perf-wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* HERO */
.perf-hero{
  position: relative;
  min-height: clamp(320px, 52vh, 560px);
  background: var(--perf-hero-img) center/cover no-repeat;
  overflow: hidden;

  
  border-bottom: none !important;

  /* pour des fondus/overlays propres */
  isolation: isolate;
}

/* overlay */
.perf-hero__overlay{
  position:absolute; inset:0;
  z-index:1;
  background:
    radial-gradient(1100px 600px at 18% 28%, rgba(0,0,0,.08), rgba(0,0,0,.78) 55%),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.78));
}

/* fondu bas (absorbe la jonction) */
.perf-hero::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:70px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.92));
  pointer-events:none;
  z-index:4;
}

/* contenu */
.perf-hero__inner{
  position: relative;
  z-index:2;
  max-width: var(--perf-wrap);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) var(--pad);
  min-height: inherit;
  display:flex;
  align-items:flex-start;
}
.perf-hero__content{
  margin-top: clamp(1rem, 6vw, 4.25rem);
  max-width: 560px;
}
.perf-hero__kicker{
  margin: 0 0 .35rem;
  font-size: .92rem;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
}
.perf-hero__title{
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 700;
  line-height: 1.12;
  color: rgba(255,255,255,.92);
}

.perf-hero__benefits{
  margin-top: .85rem;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.perf-chip{
  display:inline-flex;
  align-items:center;
  padding:.35rem .7rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.82);
  font-size:.85rem;
  letter-spacing:.02em;
}
.perf-hero__actions{
  margin-top: 1rem;
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
}


/* INTRO — même largeur que le reste */
.perf-intro{ padding: 2rem 0 1.25rem; }
.perf-intro__inner{
  max-width: var(--perf-wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: left; 
}
.perf-intro__inner p{
  margin: .65rem 0;
  line-height: 1.9;
  color: rgba(255,255,255,.74);
  max-width: 85ch; 
}

/* PROOF */
.perf-proof{ padding: 1.25rem 0; }
.perf-proof__inner{
  max-width: var(--perf-wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.perf-proof__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.perf-proof__card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.perf-proof__card h3{
  margin: 0 0 .35rem;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.perf-proof__card p{
  margin: 0;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}
@media (max-width: 920px){
  .perf-proof__grid{ grid-template-columns: 1fr; }
}

/* SPLIT — même largeur partout + reverse sans “décalage” */
.perf-split{
  max-width: var(--perf-wrap);
  margin: 0 auto;
  padding: 1.25rem var(--pad);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.25rem;
  align-items: stretch;
}
.perf-split--reverse{
  grid-template-columns: .95fr 1.05fr;
}
.perf-split__media,
.perf-split__content{
  box-sizing: border-box; /* évite micro-décrochages optiques */
}

.perf-split__media{
  min-height: 340px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: var(--perf-img) center/cover no-repeat;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.perf-split__content{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

.perf-title{
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.15;
  color: rgba(255,255,255,.9);
}
.perf-title__accent{ color: var(--accent); }
.perf-title__brand{ color: rgba(255,255,255,.9); }
.perf-title__brand span{ color: var(--accent); }

.perf-advantages{ display: grid; gap: .9rem; }
.adv{
  padding: .85rem .9rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.adv h3{
  margin: 0 0 .35rem;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.adv p{
  margin: 0;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}

/* responsive split */
@media (max-width: 920px){
  .perf-split,
  .perf-split--reverse{ grid-template-columns: 1fr; }
  .perf-split__media{ min-height: 260px; }
}

/* CHECK */
.perf-check{
  list-style: none;
  padding: .25rem 0 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}
.perf-check li{
  position: relative;
  padding-left: 1.5rem;
  color: rgba(255,255,255,.82);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .95rem;
}
.perf-check li::before{
  content:"⊙";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* PROCESS  — aligné pareil */
.perf-process{ padding: 1.25rem 0; }
.perf-process__inner{
  max-width: var(--perf-wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.perf-process__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom: 1rem;
}
.perf-process__title{
  margin:0;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.perf-steps{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.perf-step{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.perf-step__num{
  display:inline-flex;
  font-weight:800;
  letter-spacing:.12em;
  color: var(--accent);
  margin-bottom:.35rem;
}
.perf-step__title{
  margin: 0 0 .35rem;
  text-transform: uppercase;
  letter-spacing:.06em;
  font-size:.95rem;
}
.perf-step__text{
  margin:0;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}
@media (max-width: 920px){
  .perf-steps{ grid-template-columns: 1fr; }
}

/* SERVICES — aligne pagehead + surfaces sur la même colonne */
.perf-services{ padding: 1.25rem 0 0; }


.perf-services .pagehead{
  max-width: var(--perf-wrap);
  margin: 0 auto;
}

/* surfaces alignées */
.perf-surface{
  margin: 0 auto 1.25rem;
  max-width: var(--perf-wrap);
  padding: 1.5rem;
  box-sizing: border-box;
}
.perf-cat{
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* tabs: reste centré mais la largeur est la même */
.perf-tabs-nav{
  max-width: var(--perf-wrap);
  margin: 0 auto 2rem;
  padding: 0 var(--pad);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.perf-tab-btn{
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: all .3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.perf-tab-btn:hover{
  border-color: #fff;
  color: #fff;
}
.perf-tab-btn.active{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 5px 15px rgba(225,6,0,.4);
}
.perf-tab-pane{
  display: none;
  animation: fadeIn .5s ease;
}
.perf-tab-pane.active{
  display: block;
}
@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* service grid */
.servicegrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 980px){
  .servicegrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .servicegrid{ grid-template-columns: 1fr; }
}

.servicecard{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 1rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.servicecard:hover{
  transform: translateY(-7px);
  border-color: rgba(225,6,0,.4);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(225,6,0,.1);
}
.servicecard__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
}
.servicecard__title{ margin: 0; transition: color .3s ease; }
.servicecard:hover .servicecard__title{ color: var(--accent); }

.servicecard__desc{ margin: .65rem 0 0; line-height: 1.6; flex-grow: 1; }

.price{
  white-space:nowrap;
  font-weight:700;
  color: #fff;
  border: 1px solid var(--accent);
  background: rgba(225,6,0,.15);
  padding: .3rem .55rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(225,6,0,.2);
}
.card__actions{ margin-top: auto; }

/* NOTES — même largeur + align left */
.perf-notes{ padding: 1.25rem 0 2.25rem; }
.perf-notes__inner{
  max-width: var(--perf-wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  color: rgba(255,255,255,.78);
  text-align: left;
}
.perf-notes__inner p{ max-width: 85ch; }

.perf-bullets{ margin: .9rem 0 0; padding-left: 1.1rem; }
.perf-bullets li{ margin: .55rem 0; line-height: 1.75; }
.perf-cta{ display:flex; justify-content: flex-start; margin-top: 1.25rem; }

/* ===========================
   PARALLAX PREMIUM (Hero title)
   =========================== */

.perf-hero__title[data-parallax]{
  position: relative;
  display: inline-block;
  transform: translate3d(0,0,0);
  will-change: transform, filter;
  transition: filter .25s ease;
  text-shadow:
    0 0 10px rgba(0,0,0,.35),
    0 0 18px rgba(225,6,0,.18),
    0 0 34px rgba(225,6,0,.10);
  filter: saturate(1.03) contrast(1.02);
}
.perf-hero__title[data-parallax]::after{
  content:"";
  position:absolute;
  inset:-10px -16px;
  border-radius: 999px;
  background:
    radial-gradient(60% 60% at 35% 40%,
      rgba(225,6,0,.12),
      transparent 65%);
  opacity:.7;
  filter: blur(10px);
  pointer-events:none;
  z-index:-1;
}
@media (prefers-reduced-motion: reduce){
  .perf-hero__title[data-parallax]{
    transform:none !important;
    transition:none;
    filter:none;
  }
  .perf-hero__title[data-parallax]::after{ display:none; }
}

/* performance show */
.perf-hero--mini{ min-height: clamp(240px, 36vh, 380px); }
.perf-meta{
  margin-top: .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  color: rgba(255,255,255,.72);
}
.perf-meta__item{ font-size: .95rem; letter-spacing: .02em; }
.perf-meta__sep{ opacity: .7; }
.perf-actions{ margin-top: 1rem; }
.perf-show{
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}
.perf-prose{
  color: rgba(255,255,255,.78);
  line-height: 1.85;
}


/* ===========================
   ADMIN — DASHBOARD 
   =========================== */

.cm-admin-card{
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 1200px){
  .cm-admin-card{ max-width: 1400px; }
}

.cm-admin-dash .cm-auth-card{
  max-width: none;
  margin: 0;
}

/* KPI grid */
.cm-admin-dash__kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.cm-admin-dash__kpi{ padding: 1.5rem; }
.cm-admin-dash__kpiTop{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 1rem;
}
.cm-admin-dash__kpiLabel{
  margin:0;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.78rem;
  color:#888;
}
.cm-admin-dash__kpiValue{ font-size: 2rem; font-weight: 500; }
.cm-admin-dash__kpiSub{ margin: .75rem 0 1rem; }

/* Lists grid */
.cm-admin-dash__grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  column-gap: .7rem;
  row-gap: 1.25rem;
}
.cm-admin-dash__title{
  margin:0 0 .35rem;
  font-weight:400;
  font-size:1.15rem;
}
.cm-admin-dash__subtitle{ margin:0 0 1rem; }
.cm-admin-dash__subtitle--tight{ margin-bottom: .6rem; }

.cm-admin-dash__list{ display:grid; gap: .7rem; }
.cm-admin-dash__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: .8rem .9rem;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background: rgba(0,0,0,.25);
}
.cm-admin-dash__itemBody{
  display:flex;
  flex-direction:column;
  gap:.2rem;
  min-width:0;
}
.cm-admin-dash__itemTop{
  display:flex;
  align-items:center;
  gap:.65rem;
  flex-wrap:wrap;
}
.cm-admin-dash__name{ opacity:.95; }
.cm-admin-dash__meta{
  font-size:.9rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cm-admin-dash__meta--sm{ font-size:.88rem; }

/* Variante plus compact */
.cm-admin-dash__list--tight{ gap: .45rem; }
.cm-admin-dash__item--tight{ gap: .75rem; padding: .6rem .75rem; }
.cm-admin-dash__afterTight{ height: .7rem; }

/* Responsive */
@media (max-width: 1100px){
  .cm-admin-dash__kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-admin-dash__grid{ grid-template-columns: 1fr; column-gap: 0; }
}
@media (max-width: 600px){
  .cm-admin-dash__kpis{ grid-template-columns: 1fr; }
}
/* ===========================
   PERFORMANCE — LAYOUT PREMIUM 
   =========================== */

/* Atmosphère générale sur la page Performance */
.perf-hero,
.perf-intro,
.perf-split,
.perf-services,
.perf-notes{
  position: relative;
}

/* Fond léger pour donner de la vie aux côtés */
.perf-intro::before,
.perf-services::before,
.perf-notes::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity: .95;
  background:
    radial-gradient(900px 420px at 50% 0%,
      rgba(255,255,255,.05),
      transparent 70%),
    radial-gradient(700px 520px at 10% 35%,
      rgba(225,6,0,.06),
      transparent 72%),
    radial-gradient(700px 520px at 90% 55%,
      rgba(255,255,255,.04),
      transparent 72%);
}

/* Cadre pour les sections texte (intro + notes) */
.perf-intro__inner,
.perf-notes__inner{
  position: relative;

  /* même largeur que tout le reste */
  max-width: var(--perf-wrap);
  margin: 0 auto;

  /* padding interne du cadre */
  padding: clamp(1.25rem, 2.6vw, 2rem);

  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);

  /* pour éviter des débords qui cassent l’alignement */
  box-sizing: border-box;
}


/* petite séparation douce pour aérer */
.perf-intro{ padding: 2.25rem 0 1.5rem; }
.perf-notes{ padding: 1.75rem 0 2.75rem; }

/* Typo : éviter l’impression “bloc très étroit” */
.perf-intro__inner{
  text-align: left; 
}
.perf-intro__inner p,
.perf-notes__inner p{
  max-width: 78ch;
  margin: .65rem 0;
}


/* Notes : un peu plus dense et élégant */
.perf-notes__inner p{
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

/* Repères latéraux (lignes discrètes) pour structurer les côtés */
@media (min-width: 980px){
  .perf-intro__inner::before,
  .perf-intro__inner::after,
  .perf-notes__inner::before,
  .perf-notes__inner::after{
    content:"";
    position:absolute;
    top: 10%;
    bottom: 10%;
    width: 1px;
    pointer-events:none;
    background: linear-gradient(
      to bottom,
      transparent,
      rgba(255,255,255,.10),
      transparent
    );
    opacity: .7;
  }

  /* placées “dans le vide” de chaque côté */
  .perf-intro__inner::before,
  .perf-notes__inner::before{ left: -6vw; }
  .perf-intro__inner::after,
  .perf-notes__inner::after{ right: -6vw; }

  /* micro repère rouge, très discret */
  .perf-intro__inner{
    box-shadow:
      0 18px 55px rgba(0,0,0,.35),
      0 0 0 1px rgba(225,6,0,.06);
  }
}

/* Services : donner un “bloc” à l’en-tête pour éviter le vide */
.perf-services__head{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.15));
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

/* Responsive : on allège sur mobile */
@media (max-width: 720px){
  .perf-intro__inner,
  .perf-notes__inner{
    padding: 1.1rem;
    border-radius: 18px;
  }
  .perf-intro__inner{
    text-align: left;
  }
}

/* Reduce motion : pas de changement, juste sécurité */
@media (prefers-reduced-motion: reduce){
  .perf-intro::before,
  .perf-services::before,
  .perf-notes::before{
    opacity: 1;
  }
}
/* ===========================
   HERO — CINEMATIC ARRIVAL
   =========================== */
.perf-hero{ overflow:hidden; }

/* fond cinematic */
.perf-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--perf-hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  filter: blur(10px) brightness(.75);
  opacity: 0;
  transition:
    transform 1.8s cubic-bezier(.22,.61,.36,1),
    filter 1.6s ease,
    opacity 1.2s ease;
  z-index:0;
}

/* visible */
.perf-hero.is-visible::before{
  transform: scale(1);
  filter: blur(0) brightness(1);
  opacity:1;
  animation: perf-hero-breath 9s ease-in-out infinite;
}
@keyframes perf-hero-breath{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.03); }
}

/*  SWEEP déplacé sur overlay::after (plus de conflit avec perf-hero::after fondu) */
.perf-hero.is-visible .perf-hero__overlay::after{
  content:"";
  position:absolute;
  top:-30%;
  left:-40%;
  width:60%;
  height:160%;
  transform: rotate(20deg);
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.14),
    rgba(255,255,255,0)
  );
  animation: perf-hero-sweep 900ms ease-out 350ms both;
  pointer-events:none;
  z-index:2;
}
@keyframes perf-hero-sweep{
  from { left:-40%; opacity:0; }
  30%  { opacity:1; }
  to   { left:120%; opacity:0; }
}

@media (prefers-reduced-motion: reduce){
  .perf-hero::before,
  .perf-hero.is-visible::before{
    animation:none;
    transform:none;
    filter:none;
    opacity:1;
  }
  .perf-hero.is-visible .perf-hero__overlay::after{ display:none; }
}

/* respiration lente du fond (après arrivée) */
.perf-hero.is-visible::before{
  animation: perf-hero-breath 9s ease-in-out infinite;
}

@keyframes perf-hero-breath{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.03); }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .perf-hero::before,
  .perf-hero.is-visible::before{
    animation:none;
    transform:none;
    filter:none;
    opacity:1;
  }
  .perf-hero.is-visible::after{ display:none; }
}
/* ===========================
   PERFORMANCE — UPGRADES (proof + process + hero actions + tabs)
   =========================== */

/* HERO benefits + actions */
.perf-hero__benefits{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top: 1rem;
}
.perf-chip{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.4rem .7rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.82);
  font-size:.88rem;
  letter-spacing:.02em;
}
.perf-hero__actions{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin-top: 1.1rem;
}

/* TRUST / PROOFS */
.perf-proof{ padding: 1rem 0 1.25rem; }
.perf-proof__inner{
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.perf-proof__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.perf-proof__card{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem;
}
.perf-proof__card h3{
  margin:0 0 .35rem;
  font-size: .98rem;
  letter-spacing:.06em;
  text-transform: uppercase;
}
.perf-proof__card p{
  margin:0;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}

@media (max-width: 980px){
  .perf-proof__grid{ grid-template-columns: 1fr; }
}

/* PROCESS / TIMELINE */
.perf-process{ padding: 1.25rem 0 1.75rem; }
.perf-process__inner{
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.perf-process__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap:wrap;
}
.perf-process__title{
  margin:0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing:.08em;
  text-transform: uppercase;
}
.perf-steps{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  position: relative;
}
.perf-step{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  padding: 1.2rem 1.2rem 1.1rem;
  position: relative;
  overflow:hidden;
}
.perf-step::before{
  content:"";
  position:absolute;
  inset:-40% -60%;
  background: radial-gradient(circle at 30% 40%, rgba(225,6,0,.12), transparent 60%);
  opacity:.7;
  pointer-events:none;
}
.perf-step__num{
  display:inline-block;
  font-weight:800;
  letter-spacing:.12em;
  color: rgba(255,255,255,.20);
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: .55rem;
}
.perf-step__title{
  margin:0 0 .35rem;
  text-transform: uppercase;
  letter-spacing:.06em;
  font-size: .98rem;
}
.perf-step__text{
  margin:0;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}

@media (max-width: 980px){
  .perf-steps{ grid-template-columns: 1fr; }
}

/* TABS polish */
.perf-tabs-nav{
  margin-top: 1.25rem;
}
.perf-tab-btn{
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.20);
}
.perf-tab-btn:hover{
  border-color: rgba(255,255,255,.25);
}
.perf-tab-btn.active{
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(225,6,0,.18);
}
.perf-tab-pane{
  margin-top: 1rem;
}

/* Small: hero actions full width if needed */
@media (max-width: 560px){
  .perf-hero__actions .btn{ width: 100%; justify-content: center; }
  .perf-hero__benefits{ gap: .45rem; }
}
/* ===========================
   LOOKBOOK 
   =========================== */

/* ---------------------------
   WRAP
--------------------------- */
.lb-wrap{
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 2.25rem var(--pad) 4.25rem;
  position: relative;
}

/* ambiance subtile derrière la liste */
.lb-wrap::before{
  content:"";
  position:absolute;
  inset:-80px 0 auto 0;
  height: 420px;
  pointer-events:none;
  background:
    radial-gradient(700px 380px at 15% 30%, rgba(225,6,0,.10), transparent 70%),
    radial-gradient(900px 420px at 85% 10%, rgba(255,255,255,.06), transparent 70%);
  opacity: .9;
}

/* ---------------------------
   HERO
--------------------------- */
.lb-hero{
  position: relative;
  min-height: clamp(340px, 62vh, 640px);
  background: var(--lb-hero-img) center/cover no-repeat;
  overflow: hidden;
  border-bottom: none !important;
  isolation: isolate;
}

/* brightness/contrast */
.lb-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--lb-hero-img) center/cover no-repeat;
  transform: scale(1.02);
  filter: brightness(1.18) contrast(1.08) saturate(1.10);
  opacity: 1;
  z-index:0;
}

/* overlay */
.lb-hero__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(1200px 700px at 20% 22%, rgba(0,0,0,.05), rgba(0,0,0,.55) 55%),
    linear-gradient(to right, rgba(0,0,0,.62) 0%, rgba(0,0,0,.16) 45%, rgba(0,0,0,.62) 100%);
}

/* cinematic: arrive + breath + sweep */
.lb-hero__overlay::before{
  content:"";
  position:absolute;
  inset:0;
  transform: scale(1.06);
  filter: blur(10px) brightness(.92);
  opacity: 0;
  transition:
    transform 1400ms cubic-bezier(.22,.61,.36,1),
    filter 1200ms ease,
    opacity 900ms ease;
  pointer-events:none;
}

.lb-hero.is-visible .lb-hero__overlay::before{
  opacity: 1;
  transform: scale(1);
  filter: blur(0) brightness(1);
  animation: lb-hero-breath 10s ease-in-out 1100ms infinite;
}

@keyframes lb-hero-breath{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.02); }
}

/* Sweep lumineux (1x) */
.lb-hero.is-visible .lb-hero__overlay::after{
  content:"";
  position:absolute;
  top:-30%;
  left:-45%;
  width:60%;
  height:160%;
  transform: rotate(20deg);
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.14),
    rgba(255,255,255,0)
  );
  animation: lb-hero-sweep 900ms ease-out 320ms both;
  pointer-events:none;
}

@keyframes lb-hero-sweep{
  from { left:-45%; opacity:0; }
  30%  { opacity:1; }
  to   { left:125%; opacity:0; }
}

/* grain / scanlines */
.lb-hero::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.05;
  mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,.06) 0 1px,
      rgba(0,0,0,0) 1px 3px);
  pointer-events:none;
  z-index:3;
}

/* fondu bas */
.lb-hero .lb-hero__fade{
  display:none; 
}
.lb-hero::marker{ content:none; } 

.lb-hero__inner{
  position: relative;
  z-index:5;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--cm-header-h) + 2.25rem) var(--pad) 2.25rem;

  transform: translateY(10px);
  opacity: 0;
  filter: blur(6px);
  transition:
    transform 900ms cubic-bezier(.16,1,.3,1),
    opacity 900ms ease,
    filter 900ms ease;
}

.lb-hero.is-visible .lb-hero__inner{
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

/* ---------------------------
   TITLE — NEON ARRIVAL 
--------------------------- */
.lb-hero__title{
  margin: 0;
  position: relative;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.96);

  text-shadow: none;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);

  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(.16,1,.3,1),
    filter 900ms ease;
}

/* halo */
.lb-hero__title::after{
  content:"";
  position:absolute;
  inset:-18px -26px;
  border-radius: 999px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(225,6,0,.28), transparent 70%);
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  pointer-events:none;
  transition: opacity 900ms ease;
}

/* ON */
.lb-hero.is-visible .lb-hero__title{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);

  text-shadow:
    0 0 6px rgba(225,6,0,.45),
    0 0 14px rgba(225,6,0,.35),
    0 0 28px rgba(225,6,0,.25),
    0 0 48px rgba(225,6,0,.15);

  animation: lb-neon-breath 5.2s ease-in-out 1.2s infinite;
}

.lb-hero.is-visible .lb-hero__title::after{
  opacity: .85;
}

@keyframes lb-neon-breath{
  0%,100%{
    text-shadow:
      0 0 6px rgba(225,6,0,.45),
      0 0 14px rgba(225,6,0,.35),
      0 0 28px rgba(225,6,0,.25),
      0 0 48px rgba(225,6,0,.15);
  }
  50%{
    text-shadow:
      0 0 10px rgba(225,6,0,.75),
      0 0 26px rgba(225,6,0,.55),
      0 0 48px rgba(225,6,0,.35),
      0 0 72px rgba(225,6,0,.20);
  }
}

/* ---------------------------
   PAGEHEAD
--------------------------- */
.lb-pagehead{
  padding: 0;
  margin: 0 0 1.5rem;
  max-width: none;
}

.lb-pagehead h2{
  position: relative;
  padding-left: .85rem;
}
.lb-pagehead h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.25rem;
  bottom:.25rem;
  width:2px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(225,6,0,.45);
  opacity:.9;
}

/* Empty surface */
.lb-empty{ padding: 1.5rem; }

/* ---------------------------
   LIST (index)
--------------------------- */
.lb-list{
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.lb-item{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 1.25rem;
  align-items: stretch;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow: hidden;

  position: relative;
  transform: translateZ(0);
  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    box-shadow .45s ease,
    border-color .35s ease;
}

.lb-item::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  opacity: 0;
  transition: opacity .45s ease;
  background:
    radial-gradient(500px 220px at 30% 20%, rgba(225,6,0,.10), transparent 70%),
    radial-gradient(520px 240px at 80% 70%, rgba(255,255,255,.06), transparent 70%);
}

.lb-item:hover{
  transform: translateY(-6px);
  border-color: rgba(225,6,0,.28);
  box-shadow:
    0 30px 75px rgba(0,0,0,.65),
    0 0 0 1px rgba(225,6,0,.10);
}
.lb-item:hover::after{ opacity: 1; }

/* MEDIA — inline background-image OK */
.lb-item__media{
  display:block;
  min-height: 210px;

  background-color:#111;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;

  position: relative;
  text-decoration: none;
  overflow:hidden;
  transition: filter .45s ease;
}

.lb-item:hover .lb-item__media{
  filter: saturate(1.08) contrast(1.05);
}

/* overlay + shine (UN SEUL ::after) */
.lb-item__media::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.55;
  transition: opacity .35s ease, background-position .85s cubic-bezier(.2,.8,.2,1);
  pointer-events:none;

  background:
    linear-gradient(to top, rgba(0,0,0,.58), rgba(0,0,0,.10)),
    linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 40%, rgba(255,255,255,0) 70%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, -140% 0;
}

.lb-item:hover .lb-item__media::after{
  opacity:.75;
  background-position: 0 0, 130% 0;
}

.lb-item__body{
  padding: 1.25rem 1.25rem 1.35rem;
  display:flex;
  flex-direction: column;
}

.lb-item__cat{
  margin: 0 0 .35rem;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
}

.lb-item__title{
  margin: 0;
  font-weight: 300;
  font-size: 1.35rem;
  color: rgba(255,255,255,.92);
  transition: color .25s ease, text-shadow .35s ease;
}

.lb-item__title a{ color: inherit; text-decoration: none; }
.lb-item__title a:hover{ color: #fff; }

.lb-item:hover .lb-item__title{
  color: #fff;
  text-shadow:
    0 0 10px rgba(225,6,0,.10),
    0 0 26px rgba(225,6,0,.08);
}

.lb-item__desc{
  margin: .7rem 0 0;
  color: rgba(255,255,255,.70);
  line-height: 1.65;
  max-width: 70ch;
}

.lb-item__actions{
  margin-top: 1.05rem;
  display:flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.lb-item__actions .btn{ border-radius: 999px; }

/* si tu utilises des delays via JS */
.lb-item.reveal{ transition-delay: var(--_delay, 0ms); }

/* ---------------------------
   SHOW
--------------------------- */
.lb-desc{
  padding: 1.5rem;
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}

.lb-gallery{
  margin-top: 1.25rem;
  column-count: 2;
  column-gap: 1.25rem;
}
.lb-gitem{
  break-inside: avoid;
  margin: 0 0 1.25rem;
}

.lb-glink{
  display:block;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  transform: translateZ(0);
}

.lb-glink img{
  display:block;
  width:100%;
  height:auto;
  transform: scale(1.01);
  transition: transform .45s ease, filter .45s ease;
  filter: saturate(.98) contrast(1.02);
}
.lb-glink:hover img{
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.06);
}

/* Lightbox */
.lb{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.86);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.lb[hidden]{ display:none; }

.lb__img{
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 25px 70px rgba(0,0,0,.7);
}

.lb__close{
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lb__close:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(0,0,0,.55);
}

/* ---------------------------
   RESPONSIVE
--------------------------- */
@media (max-width: 980px){
  .lb-item{ grid-template-columns: 300px 1fr; }
}
@media (max-width: 820px){
  .lb-item{ grid-template-columns: 1fr; }
  .lb-item__media{ min-height: 220px; }
  .lb-gallery{ column-count: 1; }
}

/* ---------------------------
   REVEAL — SMOOTH (override)
--------------------------- */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(.16,1,.3,1),
    filter 900ms ease;
  will-change: opacity, transform, filter;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .lb-hero__overlay::after{ display:none !important; }
  .lb-hero__overlay::before{ animation:none !important; }
  .lb-hero__inner,
  .lb-hero__title{
    opacity:1 !important;
    transform:none !important;
    filter:none !important;
    animation:none !important;
  }
}
/* ===========================
   LOOKBOOK HERO — HOME/PERF STYLE
   =========================== */

/* 1) Layer image cinematic */
.lb-hero::before{
  /* garde le même layer image */
  background: var(--lb-hero-img) center/cover no-repeat;

  /* état initial (avant .is-visible) */
  transform: scale(1.10);
  filter: blur(12px) brightness(.80) contrast(1.05) saturate(1.05);
  opacity: 0;

  transition:
    transform 1600ms cubic-bezier(.22,.61,.36,1),
    filter 1400ms ease,
    opacity 900ms ease;

  z-index: 0;
}

/* état visible */
.lb-hero.is-visible::before{
  transform: scale(1.02);
  filter: blur(0) brightness(1.18) contrast(1.08) saturate(1.10);
  opacity: 1;

  /* respiration légère (comme performance) */
  animation: lb-hero-breath-img 10s ease-in-out 1100ms infinite;
}

@keyframes lb-hero-breath-img{
  0%,100%{ transform: scale(1.02); }
  50%{ transform: scale(1.04); }
}

/* Overlay un peu moins sombre */
.lb-hero__overlay{
  background:
    radial-gradient(1200px 700px at 20% 22%, rgba(0,0,0,.04), rgba(0,0,0,.52) 55%),
    linear-gradient(to right, rgba(0,0,0,.58) 0%, rgba(0,0,0,.14) 45%, rgba(0,0,0,.58) 100%);
}

/* 3) Fondu bas + grain (dans le même ::after pour éviter les conflits) */
.lb-hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:3;

  /* 1) fondu bas scanlines */
  background-image:
    linear-gradient(to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 70%,
      rgba(0,0,0,.65) 92%,
      rgba(0,0,0,.88) 100%
    ),
    repeating-linear-gradient(0deg,
      rgba(255,255,255,.06) 0 1px,
      rgba(0,0,0,0) 1px 3px
    );

  background-size: 100% 100%, 100% 100%;
  background-position: 0 0, 0 0;
  opacity: .85; 
  mix-blend-mode: normal; 
}

/* Inner arrive soft */
.lb-hero__inner{
  transform: translateY(10px);
  opacity: 0;
  filter: blur(6px);
  transition:
    transform 900ms cubic-bezier(.16,1,.3,1),
    opacity 900ms ease,
    filter 900ms ease;
}

.lb-hero.is-visible .lb-hero__inner{
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .lb-hero::before{
    animation:none !important;
    transform:none !important;
    filter:none !important;
    opacity:1 !important;
    transition:none !important;
  }
  .lb-hero__inner{
    transform:none !important;
    opacity:1 !important;
    filter:none !important;
    transition:none !important;
  }
}
/* ===========================
   LOOKBOOK — SHOW 
   =========================== */

/* Description */
.lb-desc__text{
  margin: 0;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* HERO show : fondu bas + image plus présente (cohérent home/perf) */
.lb-hero{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* image plus lumineuse */
.lb-hero{
  filter: brightness(1.10) saturate(1.06);
}

/* fondu bas plus progressif */
.lb-hero::before{
  height: 88px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.90));
}

/* overlay moins agressif → image plus visible */
.lb-hero__overlay{
  background:
    radial-gradient(1200px 700px at 18% 22%, rgba(0,0,0,.04), rgba(0,0,0,.56) 55%),
    linear-gradient(to right, rgba(0,0,0,.62) 0%, rgba(0,0,0,.16) 45%, rgba(0,0,0,.62) 100%);
}

/* arrivée cinématique sur overlay */
.lb-hero__overlay::before{
  content:"";
  position:absolute;
  inset:0;
  transform: scale(1.06);
  filter: blur(10px) brightness(.78);
  opacity: 0;
  transition:
    transform 1400ms cubic-bezier(.22,.61,.36,1),
    filter 1200ms ease,
    opacity 900ms ease;
  pointer-events:none;
}

/* visible */
.lb-hero.is-visible .lb-hero__overlay::before{
  transform: scale(1);
  filter: blur(0) brightness(1);
  opacity: 1;
  animation: lb-hero-breath 10s ease-in-out 1100ms infinite;
}
@keyframes lb-hero-breath{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.02); }
}

/* inner arrive doux */
.lb-hero__inner{
  transform: translateY(10px);
  opacity: 0;
  filter: blur(6px);
  transition:
    transform 900ms cubic-bezier(.16,1,.3,1),
    opacity 900ms ease,
    filter 900ms ease;
}
.lb-hero.is-visible .lb-hero__inner{
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

/* Titre: “LookBook” néon */
.lb-hero__title{
  position: relative;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.lb-hero.is-visible .lb-hero__title{
  text-shadow:
    0 0 6px rgba(225,6,0,.50),
    0 0 14px rgba(225,6,0,.38),
    0 0 28px rgba(225,6,0,.24),
    0 0 50px rgba(225,6,0,.14);
}

/* ---------------------------
   Gallery (show)
--------------------------- */

/* Masonry plus propre */
.lb-gallery{
  margin-top: 1.25rem;
  column-count: 2;
  column-gap: 1.25rem;
}
@media (max-width: 820px){
  .lb-gallery{ column-count: 1; }
}

.lb-gitem{
  break-inside: avoid;
  margin: 0 0 1.25rem;
}

/* cartes images + hover */
.lb-glink{
  display:block;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  transform: translateZ(0);
  position: relative;
}

.lb-glink img{
  display:block;
  width:100%;
  height:auto;
  transform: scale(1.01);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease;
  filter: saturate(1.0) contrast(1.02);
}

.lb-glink::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
  opacity:.35;
  transition: opacity .35s ease;
  pointer-events:none;
}

.lb-glink:hover img{
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.06);
}
.lb-glink:hover::after{ opacity:.55; }

/* ---------------------------
   Lightbox (show)
--------------------------- */
.lb{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.86);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.lb[hidden]{ display:none; }

.lb__img{
  max-width: min(1200px, 92vw);
  max-height: 82vh;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 25px 70px rgba(0,0,0,.70);
}

/* close */
.lb__close{
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lb__close:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(0,0,0,.55);
}

/* nav */
.lb__nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lb__nav:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(0,0,0,.55);
}
.lb__prev{ left: 18px; }
.lb__next{ right: 18px; }

@media (max-width: 720px){
  .lb{ padding: 1rem; }
  .lb__prev, .lb__next{ display:none; } /* swipe/click outside + clavier sur desktop */
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .lb-hero__overlay::before,
  .lb-hero__inner{
    transition:none !important;
    animation:none !important;
    transform:none !important;
    filter:none !important;
    opacity:1 !important;
  }
}
/* ================================
   Admin — Services
================================ */
.cm-admin-services-head { margin-bottom: 1rem; }

.cm-admin-surface { padding: 1.25rem; }

.cm-admin-tablewrap { overflow: auto; }
.cm-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.cm-admin-table th,
.cm-admin-table td {
  padding: .85rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
}
.cm-admin-table th { text-align: left; font-weight: 700; }
.cm-admin-actions { white-space: nowrap; }

.cm-admin-inline { display: inline-block; margin-left: .5rem; }
.cm-admin-subline { margin-top: .35rem; font-size: .92rem; }

.cm-admin-form { max-width: 980px; }
.cm-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.cm-field label { display: block; margin-bottom: .35rem; font-weight: 600; }
.cm-field input,
.cm-field select,
.cm-field textarea {
  width: 100%;
}
.cm-field--full { grid-column: 1 / -1; }
.cm-field--row { display: flex; align-items: center; gap: .75rem; }

.cm-toggle { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.cm-admin-form__actions { display: flex; gap: .75rem; margin-top: 1rem; }

.is-muted { opacity: .55; }

.badge--ok { opacity: 1; }
.badge--muted { opacity: .75; }
/* Admin  */
.badge--soft{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

.cm-auth-card .cm-admin-tablewrap{
  margin-top: .25rem;
}
/* Admin table actions: buttons side-by-side */
.cm-admin-actionsRow{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: nowrap;
}

.cm-admin-actionsRow .cm-admin-inlineform{
  margin: 0;
}

.cm-admin-actionsRow .cm-btn{
  white-space: nowrap;
}
/* ============================
   Admin form — dark inputs (lookbook-like)
============================ */
.cm-admin-form .cm-label{
  display:block;
  margin-bottom:.45rem;
  font-weight:600;
}

.cm-admin-form .cm-input,
.cm-admin-form .cm-select,
.cm-admin-form .cm-textarea{
  width:100%;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cm-admin-form .cm-input,
.cm-admin-form .cm-select{
  border-radius: 999px;
  padding: .85rem 1rem;
  line-height: 1.1;
}

.cm-admin-form .cm-textarea{
  border-radius: 18px;
  padding: 1rem;
  resize: vertical;
  min-height: 160px;
}

.cm-admin-form .cm-input::placeholder,
.cm-admin-form .cm-textarea::placeholder{
  color: rgba(255,255,255,.45);
}

.cm-admin-form .cm-input:focus,
.cm-admin-form .cm-select:focus,
.cm-admin-form .cm-textarea:focus{
  outline: none;
  background: rgba(0,0,0,.45);
  border-color: rgba(225,6,0,.55);
  box-shadow:
    0 0 0 3px rgba(225,6,0,.18),
    0 0 0 1px rgba(0,0,0,.35) inset;
}

/* select: plus clean */
.cm-admin-form .cm-select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.65) 50%),
    linear-gradient(135deg, rgba(255,255,255,.65) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

/* spacing like lookbook form */
.cm-admin-form .cm-field{ margin-top: .85rem; }
.cm-admin-form .cm-field:first-child{ margin-top: 0; }

.cm-admin-form .cm-auth-actions{
  margin-top: 1rem;
  display:flex;
  align-items:center;
  gap: 1rem;
  justify-content: space-between;
}

/* toggle row nicer */
.cm-admin-form .cm-toggle{
  display:flex;
  align-items:center;
  gap:.6rem;
  cursor:pointer;
}
/* =========================================================
   Remove number spinners
========================================================= */

/* Remove number spinners everywhere (Chrome/Edge/Safari) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Firefox */
input[type="number"]{
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
/* ============================
   Admin toggle switch (Services)
============================ */
.cm-admin-toggleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(0,0,0,.25);
}

.cm-admin-toggleTitle{
  font-weight: 700;
  letter-spacing: .01em;
}

.cm-admin-toggleHint{
  margin-top: .15rem;
  font-size: .95rem;
}

/* switch */
.cm-switch{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 32px;
  flex: 0 0 auto;
}

.cm-switch input[type="checkbox"]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.cm-switch__track{
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cm-switch__track::after{
  content:"";
  position:absolute;
  top: 50%;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.90);
  box-shadow: 0 10px 25px rgba(0,0,0,.45);
  transition: transform .18s ease, background .18s ease;
}

/* checked */
.cm-switch input[type="checkbox"]:checked + .cm-switch__track{
  background: rgba(225,6,0,.22);
  border-color: rgba(225,6,0,.55);
  box-shadow: 0 0 0 3px rgba(225,6,0,.14);
}

.cm-switch input[type="checkbox"]:checked + .cm-switch__track::after{
  transform: translate(22px, -50%);
  background: #fff;
}

/* focus visible */
.cm-switch input[type="checkbox"]:focus-visible + .cm-switch__track{
  outline: none;
  box-shadow: 0 0 0 3px rgba(225,6,0,.22);
}
/* ============================
   Select
============================ */

.cm-select{
  width:100%;
  padding:.9rem 1.25rem;
  padding-right:3.2rem;
  border-radius:999px;

  background-color: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);

  font-size:.95rem;         
  font-weight:400;
  line-height:1.2;

  cursor:pointer;

  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

/* Flèche blanche clean */
.cm-select{
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 1.2rem center;
  background-size:14px;
}

/* Hover */
.cm-select:hover{
  border-color: rgba(255,255,255,.28);
  background-color: rgba(0,0,0,.55);
}

/* Focus rouge néon */
.cm-select:focus{
  outline:none;
  border-color: rgba(225,6,0,.65);
  box-shadow: 0 0 0 3px rgba(225,6,0,.18);
  background-color: rgba(0,0,0,.65);
}

/* Options dropdown */
.cm-select option{
  background:#0f0f0f;
  color:#fff;
}
/* Admin photos grid */
.cm-admin-imggrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px){
  .cm-admin-imggrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .cm-admin-imggrid{ grid-template-columns: 1fr; }
}

.cm-admin-imgcard{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(0,0,0,.25);
  overflow:hidden;
}

.cm-admin-imgcard__media{
  aspect-ratio: 16 / 10;
  background: rgba(0,0,0,.35);
}

.cm-admin-imgcard__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.cm-admin-imgcard__meta{
  padding: .85rem .9rem;
}
