html {
  scroll-behavior: smooth;
}

/* ==========================================
   PALETTE & STYLES ALSACIENS (SANS IMAGE)
   ========================================== */
:root {
  --bg-dark: #121316;
  --red-alsace: #8b1e2b;
  --gold-alsace: #d4af37;
  --text-light: #f8f8fa;
  --text-muted: #a1a1a8;
  --font-title: 'Comfortaa', cursive; /* Police très arrondie et droite */
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

/* Header d'accueil sur tout l'écran */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Fond dégradé chaleureux rouge/noir */
  background: radial-gradient(circle at center, #241417 0%, var(--bg-dark) 85%);
}

/* Motif géométrique rappelant la charpente / colombage en filigrane */
.colombage-frame {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(139, 30, 43, 0.4);
  pointer-events: none;
}

.colombage-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(212, 175, 55, 0.25);
}

/* Carte centrale */
.hero-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 35px 25px;
  border-radius: 4px;
  background: rgba(18, 19, 22, 0.85);
  border-left: 3px solid var(--red-alsace);
  border-right: 3px solid var(--red-alsace);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  max-width: 90%;
  width: 360px;
}

/* Petit badge haut */
.alsace-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-alsace);
  margin-bottom: 12px;
  font-weight: 600;
}

.name {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #f5d061 0%, #d4af37 50%, #aa7c11 100%);
  background-clip: text;
  color: transparent;
}

.name span {
  display: block;
  font-weight: 700;
  font-style: normal;
  background: linear-gradient(135deg, #ffffff 0%, #e6ca65 60%, #d4af37 100%);
  background-clip: text;
  color: transparent;
}

/* Séparateur avec icône bretzel */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.divider .line {
  height: 1px;
  width: 40px;
  background: var(--red-alsace);
}

.divider .pretzel-icon {
  font-size: 1rem;
  filter: sepia(1) saturate(5) hue-rotate(5deg); /* Teinte dorée */
}

/* Sous-titre */
.subtitle {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 300;
}

/* Flèche défilement */
.scroll-indicator {
  position: absolute;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator .arrow {
  font-size: 1rem;
  color: var(--gold-alsace);
}

.scroll-indicator {
  text-decoration: none; /* Enlève le soulignement du lien */
  cursor: pointer;
}

/* ==========================================
   BOUTON BRETZEL & MENU MOBILE
   ========================================== */

/* Bouton fixe en haut à droite */
.bretzel-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(18, 19, 22, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-alsace);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(5px);
}

.bretzel-btn.open {
  transform: rotate(180deg);
  border-color: var(--red-alsace);
  color: var(--red-alsace);
}

/* Menu plein écran */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(18, 19, 22, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-alsace);
}

/* ==========================================
   CIGOGNE EN COULEUR EN HAUT DE LA CARTE
   ========================================== */
.stork-decor {
  position: relative;
  z-index: 2;
  margin-bottom: -20px; /* Chevauche doucement le haut du cadre */
  opacity: 0.95;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  animation: floatStork 4s ease-in-out infinite alternate;
}

@keyframes floatStork {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* ==========================================
   SECTIONS GALERIE & BLOG (HARMONISÉES)
   ========================================== */
.page-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 50px 20px 40px;
  background: radial-gradient(circle at center, #241417 0%, var(--bg-dark) 85%);
}

/* En-têtes compacts de Galerie et Blog */
.section-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 15px 25px;
  border-radius: 4px;
  background: rgba(18, 19, 22, 0.85);
  border-left: 3px solid var(--red-alsace);
  border-right: 3px solid var(--red-alsace);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  max-width: 90%;
  width: 360px;
  margin-bottom: 30px !important; /* Espacement identique sous LES DEUX titres */
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f5d061 0%, #d4af37 50%, #aa7c11 100%);
  background-clip: text;
  color: transparent;
}

@media (min-width: 768px) {
  .section-card {
    width: 550px;
  }
  .section-title {
    font-size: 2.2rem;
  }
}

/* ==========================================
   GRILLE GALERIE
   ========================================== */
