*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family: system-ui, -apple-system, "Montserrat", sans-serif;
}

body{ background:#F3F7E9; }

.nav-wrapper{
  position: relative;
  display:flex;
  align-items:center;
  gap:16px;
  padding: 14px 18px;

  background: #EDC031;
}

/* fondu vers le fond de page */
.nav-wrapper::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height: 60px;                 /* ajuste: 40–90 */
  pointer-events:none;

  background: linear-gradient(
    to bottom,
    rgba(237,192,49,0) 30%,
    #F3F7E9 100%
  );
}


.logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 38px;
  padding: 0 14px;

  color: #fff;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;

  border: 2px solid #fff;
  border-radius: 999px;

  background: transparent;
  user-select: none;
  flex: 0 0 auto;
}


.nav-pierres{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}




/* cascade */
.pierre1{ animation-delay: 0ms; }
.pierre2{ animation-delay: 90ms; }
.pierre3{ animation-delay: 180ms; }
.pierre4{ animation-delay: 270ms; }
.pierre5{ animation-delay: 360ms; }

/* ========================= */
.nav-pierres{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center; /* ✅ pas flex-end */
}

/* =========================
   Bouton pierre (centrage parfait)
   ========================= */
.stone{
  position: relative;
  display: grid;
  place-items: center;

  padding: 1.3em 2.4em;
  height: 86px;
  min-width: 150px;

  text-decoration: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
  isolation: isolate;
}

/* pierre SVG = fond */
.stone-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;
  z-index: 0;
}

/* texte parfaitement centré */
.label{
  position: relative;
  z-index: 1;

  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  color: #2b2b2b;
  text-align: center;
}




/* pierre */
.rock-fill{ fill:#f2d2a9; }

.rock-stroke{
  fill:none;
  stroke:#3a2a1a;
  stroke-width:1.8;
  stroke-linejoin: bevel;
  stroke-linecap: butt;
}



/* hover */
.stone:hover{
  transform: translateY(-6px) rotate(0deg);
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.36));
}

/* focus */
.stone:focus-visible{
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.44));
}
.stone:focus-visible .rock-stroke{
  stroke:#ffffff;
  stroke-width:2.2;
}

/* actif */
.stone.active .rock-fill{ fill:#e9c38f; }
.stone.active .rock-stroke{ stroke:#1f160f; }

/* anim */
@keyframes drop{
  0%   { transform: translateY(-26px) rotate(-1.5deg); opacity:0; }
  65%  { transform: translateY(2px) rotate(.2deg); opacity:1; }
  82%  { transform: translateY(-3px) rotate(0deg); }
  100% { transform: translateY(0) rotate(0deg); opacity:1; }
}

/* responsive */
@media (max-width: 900px){
  .nav-wrapper{ flex-direction:column; align-items:flex-start; }
  .stone{ width:min(420px, 100%); }
}
.auth-stack{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.auth-stack .stone{
  height: 70px;           /* un peu plus compact */
  padding: 1.1em 2.0em;
}
.pierre6{ animation-delay: 450ms; }
.pierre7{ animation-delay: 540ms; }
.pierre8{ animation-delay: 630ms; }
.pierre9{ animation-delay: 720ms; }
/* conteneur dropdown */
.menu-item{
  position: relative;
}

/* sous-menu caché par défaut */


/* ouverture au survol + clavier */
.menu-item:hover .submenu,
.menu-item:focus-within .submenu{
  display: flex;
}

/* sous-menu un peu plus compact */
/* boutons du sous-menu : prennent toute la largeur */
.submenu .stone{
  width: 100%;           /* ✅ étire les pierres */
  min-width: 0;          /* évite contraintes */
  height: 62px;
  padding: 0.9em 1.8em;
}

/* option: aligner le sous-menu au centre du bouton parent */
.menu-item .submenu{
  left: 50%;
  transform: translateX(-50%);
}
/* le menu principal crée le contexte */
.nav-wrapper{
  position: relative;
  z-index: 10;
}

/* le bloc Jardins Suspendus */
.menu-item{
  position: relative;
  z-index: 20;
}


.submenu .label{
  position: relative;
  z-index: 2;
  color: #2b2b2b;     /* texte bien lisible */
  font-weight: 800;
}
.submenu .stone-svg{
  z-index: 1;
}
.menu-item{
  position: relative;
}

/* sous-menu : aligné à gauche du bouton parent */
.submenu{
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;

  /* ✅ centrage horizontal indépendant */
  translate: -50% 0;

  /* ✅ toujours présent pour animer */
  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  z-index: 100;

  /* ✅ état fermé : remonte */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);   /* 🔥 uniquement Y */
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.9,.2,1.1);
}

.menu-item:hover .submenu,
.menu-item:focus-within .submenu{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);       /* 🔥 descend */
}


