/* =============================================================================
   STELLA LAYOUT
   Sections · Containers · Backgrounds · Images · A11y · Responsive
   ============================================================================= */

/* --- Sections --- */
.stella-section     { padding: 6rem 0; }
.stella-section--sm { padding: 3rem 0; }
.stella-section--lg { padding: 10rem 0; }

/* --- Conteneurs --- */
.stella-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.stella-container--narrow {
  max-width: 860px;
}

/* --- Diviseur Spritz --- */
.stella-divider {
  width: 3rem;
  height: 2px;
  background-color: var(--stella-spritz);
  margin: 1.5rem 0;
  border: none;
}

/* --- Sections de couleur --- */
.stella-bg-basilic {
  background-color: var(--stella-basilic);
  color: var(--stella-creme);
}
.stella-bg-basilic h1,
.stella-bg-basilic h2,
.stella-bg-basilic h3,
.stella-bg-basilic h4 {
  color: var(--stella-creme);
}

.stella-bg-creme {
  background-color: var(--stella-creme);
  color: var(--stella-basilic);
}

.stella-bg-spritz {
  background-color: var(--stella-spritz);
  color: var(--stella-creme);
}
.stella-bg-spritz h1,
.stella-bg-spritz h2,
.stella-bg-spritz h3 {
  color: var(--stella-creme);
}

/* --- Utilitaires spacing --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mb-2 { margin-bottom: 2rem !important; }

/* --- Images --- */
.stella-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.stella-ratio-16-9 { aspect-ratio: 16 / 9; overflow: hidden; }
.stella-ratio-1-1  { aspect-ratio: 1 / 1;  overflow: hidden; }
.stella-ratio-4-3  { aspect-ratio: 4 / 3;  overflow: hidden; }

/* --- Accessibilité --- */
:focus-visible {
  outline: 2px solid var(--stella-spritz);
  outline-offset: 3px;
}

.stella-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--stella-spritz);
  color: var(--stella-creme);
  font-family: var(--stella-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s;
}
.stella-skip-link:focus { top: 1rem; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Overlay vidéo Hero */
.hero-principal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(0, 63, 45, 0.85) 0%,
      rgba(0, 63, 45, 0.30) 50%,
      rgba(0, 0, 0, 0.35) 100%
    );
  pointer-events: none;
}

.hero-principal {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.hero-principal.et_pb_section {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 100vh;
  padding-bottom: 80px !important;
}

.hero-principal .et_pb_row {
  width: 100%;
  max-width: 900px !important;
  margin: 0 !important;
  padding-left: 60px !important;
  position: relative;
  z-index: 2;
}

#motif-stella-bistrot{
      overflow: hidden !important; /* sécurité */
}

/* Sélecteur direct pour le motif de fond */
#motif-stella-bistrot .et_pb_background_pattern {
    transform: rotate(-45deg) scale(1.6) !important;
    transform-origin: center center !important;
    /* Si besoin, repositionnez légèrement pour éviter un coin vide */
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .stella-container   { padding: 0 1.5rem; }
  .stella-section     { padding: 4rem 0; }
  .stella-section--lg { padding: 6rem 0; }
}
@media (max-width: 640px) {
  .stella-container   { padding: 0 1rem; }
  .stella-section     { padding: 3rem 0; }
  .stella-section--lg { padding: 4rem 0; }
}