
/* ========== BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #111;
  background-color: #f0f0f0;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ========== BACKGROUND ========== */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../../images/marie-anne-dupuis-dans-le-mile.jpg') no-repeat center center;
  background-size: cover;
  filter: blur(5px) brightness(0.5);
  z-index: 0;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #000;
  padding: 0.5rem 1rem;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 80px;
  border-radius: 8px;
  box-shadow: 0 0 12px white;
}

.site-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: #ff4081;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

/* ========== NAVIGATION ========== */
.nav {
  display: flex;
  align-items: center;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav a:hover {
  color: #facc15;
}

/* ========== BURGER MENU ========== */
.burger {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav ul {
    display: none;
    flex-direction: column;
    background: #000;
    padding: 1rem;
    width: 100%;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 999;
    border-radius: 10px;
    gap: 1rem;
    animation: fadeIn 0.3s ease-in-out;
  }

  .nav.open ul {
    display: flex;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .header-left {
    flex-direction: column;
    align-items: center;
  }

  .site-title {
    font-size: 2.2rem;
    text-align: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== MAIN CONTENT ========== */
.main-content {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(300px, 2fr) minmax(200px, 1fr);
  gap: 2rem;
  margin: 2rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  max-width: 1600px;
  width: 100%;
}

@media screen and (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: column;
    align-items: stretch;
  }

  .infobulle::after {
    left: 20px;
  }
}

/* ========== SIDEBAR (INFOBULLES) ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.infobulle {
  background-color: #2196f3;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

.infobulle::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 30px;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  border-top-color: #2196f3;
}

/* ========== CARD ========== */
.card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 2rem;
}

.card h2, .card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.card p, .card li {
  font-size: 1rem;
}

.caption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

.intro h2 {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}

.highlight-text {
  color: #ff4081;
}

/* ========== TILE GRID ========== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tile {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tile-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.tile-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tile-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  margin: 0;
  color: #111;
}

.tile-content p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

.tile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

/* ========== BOUTON ========= */
.btn-primary {
  background-color: #ff4081;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #e91e63;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  z-index: 2;
}

/* ========== ADMIN TABLE ========== */
.admin-section-wide {
  width: 100%;
  max-width: 1200px;
  min-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-sizing: border-box;
}

.full-width-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  z-index: 2;
  position: relative;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.admin-table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.admin-table th, .admin-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}

.admin-table th {
  background-color: #f8f8f8;
}

@media (max-width: 768px) {
  .admin-section-wide {
    min-width: 100%;
    padding: 20px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .admin-table {
    font-size: 14px;
  }
}.admin-container {
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.admin-section {
  width: 100%;
  max-width: 1400px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.admin-table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.admin-table th,
.admin-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}

.admin-table th {
  background-color: #f8f8f8;
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .admin-table {
    font-size: 14px;
  }

  .admin-section {
    padding: 1rem;
  }
}
/* Cartes Leaflet à l'index */
.map-container{
  height:300px;
  margin-top:10px;
  background:#ccc; /* fallback pendant le chargement des tuiles */
}
/* Hauteur des cartes Leaflet (obligatoire) */
.map-container {
  height: 300px;
  margin-top: 10px;
  background: #ccc; /* fallback pendant le chargement des tuiles */
}
.main-content {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(300px, 2fr) minmax(200px, 1fr);
  gap: 2rem;
  margin: 2rem auto;
  padding: 0 2rem;
  max-width: 1600px;
  width: 100%;
}
/* === Index : layout + cartes (ex-inline) === */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

@media (min-width: 1024px) {
  .main-content {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
  }
  .sidebar { flex: 0 0 220px; }
  .center-on-desktop { flex: 1; max-width: 900px; }
}

.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.map-container {
  height: 300px;
  margin-top: 10px;
  background: #ccc;
  border-radius: 12px;
  overflow: hidden;
}
/* ===== Mobile overflow guards ===== */
html, body {
  overflow-x: hidden; /* coupe tout débordement horizontal */
}

/* Empêcher images/vidéos de dépasser en largeur */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* S'assurer que le conteneur ne dépasse jamais */
.main-content {
  width: 100%;
}

/* Harmoniser le responsive (1 colonne, padding réduit) */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;   /* 1 colonne */
    padding: 0 1rem;          /* moins de padding pour éviter les débords */
    gap: 20px;
  }

  .sidebar {
    width: 100%;
  }

  .center-on-desktop {
    max-width: 100%;          /* pas de largeur fixe sur mobile */
    width: 100%;
  }

  /* Forcer la grille à une seule colonne si nécessaire */
  .tile-grid {
    width: 100%;
    grid-template-columns: 1fr !important;
    margin-left: 0;
    margin-right: 0;
  }
}
/* Lien actif dans le menu = même couleur que hover */
.nav a.active { color: #facc15; }

/* Variantes visuelles pour les blocs d'accueil */
.infobulle-style-promo {
  box-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
  border: 2px solid #ff4081;
}

.infobulle-style-flash {
  border: 2px dashed #ffff00;
}

.infobulle-style-badge {
  border-radius: 999px;
  text-align: center;
}

.infobulle-style-quote {
  position: relative;
  padding-left: 18px;
}
.infobulle-style-quote::before {
  content: "“";
  position: absolute;
  left: 4px;
  top: -4px;
  font-size: 26px;
  opacity: 0.4;
}

/* Animations */
@keyframes pulse-soft {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes glow-soft {
  0%   { box-shadow: 0 0 0 rgba(255,255,255,0.0); }
  50%  { box-shadow: 0 0 12px rgba(255,255,255,0.8); }
  100% { box-shadow: 0 0 0 rgba(255,255,255,0.0); }
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.infobulle-anim-pulse {
  animation: pulse-soft 2s infinite;
}

.infobulle-anim-glow {
  animation: glow-soft 2.5s infinite;
}

.infobulle-anim-bounce {
  animation: bounce-soft 1.8s infinite;
}
/* Empêche l'avatar de s'afficher en grand tout seul en haut des pages */
.main-content > img[src^="/uploads/avatars/"] {
  display: none;
}

/* Taille standard pour les avatars (header + page profil, si besoin) */
.nav-avatar-small img,
img.avatar-round {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
/* Avatar dans le header (à droite) */
.nav-profile-li a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-avatar-small {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* L'image à l'intérieur de l'avatar */
.nav-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dlm-cart-wrapper{
  max-width:980px;
  margin:80px auto 120px;
  padding:0 16px;
}
.dlm-cart-card{
  border-radius:30px;
  background:radial-gradient(circle at 0 0,#ff4b8a 0,#020617 58%);
  box-shadow:0 24px 80px rgba(0,0,0,.75);
  padding:32px 26px 30px;
  color:#f9fafb;
}
.dlm-cart-header{
  margin-bottom:20px;
}
.dlm-cart-title{
  font-size:1.6rem;
  font-weight:700;
  margin:0 0 6px;
}
.dlm-cart-sub{
  font-size:.96rem;
  opacity:.86;
}
.dlm-cart-alert{
  margin-bottom:18px;
  border-radius:18px;
  padding:10px 14px;
  font-size:.9rem;
}
.dlm-cart-alert-success{
  background:rgba(16,185,129,.12);
  color:#bbf7d0;
  border:1px solid rgba(34,197,94,.5);
}
.dlm-cart-alert-error{
  background:rgba(248,113,113,.12);
  color:#fecaca;
  border:1px solid rgba(248,113,113,.6);
}
.dlm-cart-table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
}
.dlm-cart-table thead{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:#9ca3af;
}
.dlm-cart-table th,
.dlm-cart-table td{
  padding:10px 6px;
  border-bottom:1px solid rgba(148,163,184,.25);
}
.dlm-cart-item-info{
  display:flex;
  align-items:center;
  gap:14px;
}
.dlm-cart-thumb{
  width:60px;
  height:60px;
  border-radius:16px;
  background:#020617;
  overflow:hidden;
  flex-shrink:0;
}
.dlm-cart-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.dlm-cart-item-title{
  font-size:.95rem;
  font-weight:600;
}
.dlm-cart-item-cat{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#9ca3af;
}
.dlm-cart-qty-input{
  width:70px;
  border-radius:999px;
  border:none;
  background:#020617;
  color:#f9fafb;
  font-size:.9rem;
  padding:6px 10px;
  text-align:center;
  box-shadow:0 0 0 1px rgba(148,163,184,.5);
}
.dlm-cart-num{
  font-size:.95rem;
  text-align:right;
}
.dlm-cart-remove-btn{
  border:none;
  background:none;
  color:#fca5a5;
  font-size:.85rem;
  cursor:pointer;
}
.dlm-cart-footer{
  margin-top:22px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.dlm-cart-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.dlm-btn-ghost,
.dlm-btn-ghost-alt{
  border-radius:999px;
  padding:9px 18px;
  font-size:.85rem;
  border:none;
  cursor:pointer;
}
.dlm-btn-ghost{
  background:rgba(15,23,42,.9);
  color:#e5e7eb;
  box-shadow:0 0 0 1px rgba(148,163,184,.5);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.dlm-btn-ghost-alt{
  background:rgba(17,24,39,.9);
  color:#e5e7eb;
  box-shadow:0 0 0 1px rgba(148,163,184,.4);
}
.dlm-cart-total-box{
  text-align:right;
}
.dlm-cart-total-label{
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#9ca3af;
}
.dlm-cart-total-value{
  font-size:1.4rem;
  font-weight:800;
}
.dlm-cart-stripe-btn{
  margin-top:8px;
  border-radius:999px;
  padding:11px 22px;
  border:none;
  background:#ff4081;
  color:#fff;
  font-size:.9rem;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 18px 40px rgba(255,64,129,.7);
}
.dlm-cart-stripe-btn:hover{
  filter:brightness(1.05);
}
.dlm-cart-empty{
  margin-top:20px;
  padding:16px 18px;
  border-radius:20px;
  background:rgba(15,23,42,.9);
  font-size:.95rem;
  color:#e5e7eb;
  text-align:center;
}
.dlm-cart-empty a{
  color:#f9a8d4;
}
@media (max-width:768px){
  .dlm-cart-card{
    padding:24px 18px 24px;
  }
  .dlm-cart-footer{
    flex-direction:column;
    align-items:flex-start;
  }
  .dlm-cart-total-box{
    width:100%;
    text-align:left;
  }
}

/* ============================
   SOUS-MENUS PRINCIPAUX
   ============================ */

/* Le conteneur des sous-menus */
.site-header .nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 10px 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.6);
    z-index: 1000;
}

/* Chaque lien dans le sous-menu */
.site-header .nav-sub a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #222222;      /* texte foncé = lisible sur fond blanc */
    text-decoration: none;
    white-space: nowrap;
}

/* Icônes dans le sous-menu */
.site-header .nav-sub a i {
    font-size: 0.9rem;
    color: #ff4b8b;      /* petit rappel de ton rose/orange */
}

/* Effet hover sur les sous-menus */
.site-header .nav-sub a:hover {
    background: #ffe7f3;
    color: #e91e63;
}

/* Quand on survole un item avec sous-menu, on affiche le sous-menu */
.site-header .nav-item.has-sub:hover .nav-sub {
    display: block;
}

/* Sécurité: que le header passe devant le reste du site */
.site-header {
    position: relative;
    z-index: 2000;
}