.gallery-container {
  width: 100%;
  max-width: 1100px;
  z-index: 2;
  padding: 0 10px 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: #18191d;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Visionneuse Plein Écran (Lightbox) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999; /* Superposition au-dessus de tout */
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Affichage et ouverture de la Lightbox */
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* Le bouton bretzel s'efface automatiquement quand la lightbox ou le blog est ouvert */
.lightbox.active ~ #bretzelBtn,
.blog-modal.active ~ #bretzelBtn {
  display: none !important;
}

/* ==========================================
   SECTION BLOG DYNAMIQUE
   ========================================== */
.blog-container {
  width: 100%;
  max-width: 850px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0 15px 40px;
}

.article-card {
  background: rgba(18, 19, 22, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 3px solid var(--red-alsace);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 640px) {
  .article-card.has-image {
    flex-direction: row;
    align-items: center;
  }
}

.article-image-wrapper {
  flex-shrink: 0;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  flex-grow: 1;
}

.article-date {
  font-size: 0.75rem;
  color: var(--gold-alsace);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.article-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   SECTION À PROPOS & CONTACT PREVIEW
   ========================================== */
.about-container {
  width: 100%;
  max-width: 700px;
  z-index: 2;
  padding: 0 15px 40px;
}

.about-card {
  background: rgba(18, 19, 22, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 3px solid var(--gold-alsace);
  border-right: 3px solid var(--gold-alsace);
  border-radius: 4px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.about-subtitle {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.about-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-badge-rights {
  font-size: 0.78rem;
  color: rgba(248, 248, 250, 0.7);
  background: rgba(139, 30, 43, 0.25);
  border: 1px solid rgba(139, 30, 43, 0.5);
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 25px;
  display: inline-block;
}

.about-badge-rights span {
  color: var(--gold-alsace);
  font-weight: 600;
}

/* Bouton Contact préparatoire */
.btn-contact-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--gold-alsace);
  color: var(--gold-alsace);
  font-family: var(--font-title);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-contact-preview:hover {
  background: var(--gold-alsace);
  color: #121316;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-contact-preview .btn-arrow {
  transition: transform 0.3s ease;
}

.btn-contact-preview:hover .btn-arrow {
  transform: translateX(5px);
}

/* Bouton "Voir plus" du Blog */
.btn-load-more {
  display: block;
  margin: 20px auto 40px;
  padding: 12px 28px;
  background: rgba(18, 19, 22, 0.85);
  border: 1px solid var(--gold-alsace);
  color: var(--gold-alsace);
  font-family: var(--font-title);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.btn-load-more:hover {
  background: var(--gold-alsace);
  color: #121316;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

/* ==========================================
   BOUTONS DE NAVIGATION (DÉCOUVRIR & REMONTER)
   ========================================== */

/* 1. Bouton "Retour en haut" (Taille et structure 100% identiques à "Découvrir") */
.scroll-indicator.scroll-top {
  position: relative;
  bottom: auto;
  margin-top: 30px;
  z-index: 2;
}

/* 2. Style et animation au survol identiques pour les deux boutons */
.scroll-indicator {
  transition: color 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--gold-alsace);
}

.scroll-indicator:hover .arrow {
  color: var(--gold-alsace);
}

/* Flèche du haut qui monte au survol */
.scroll-indicator.scroll-top:hover {
  transform: translateY(-4px);
}

/* Flèche du bas qui descend au survol */
.scroll-indicator:not(.scroll-top):hover {
  transform: translateY(4px);
}

/* ==========================================
   FORMULAIRE DE CONTACT ALSACIEN
   ========================================== */
.contact-container {
  width: 100%;
  max-width: 600px;
  z-index: 2;
  padding: 0 15px 30px;
}

.contact-form {
  background: rgba(18, 19, 22, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 3px solid var(--red-alsace);
  border-right: 3px solid var(--red-alsace);
  border-radius: 4px;
  padding: 30px 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* Cigogne volante d'en-tête du formulaire */
.stork-carrier-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: -10px;
}

.stork-carrier {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.contact-intro strong {
  color: var(--gold-alsace);
}

/* Champs de saisie */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--gold-alsace);
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  padding: 12px 15px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-alsace);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Bouton d'envoi */
.btn-send-stork {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(139, 30, 43, 0.8);
  border: 1px solid var(--gold-alsace);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-send-stork:hover {
  background: var(--gold-alsace);
  color: #121316;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Animation lors de la soumission */
.contact-form.sending .stork-carrier {
  transform: translate(300px, -150px) scale(0.5); /* La cigogne s'envole en haut à droite */
}

.form-status {
  font-size: 0.85rem;
  text-align: center;
  color: var(--gold-alsace);
  min-height: 20px;
}

/* Effet d'apparition uniquement sur les grandes sections et cartes principales */
/* La carte d'accueil est visible immédiatement (fixe le problème LCP) */
.hero-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Les autres sections s'animent au scroll */
.section-card,
.gallery-item,
.article-card,
.contact-container,
.about-card,
.scroll-indicator {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-card.active,
.section-card.active,
.gallery-item.active,
.article-card.active,
.contact-container.active,
.about-card.active,
.scroll-indicator.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   ICÔNES RÉSEAUX SOCIAUX
   ========================================== */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  z-index: 2;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(18, 19, 22, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-alsace);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.social-icon:hover {
  background: var(--gold-alsace);
  color: var(--bg-dark);
  border-color: var(--gold-alsace);
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* ==========================================
   FRISE ALSACIENNE NUAGE (CENTRAGE EXACT)
   ========================================== */
.alsace-cloud-frise {
  z-index: 5;
  width: 380px;
  max-width: 90vw;
  margin: 0 auto 15px auto; /* Centrage automatique parfait dans le flex container */
  display: flex;
  justify-content: center;

  /* Tamisage progressif doux sur les bords */
  -webkit-mask-image: radial-gradient(ellipse at center, black 58%, transparent 92%);
  mask-image: radial-gradient(ellipse at center, black 58%, transparent 92%);

  transition: transform 0.4s ease, filter 0.4s ease;
}

.alsace-cloud-frise svg {
  width: 100%;
  height: auto;
  display: block;
}

.alsace-cloud-frise:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.4));
}

/* ==========================================
   LIENS MENU AVEC BRETZEL DISCRET AU SURVOL
   ========================================== */
.nav-link {
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Petit bretzel caché par défaut */
.nav-link::before {
  content: '🥨';
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-15px) scale(0.7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: sepia(1) saturate(5) hue-rotate(5deg);
}

/* APRÈS (Bretzel visible UNIQUEMENT au survol) */
.nav-link:hover::before {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.nav-link:hover {
  transform: translateX(5px);
  color: var(--gold-alsace);
}

/* ==========================================
   CADRE DE NAVIGATION (STYLE PRESTIGE)
   ========================================== */
.nav-box {
  position: relative;
  width: 90%;
  max-width: 400px;
  padding: 50px 30px;
  background: rgba(18, 19, 22, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8),
              inset 0 0 30px rgba(139, 30, 43, 0.2);
  text-align: center;
}

/* Coins filigranes dorés */
.nav-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold-alsace);
}

.nav-corner.top-left {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 6px;
}

.nav-corner.top-right {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 6px;
}

.nav-corner.bottom-left {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 6px;
}

.nav-corner.bottom-right {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 6px;
}

/* ==========================================
   CENTRAGE PARFAIT DES LIENS DANS LA BOÎTE
   ========================================== */
.nav-box .nav-links {
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.nav-box .nav-link {
  /* Annule les décalages d'alignement pour un centrage strict */
  justify-content: center;
  width: auto;
}

/* ==========================================
   BRETZEL DÉCORATIF EN-TÊTE & LIENS NETTOYÉS
   ========================================== */

/* Style du bretzel doré en haut du cadre */
.nav-header-pretzel {
  font-size: 2.2rem;
  margin-bottom: 25px;
  filter: sepia(1) saturate(5) hue-rotate(5deg);
  animation: floatPretzel 3s ease-in-out infinite alternate;
}

@keyframes floatPretzel {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* Nettoyage des liens pour un centrage textuel strict */
.nav-box .nav-link::before {
  display: none !important; /* Retire le bretzel inline des liens */
}

.nav-box .nav-link {
  justify-content: center;
  padding: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-box .nav-link:hover,
.nav-box .nav-link.active {
  color: var(--gold-alsace);
  transform: translateY(-2px); /* Effet d'élévation très élégant au survol */
}

/* ==========================================
   ANIMATION DE FLOTTESTEMENT DE LA CIGOGNE
   ========================================== */
.stork-decor {
  animation: floatStork 4s ease-in-out infinite alternate;
}

@keyframes floatStork {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px); /* Légère montée de 8px */
  }
}

/* ==========================================
   PHOTO DE PORTRAIT (STYLE ALSACIEN)
   ========================================== */
.bio-card-layout {
  display: flex;
  gap: 30px;
  align-items: center;
}

.bio-photo-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 280px;
  padding: 8px;
  background: #8b1e2b; /* Rouge Alsacien */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 2px solid #d4af37; /* Bordure or */
}

.bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Coins dorés élégants style colombage */
.bio-photo-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #f5d061;
}
.bio-photo-corner.top-left { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.bio-photo-corner.top-right { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.bio-photo-corner.bottom-left { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.bio-photo-corner.bottom-right { bottom: -4px; right: -4px; border-left: none; border-top: none; }

/* Adaptation smartphones et tablettes */
@media (max-width: 768px) {
  .bio-card-layout {
    flex-direction: column;
    text-align: center;
  }
  
  .bio-photo-wrapper {
    width: 180px;
    height: 230px;
    margin: 0 auto 10px auto;
  }
}

/* ==========================================
   BIOGRAPHIE ET TEXTE ÉTIRÉ
   ========================================== */
.bio-card-layout {
  display: flex;
  gap: 35px;
  align-items: flex-start;
}

.bio-text-full {
  flex: 1;
  text-align: justify;
  hyphens: auto;
  line-height: 1.7;
  margin: 0;
}

.bio-photo-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 280px;
  padding: 8px;
  background: #8b1e2b;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 2px solid #d4af37;
}

.bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.bio-photo-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #f5d061;
}
.bio-photo-corner.top-left { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.bio-photo-corner.top-right { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.bio-photo-corner.bottom-left { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.bio-photo-corner.bottom-right { bottom: -4px; right: -4px; border-left: none; border-top: none; }

@media (max-width: 768px) {
  .bio-card-layout {
    flex-direction: column;
  }
  
  .bio-photo-wrapper {
    width: 180px;
    height: 230px;
    margin: 0 auto 15px auto;
  }

  .bio-text-full {
    text-align: justify;
  }
}

/* Cartes de la galerie : bordure dorée tamisée uniquement */
.gallery-grid > * {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.3); /* Liseré doré subtil */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Effet au survol */
.gallery-grid > *:hover {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}

/* L'image remplit 100% du conteneur */
.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}

/* Masquer tout texte ou légende sous l'image */
.gallery-grid figcaption,
.gallery-grid .caption,
.gallery-grid p,
.gallery-grid span:not(.pretzel-icon) {
  display: none !important;
}

/* Lien autour de l'image agrandie */
.lightbox-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

/* Grande image dans la lightbox */
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   MODALE BLOG (FENÊTRE DE LECTURE)
   ========================================== */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none; /* Masqué par défaut */
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  box-sizing: border-box;
}

.blog-modal.active {
  display: flex; /* S'affiche au centre au clic */
}

.blog-modal-content {
  position: relative;
  background: #141416;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.blog-modal-date {
  color: #d4af37;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.blog-modal-title {
  color: #ffffff;
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  padding-right: 2rem; /* Laisse de la place pour le bretzel */
}

/* Image dans la modale : clic pour fermer */
.blog-modal-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.blog-modal-text {
  color: #e0e0e0;
  line-height: 1.8;
  font-size: 1rem;
  white-space: pre-line;
}

/* Survol des cartes du blog */
.article-card {
  cursor: pointer;
}

/* Le bouton menu s'efface quand une modale ou la lightbox est ouverte */
.lightbox.active ~ #bretzelBtn,
.blog-modal.active ~ #bretzelBtn {
  display: none !important;
}

/* S'assure que le menu plein écran s'ouvre aussi par-dessus si on clique dessus */
.nav-overlay {
  z-index: 19999 !important;
}

/* Assure un rendu immédiat du Hero pour le test PageSpeed / LCP */
.hero-card {
  content-visibility: visible;
  contain-intrinsic-size: 300px;
}

.hero-card .name {
  font-display: swap;
}