.menu-item{
  position: relative;
}

/* zone invisible qui empêche la fermeture en descendant la souris */
.menu-item::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:18px;     /* "pont" entre le bouton et le sous-menu */
}
.submenu .stone + .stone{
  margin-top: -2px;   /* léger chevauchement visuel */
}
.submenu .label{
  white-space: nowrap;
  font-size: clamp(16px, 2vw, 18px);
}
/* Sous-menu Admin : police un peu plus petite */
.submenu-admin .label{
  font-size: 15px;
}

/* (option) éviter le retour à la ligne dans Admin */
.submenu-admin .label{
  white-space: nowrap;
}
/* =========================
   WIZARD GLOBAL
   ========================= */
.wizard {
  overflow: hidden;
  position: relative;
  min-height: 70vh;
}

.wizard-track {
  display: flex;
  width: 500%;
  transition: transform 0.45s ease;
}

/* =========================
   ÉTAPES
   ========================= */
.wizard-step {
  width: 100%;
  padding: 60px;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wizard-step.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   BOUTONS
   ========================= */
.actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

button {
  padding: 12px 28px;
  border: 2px solid #f2c300;
  background: transparent;
  cursor: pointer;
}
.atelier-form input,
.atelier-form select{
  padding:.4rem;
  margin-right:.3rem;
}

/* Structure générale */
.admin-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 6px;
  font-size:15px;
}

.admin-table thead th{
  text-align:left;
  padding:.6rem .8rem;
  color:#444;
  border-bottom:2px solid #ccc;
}

/* Lignes */
.admin-table tbody tr{
  background:#fff;
}

.admin-table tbody tr:hover{
  background:#f6f8fb;
}

.admin-table td{
  padding:.6rem .8rem;
  vertical-align:middle;
}

/* Colonnes */
.col-nom{ width:40%; font-weight:500; }
.col-type{ width:15%; text-transform:capitalize; color:#666; }
.col-cap{ width:15%; white-space:nowrap; color:#333; }
.col-statut{ width:15%; }
.col-action{ width:15%; }

/* Badge statut */
.badge{
  display:inline-block;
  padding:.25rem .6rem;
  border-radius:12px;
  font-size:13px;
  font-weight:500;
}

.badge-on{
  background:#e6f6e6;
  color:#1b7a1b;
}

.badge-off{
  background:#fbeaea;
  color:#a11;
}

/* Bouton action */
.btn-action{
  display:inline-block;
  padding:.3rem .7rem;
  border-radius:4px;
  font-size:14px;
  text-decoration:none;
  font-weight:500;
}

.btn-action.off{
  background:#ffecec;
  color:#a40000;
}

.btn-action.on{
  background:#e6f6e6;
  color:#0a6b0a;
}

.btn-action:hover{
  opacity:.85;
}
tr.past {
  opacity: 0.45;
}

tr.past td {
  color: #777;
}

tr.past a {
  pointer-events: none;
  text-decoration: none;
  opacity: 0.4;
}
