/* Visually hidden (accessibility utility) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; /* prevent the element from expanding */
  border: 0 !important;
}
#clientLoginForm {
  box-shadow: none !important;
  padding: 0 !important;
}
/* Responsive login zone */
.responsive-login-sections {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.responsive-login-card {
  flex: 1 1 340px;
  max-width: 420px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0.5rem auto;
}
@media (max-width: 900px) {
  .responsive-login-sections {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    max-width: 100vw;
  }
  .responsive-login-card {
    max-width: 98vw;
    min-width: 180px;
    width: 100%;
    margin: 0.5rem auto;
    align-items: center;
  }
  #inviteLoginForm,
  #clientLoginForm {
    max-width: 100vw;
    width: 100%;
    padding: 0 !important;
    align-items: center;
  }
  .login-card {
    max-width: 98vw;
    min-width: 180px;
    margin: 0 auto;
    align-items: center;
  }
}
@media (max-width: 600px) {
  .responsive-login-sections {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .responsive-login-card {
    max-width: 98vw;
    min-width: 180px;
    margin: 0.5rem auto;
  }
  .login-card {
    padding: 1.2rem 0.5rem;
    min-width: unset;
    max-width: 100vw;
  }
  .login-title {
    font-size: 1.05rem;
  }
  .login-input {
    font-size: 1rem; /* ensure ≥16px to avoid mobile zoom */
    padding: 0.6rem;
  }
  .login-btn {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
}
#inviteLoginForm {
  box-shadow: none !important;
  padding: 0 !important;
}
/* Zone de connexion élégante */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 1rem;
}
.tab-btn {
  padding: 0.5rem 1.5rem;
  background: #f3f3fa;
  border: none;
  border-radius: 0.5rem 0.5rem 0 0;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #4a4a4a;
  cursor: pointer;
  transition: background 0.2s;
}
.tab-btn.active {
  background: #6c63ff;
  color: #fff;
}
.login-sections-bg {
  padding: 2rem 0;
}
.login-sections {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.login-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px #0001;
  padding: 2rem 2rem;
  min-width: 320px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  margin: 0 auto;
}
.login-title {
  margin-bottom: 0.5rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.login-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}
.login-label {
  align-self: flex-start;
  font-weight: 500;
}
.login-input {
  width: 100%;
  padding: 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
}
/* Boutons de connexion avec le style du bouton Voir nos formules */
.login-btn {
  display: inline-block;
  background: #4e6e7a;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 0.85rem 2.2rem;
  border-radius: 14px;
  border: none;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(149, 207, 228, 0.1);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  cursor: pointer;
}
.login-btn:hover,
.login-btn:focus {
  background: #39515a;
  box-shadow: 0 6px 18px rgba(78,110,122,0.18);
  transform: translateY(-2px) scale(1.04);
  color: #fff;
  outline: none;
}
.login-message {
  color: #e63946;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
body {

  overflow-x: hidden;
  background: #fff;
}

/* Header style - image de fond sans débordement sous le menu */
body > header.header-container {
  min-height: auto !important;
  padding: 0.8rem 0 0.5rem 0 !important;
  background: url('../../Images/fleurmariage.jpg') center center / cover no-repeat !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
body > header.header-container::before {
  background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 100%) !important;
}

/* Discreet collapsible login drawer */
.login-drawer { 
  max-width: 1100px; 
  margin: 0 auto 0.5rem; 
  padding: 0 1rem; 
  display: none; /* Masqué - remplacé par la modale */
}

/* Bouton connexion dans le header */
.header-login-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  color: #4e6e7a;
  border: 1px solid #e2d6cc;
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 100;
  line-height: 1;
}

.header-login-btn svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex-shrink: 0;
}

.header-login-btn span {
  font-size: 0.8rem;
  line-height: 1;
}

.header-login-btn:hover {
  background: #4e6e7a;
  color: #fff;
  border-color: #4e6e7a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(78, 110, 122, 0.25);
}

.header-login-btn:focus-visible {
  outline: 3px solid #b48c6e;
  outline-offset: 2px;
}

/* Modale de connexion élégante */
.login-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center !important;
  align-items: center !important;
  z-index: 9999 !important;
  padding: 1rem;
}

.login-modal-overlay.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.login-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f7;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}

.login-modal-close:hover {
  background: #4e6e7a;
  color: #fff;
}

.login-modal-content {
  padding: 2rem 1.5rem 1.5rem;
}

.login-modal .tabs-container {
  margin-bottom: 1.5rem;
}

/* Responsive pour mobile */
@media (max-width: 480px) {
  .header-login-btn span {
    display: none;
  }
  
  .header-login-btn {
    padding: 0.6rem;
    border-radius: 50%;
  }
  
  .login-modal {
    max-width: 100%;
    margin: 0.5rem;
    border-radius: 16px;
  }
}

.login-drawer-toggle {
  display: inline-block;
  background: #f5f5f7;
  color: #333;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.login-drawer-toggle:hover { background: #efeff2; border-color: #dcdfe4; }
.login-drawer-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease;
}
.login-drawer.open .login-drawer-content {
  max-height: 1200px; /* large enough to contain forms */
  opacity: 1;
  padding-top: .5rem;
}
.login-drawer .tabs-container { margin-top: .5rem; }

/* Zone de connexion élégante et sobre */
.bloc-connexion {
  max-width: 370px;
  margin: 2.5rem auto 2rem auto;
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInScale 1s cubic-bezier(.4,1.4,.6,1);
  box-shadow: none !important;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}

.connexion-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.connexion-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #b48c6e;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.connexion-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.form-connexion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-label {
  font-size: 1rem;
  color: #b48c6e;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.form-input {
  padding: 0.7rem 1rem;
  border: 1px solid #e2d6cc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #b48c6e;
  box-shadow: 0 0 0 2px #e7d7c7;
}

.password-input-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #b48c6e;
  transition: color 0.2s;
  padding: 0 0.3rem;
}

.password-toggle:hover,
.password-toggle:focus {
  color: #a06e4c;
}

/* Bouton Entrer */
.btn-entrer {
  width: 100%;
  padding: 0.8rem 0;
  background: #46605e !important;
  color: #fff !important;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
  box-shadow: none !important;
}
.btn-entrer:hover,
.btn-entrer:focus {
  background: #324543 !important;
}

.arrow {
  font-size: 1.2rem;
  margin-left: 0.2rem;
}

.login-error {
  color: #c85a54;
  font-size: 0.98rem;
  margin-top: 0.5rem;
  text-align: center;
  display: none;
  animation: shake 0.4s;
}

@keyframes shake {
  0% { transform: translateX(0);}
  25% { transform: translateX(-4px);}
  50% { transform: translateX(4px);}
  75% { transform: translateX(-2px);}
  100% { transform: translateX(0);}
}

.connexion-footer {
  margin-top: 1.2rem;
  text-align: center;
}

/* Mot de passe oublié */
.connexion-link {
  color: #46605e !important;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}
.connexion-link:hover,
.connexion-link:focus {
  color: #324543 !important;
  text-decoration: none;
  background: #eaf6ff;
  border-radius: 4px;
  padding: 2px 6px;
}

.lien-formules {
  display: inline-flex;
  align-items: center;
  background: #4e6e7a;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  transition: background .2s, box-shadow .2s, transform .2s;
  letter-spacing: 0.3px;
  margin-top: 0.5rem;
  white-space: nowrap;
}
.lien-formules::after {
  content: '→';
  display: inline-block;
  margin-left: .55rem;
  transform: translateX(0);
  transition: transform .2s ease;
}

.lien-formules:hover,
.lien-formules:focus {
  background: #39515a;
  box-shadow: 0 6px 18px rgba(78,110,122,0.18);
  transform: translateY(-2px) scale(1.04);
  color: #fff;
  outline: none;
}
.lien-formules:hover::after,
.lien-formules:focus::after { transform: translateX(3px); }
.lien-formules:focus-visible { outline: 3px solid #b48c6e; outline-offset: 3px; }

/* zone vidéo accrocheur  */

/* Hero Video - Vidéo plein écran en fond */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
}

/* Supprimer l'overlay gris sur les grands écrans */
@media (min-width: 1025px) {
  .hero-video-overlay {
    background: none;
  }
}

.hero-video-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff !important;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
  color: #fff !important;
}

/* Supprimer le triangle avant le titre hero */
.hero-title::before {
  content: none !important;
  display: none !important;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  margin: 0 0 1.8rem 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
  color: #fff !important;
}

.hero-cta {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: #2b2b2b !important;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-cta:hover,
.hero-cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  background: #fff;
}

.hero-cta:focus-visible {
  outline: 3px solid #b48c6e;
  outline-offset: 3px;
}

/* ===== Hero Galerie Section - Style harmonisé avec vidéo ===== */
.hero-galerie-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #2c2c2c 0%, #4a3f35 50%, #3d3d3d 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  margin: 0;
}

.hero-galerie-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.hero-galerie-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1400px;
  width: 100%;
}

.hero-galerie-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  margin: 0 0 0.8rem 0;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

.hero-galerie-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 3rem 0;
  max-width: 650px;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Base: Grille galerie */
.galerie-grid-hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: row;
  gap: 0.8rem;
  width: 100%;
  max-width: 1300px;
  margin-bottom: 3rem;
}

/* Base: Toutes les images identiques par défaut (mobile-first) */
.galerie-item-hero {
  grid-column: span 1;
  grid-row: span 1;
}

/* Desktop uniquement (> 1024px): Grille asymétrique créative */
@media (min-width: 1025px) {
  .galerie-grid-hero {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 1.2rem;
  }

  /* Disposition asymétrique sur desktop - 12 photos */
  .galerie-item-hero:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .galerie-item-hero:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .galerie-item-hero:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .galerie-item-hero:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .galerie-item-hero:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .galerie-item-hero:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .galerie-item-hero:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .galerie-item-hero:nth-child(8) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .galerie-item-hero:nth-child(9) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .galerie-item-hero:nth-child(10) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .galerie-item-hero:nth-child(11) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .galerie-item-hero:nth-child(12) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.galerie-item-hero {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  cursor: pointer;
}

.galerie-item-hero:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.galerie-item-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-object-fit: cover; /* Safari iOS */
  object-position: center 25%; /* Centre sur le haut pour les visages */
  -webkit-object-position: center 25%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  -webkit-transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  filter: brightness(0.88) contrast(1.05);
  -webkit-filter: brightness(0.88) contrast(1.05);
  /* Fix iOS Safari image rendering */
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* Ajustement individuel pour chaque photo */
.galerie-item-hero:nth-child(1) img { object-position: center 15%; }
.galerie-item-hero:nth-child(2) img { object-position: center 25%; }
.galerie-item-hero:nth-child(3) img { object-position: center 20%; }
.galerie-item-hero:nth-child(4) img { object-position: center 30%; }
.galerie-item-hero:nth-child(5) img { object-position: center 35%; }
.galerie-item-hero:nth-child(6) img { object-position: center 25%; }
.galerie-item-hero:nth-child(7) img { object-position: center 30%; }
.galerie-item-hero:nth-child(8) img { object-position: center 25%; }
.galerie-item-hero:nth-child(9) img { object-position: center 25%; }
.galerie-item-hero:nth-child(10) img { object-position: center 25%; }
.galerie-item-hero:nth-child(11) img { object-position: center 15%; } /* Visage plus visible sur grands écrans */
.galerie-item-hero:nth-child(12) img { object-position: center 25%; }
.galerie-item-hero:nth-child(9) img { object-position: center 30%; }
.galerie-item-hero:nth-child(10) img { object-position: center 10%; }
.galerie-item-hero:nth-child(11) img { object-position: center 25%; }
.galerie-item-hero:nth-child(12) img { object-position: center 30%; }

.galerie-item-hero:hover img {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.1) saturate(1.15);
}

.galerie-item-hero figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.galerie-item-hero:nth-child(1) figcaption,
.galerie-item-hero:nth-child(8) figcaption {
  font-size: 1.6rem;
  padding: 2.5rem 2rem 2rem;
}

.galerie-item-hero:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.hero-galerie-cta {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: #2b2b2b !important;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-galerie-cta:hover,
.hero-galerie-cta:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.hero-galerie-cta:focus-visible {
  outline: 3px solid #b48c6e;
  outline-offset: 3px;
}

/* Tablette: grille 3 colonnes uniformes */
@media (max-width: 1024px) {
  .hero-galerie-section {
    min-height: auto;
    padding: 4rem 1.5rem;
  }
  .galerie-grid-hero {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: 180px !important;
    grid-auto-flow: row !important;
    gap: 0.8rem !important;
    max-width: 900px;
  }
  /* FORCE: Toutes les images identiques sur tablette */
  .galerie-item-hero,
  .galerie-item-hero:nth-child(1),
  .galerie-item-hero:nth-child(2),
  .galerie-item-hero:nth-child(3),
  .galerie-item-hero:nth-child(4),
  .galerie-item-hero:nth-child(5),
  .galerie-item-hero:nth-child(6),
  .galerie-item-hero:nth-child(7),
  .galerie-item-hero:nth-child(8),
  .galerie-item-hero:nth-child(9),
  .galerie-item-hero:nth-child(10),
  .galerie-item-hero:nth-child(11),
  .galerie-item-hero:nth-child(12) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 180px !important;
    min-height: 180px !important;
  }
  .galerie-item-hero img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  .galerie-item-hero figcaption {
    opacity: 1;
    transform: translateY(0);
    font-size: 1rem;
    padding: 1rem 0.8rem 0.8rem;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .hero-galerie-section {
    padding: 3rem 1rem;
  }
  .galerie-grid-hero {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 180px !important;
    grid-auto-flow: row !important;
    gap: 0.6rem !important;
  }
  /* FORCE: Toutes les images identiques sur mobile */
  .galerie-item-hero,
  .galerie-item-hero:nth-child(1),
  .galerie-item-hero:nth-child(2),
  .galerie-item-hero:nth-child(3),
  .galerie-item-hero:nth-child(4),
  .galerie-item-hero:nth-child(5),
  .galerie-item-hero:nth-child(6),
  .galerie-item-hero:nth-child(7),
  .galerie-item-hero:nth-child(8),
  .galerie-item-hero:nth-child(9),
  .galerie-item-hero:nth-child(10),
  .galerie-item-hero:nth-child(11),
  .galerie-item-hero:nth-child(12) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 180px !important;
    min-height: 180px !important;
  }
  .galerie-item-hero img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  .galerie-item-hero {
    border-radius: 12px;
  }
  .galerie-item-hero figcaption {
    font-size: 0.9rem;
    padding: 0.8rem 0.5rem 0.6rem;
  }
  .hero-galerie-title {
    font-size: 1.8rem;
  }
  .hero-galerie-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .hero-galerie-cta {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .galerie-grid-hero {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 150px !important;
    grid-auto-flow: row !important;
    gap: 0.5rem !important;
  }
  /* FORCE: Toutes les images identiques sur petit mobile */
  .galerie-item-hero,
  .galerie-item-hero:nth-child(1),
  .galerie-item-hero:nth-child(2),
  .galerie-item-hero:nth-child(3),
  .galerie-item-hero:nth-child(4),
  .galerie-item-hero:nth-child(5),
  .galerie-item-hero:nth-child(6),
  .galerie-item-hero:nth-child(7),
  .galerie-item-hero:nth-child(8),
  .galerie-item-hero:nth-child(9),
  .galerie-item-hero:nth-child(10),
  .galerie-item-hero:nth-child(11),
  .galerie-item-hero:nth-child(12) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 150px !important;
    min-height: 150px !important;
  }
  .galerie-item-hero img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  .hero-galerie-section {
    padding: 2rem 0.8rem;
  }
}

/* ===== FIX iOS/Safari pour la galerie ===== */
/* iPhone SE, iPhone 8 et plus petits (375px) */
@media (max-width: 375px) {
  .galerie-grid-hero {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 130px !important;
    gap: 0.4rem !important;
  }
  .galerie-item-hero,
  .galerie-item-hero:nth-child(1),
  .galerie-item-hero:nth-child(2),
  .galerie-item-hero:nth-child(3),
  .galerie-item-hero:nth-child(4),
  .galerie-item-hero:nth-child(5),
  .galerie-item-hero:nth-child(6),
  .galerie-item-hero:nth-child(7),
  .galerie-item-hero:nth-child(8),
  .galerie-item-hero:nth-child(9),
  .galerie-item-hero:nth-child(10),
  .galerie-item-hero:nth-child(11),
  .galerie-item-hero:nth-child(12) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 130px !important;
    min-height: 130px !important;
    border-radius: 8px !important;
    -webkit-transform: translateZ(0);
  }
  .galerie-item-hero img {
    height: 100% !important;
    width: 100% !important;
    min-height: 130px !important;
    -webkit-backface-visibility: hidden;
  }
  .hero-galerie-title {
    font-size: 1.5rem;
  }
  .hero-galerie-desc {
    font-size: 0.85rem;
  }
}

/* Support iOS Safari - fixes spécifiques */
@supports (-webkit-touch-callout: none) {
  /* iOS uniquement */
  .galerie-grid-hero {
    /* Fix pour le calcul de hauteur sur iOS */
    min-height: 0;
    min-width: 0;
  }
  
  .galerie-item-hero {
    /* Force le rendu correct sur Safari iOS */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  
  .galerie-item-hero img {
    /* Fix object-fit sur iOS Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* Désactive les effets hover complexes sur touch */
  .galerie-item-hero:hover {
    transform: none;
  }
  
  .galerie-item-hero:hover img {
    transform: none;
    filter: brightness(0.88) contrast(1.05);
  }
}

/* Fix pour iPhone avec notch (iPhone X et plus récents) */
@media (max-width: 430px) and (min-height: 800px) {
  .hero-galerie-section {
    padding: 2rem max(0.8rem, env(safe-area-inset-left)) 2rem max(0.8rem, env(safe-area-inset-right));
  }
  
  .galerie-grid-hero {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}

/* Bouton son */
.hero-sound-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-sound-btn:hover {
  transform: scale(1.05);
  background: #fff;
}

.hero-sound-btn svg {
  width: 22px;
  height: 22px;
  color: #333;
}

.hero-sound-btn .sound-on { display: none; }
.hero-sound-btn .sound-off { display: block; }
.hero-sound-btn[aria-pressed="true"] .sound-on { display: block; }
.hero-sound-btn[aria-pressed="true"] .sound-off { display: none; }

/* Responsive hero video */
@media (max-width: 768px) {
  .hero-video-section {
    height: 70vh;
    min-height: 400px;
  }
  
  .hero-video-content {
    padding: 1.5rem 1rem;
  }
  
  .hero-sound-btn {
    bottom: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .hero-video-section {
    height: 60vh;
    min-height: 350px;
  }
}

/* Fallback pour les anciens styles - conservés pour compatibilité */
/* Zone vidéo élégante et sobre */
.bloc-videos {
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem 1.5rem 2rem 1.5rem;
  margin: 2.5rem auto 2rem auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none !important;
}

.videos-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.video-bloc {
  position: relative;
  width: 100%;
  max-width: 880px;
  border-radius: 14px;
  overflow: hidden;
  background: #222;
  margin: 0 auto;
  transition: box-shadow 0.3s;
  box-shadow: none !important;
}

.video-bloc:hover {
  box-shadow: none !important;
}

/* Style pour la vidéo dans l'ancien bloc (non-hero) */
.bloc-videos #mainVideo,
.video-bloc video {
  width: 100%;
  display: block;
  border-radius: 14px;
  background: #000;
}

/* Style pour la vidéo hero plein écran - pas de bordures */
.hero-video-section #mainVideo,
.hero-video-bg {
  border-radius: 0 !important;
  background: transparent !important;
}

.video-aside {
  max-width: 520px;
  margin: 0 auto;
  align-self: center;
}
.video-title { font-family: 'Playfair Display', serif; margin: 0 0 .35rem; font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); }
.video-title::before {
  content: '▶︎';
  display: inline-block;
  margin-right: .45rem;
  transform: translateY(1px);
  color: #b48c6e; /* accent brand */
  opacity: 0.9;
}
.video-desc { margin: 0 0 .8rem; color: #666; line-height: 1.6; }
.video-cta { display: inline-block; margin-top: .25rem; }
/* Right-align CTA in aside on desktop */
@media (min-width: 980px) { .video-cta { float: right; } }

/* Overlay CTA on video (mobile-first) */
.video-overlay-cta {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 4;
  background: rgba(255,255,255,0.92);
  color: #2b2b2b !important;
  backdrop-filter: saturate(110%) blur(2px);
  -webkit-backdrop-filter: saturate(110%) blur(2px);
  padding: .62rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.video-overlay-cta::after {
  content: '→';
  display: inline-block;
  margin-left: .5rem;
  transform: translateX(0);
  transition: transform .2s ease;
}
.video-overlay-cta:hover,
.video-overlay-cta:focus {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  transform: translateX(-50%) translateY(-1px);
}
.video-overlay-cta:hover::after,
.video-overlay-cta:focus::after { transform: translateX(3px); }
.video-overlay-cta:focus-visible { outline: 3px solid #b48c6e; outline-offset: 2px; }
.video-bloc.playing .video-overlay-cta { display: none; }
@media (min-width: 980px) {
  .video-overlay-cta { display: none; }
}

@media (min-width: 980px) {
  /* Desktop layout: wider container and robust two-column grid */
  .bloc-videos { max-width: 1200px; padding: 2.5rem 2rem; }
  .videos-grid {
    grid-template-columns: minmax(600px, 1.4fr) minmax(340px, 1fr);
    gap: 2rem;
    align-items: start;
  }
  .video-bloc { max-width: 100%; }
  .video-aside { margin: 0; max-width: 560px; display: flex; flex-direction: column; gap: .45rem; align-self: start; }
  .video-cta { align-self: flex-end; float: none; }
}

/* Mobile & tablettes: afficher le CTA dans l'aside et masquer l'overlay sur la vidéo */
@media (max-width: 979px) {
  .video-aside .video-cta { display: inline-flex; }
  .video-overlay-cta { display: none !important; }
}

.video-progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 0 0 14px 14px;
  opacity: 0.95;
  z-index: 2;
  overflow: hidden;
  box-shadow: none !important;
}

.video-progress {
  height: 100%;
  background: #b48c6e;
  border-radius: 4px;
  width: 0%;
  transition: width 0.2s;
}

.video-play-pause-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  background: linear-gradient(90deg, #b48c6e 80%, #e7d7c7 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.2s, transform 0.2s;
  opacity: 0.92;
}

.video-play-pause-btn:hover {
  background: linear-gradient(90deg, #a07a5b 80%, #b48c6e 100%);
  transform: scale(1.08);
}
.video-play-pause-btn:focus-visible { outline: 3px solid #e7d7c7; outline-offset: 3px; }

/* Accessible focus ring for core interactive elements (videos, shop, cart, logout) */
.video-bloc video:focus-visible {
  outline: 3px solid #b48c6e;
  outline-offset: 3px;
  border-radius: 14px;
}

.btn-download:focus-visible,
.btn-shop:focus-visible {
  outline: 3px solid #b48c6e;
  outline-offset: 3px;
}

.floating-cart:focus-visible {
  outline: 4px solid #b48c6e;
  outline-offset: 4px;
}

.btn-logout:focus-visible {
  outline: 3px solid #b48c6e;
  outline-offset: 3px;
}

/* Video error message */
.video-error {
  margin-top: .6rem;
  background: #fff4f4;
  color: #8a1f1f;
  border: 1px solid #f2caca;
  border-radius: 8px;
  padding: .6rem .8rem;
  font-size: .96rem;
}
.video-error a { color: #8a1f1f; text-decoration: underline; }
.video-error a:focus-visible { outline: 2px solid #8a1f1f; outline-offset: 2px; }

/* ===== Desktop: fluid scale + réduction des tailles ===== */
:root {
  --step--1: clamp(1rem, 0.85rem + 0.25vw, 1rem); /* never below 1rem */
  --step-0: clamp(1.1rem, 0.9rem + 0.4vw, 1.25rem);
  --step-1: clamp(1.35rem, 1rem + 0.6vw, 1.6rem);
}

/* Ensure core text sizes meet accessibility */
p, li { font-size: 1rem; line-height: 1.55; }
label, input, button { font-size: 1rem; }

/* Remove desktop downscale (override if present below) */
@media (min-width: 1024px) {
  html { font-size: 100%; /* keep 16px base */ }
  .tabs-container .tab-btn { font-size: 1rem; }
  .login-input { font-size: 1rem; }
  .login-btn { font-size: 1rem; }
}

/* Correctifs spécifiques Desktop */
@media (min-width: 1024px) {
  /* Onglets + cartes login */
  .tabs-container .tab-btn { font-size: 1rem; padding: 0.5rem 0.9rem; }
  .login-sections { gap: 1rem; }
  .login-card { padding: 1.2rem 1rem; max-width: 340px; }
  .login-input { font-size: 0.95rem; padding: 0.55rem 0.6rem; }
  .login-btn { font-size: 0.98rem; padding: 0.6rem 1rem; }

  /* Vidéo */
  #mainVideo { max-height: 60vh; }
  .video-play-pause-btn { width: 48px; height: 48px; font-size: 1.6rem; }

  /* Galerie */
  .bloc-galerie { padding: 2rem 1rem; }
  .galerie-item img { border-radius: 8px; height: 160px; }

  /* Poème + footer */
  .bloc-poeme blockquote { font-size: 1.05rem; }
  #contact-section h2 { font-size: 1.1rem; }
}

/* Empêche des éléments de dépasser si du vw est utilisé */
.lien-formules { font-size: clamp(1rem, 0.8rem + 0.6vw, 1.13rem); }

/* Navigation principale et liens footer: focus visible cohérent */
#mainNav a:focus-visible,
footer a:focus-visible {
  outline: 2px solid #b48c6e;
  outline-offset: 3px;
  border-radius: 4px;
}
















/* galeire photos  */

/* Galerie photos stylée */

.bloc-galerie {
  padding: 2.5rem 1rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
    max-width: 1200px;
    margin: 2rem auto;
  border-top: 2px solid #e2d6cc; /* stronger separator */
}

/* Galerie en grille classique */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.galerie-item {
  background: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(60, 40, 20, 0.10);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* ensure inner content spans full card width */
  text-decoration: none; /* when the card is an <a> */
  color: inherit;        /* keep caption color rules */
}

.galerie-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 6px 18px rgba(60, 40, 20, 0.14);
}

/* Focus styles for keyboard navigation */
.galerie-item:focus-visible {
  outline: none;
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 0 0 3px rgba(180, 140, 110, 0.9), 0 6px 18px rgba(60, 40, 20, 0.14);
}

.galerie-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid #f0e9d8;
  transition: filter 0.3s;
  filter: brightness(0.97) contrast(1.08);
  display: block; /* remove inline gap influences */
}

.galerie-item:hover img {
    filter: brightness(1.05) contrast(1.15) saturate(1.08);
}

.galerie-item:focus-visible img {
  filter: brightness(1.05) contrast(1.15) saturate(1.08);
}

.galerie-item figcaption {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #a67c52;
    padding: 0.8rem 0;
    text-align: center;
    background: none;
    letter-spacing: 0.03em;
    font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem; /* equalize card height regardless of caption length */
}

/* Remove default margins and make figure fill card width */
.galerie-item figure { margin: 0; width: 100%; }

/* Responsive */
@media (max-width: 1024px) {
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .galerie-item img {
    height: 220px;
  }
}

@media (max-width: 700px) {
  .galerie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .galerie-item img {
    height: 150px;
  }
  .galerie-item figcaption { min-height: 2.6rem; }
}

@media (max-width: 480px) {
  .galerie-grid {
    grid-template-columns: 1fr;
  }
  .bloc-galerie {
    padding: 1.2rem 0.2rem;
    border-radius: 0;
  }
}

/* Subtle height variation on tablet/desktop for a natural rhythm (opt-in only) */
@media (min-width: 700px) {
  /* Apply only when .bloc-galerie has .rhythm */
  .bloc-galerie.rhythm .galerie-item:nth-child(6n+1) img { height: 184px; }
  .bloc-galerie.rhythm .galerie-item:nth-child(6n+3) img { height: 176px; }
}



























/* Elegance et sobriété pour la zone poème */
.bloc-poeme {
  max-width: 500px;
  margin: 2.5rem auto 2rem auto;
  padding: 1.5rem 1rem;
  background: transparent; /* remove background color */
  border-radius: 0;
  text-align: center;
}

.bloc-poeme blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: rgba(160, 122, 91, 0.82); /* lighter, softer tone */
  font-style: normal; /* remove italics for a cleaner look */
  margin: 0;
  line-height: 1.7;
  letter-spacing: 0.5px;
}







































/* Footer stylé et sobre */
#mainFooter {
  background: #f7f3ef;
  border-top: 1px solid #e2d6cc;
  padding: 2.2rem 1rem 1.2rem 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #6d5c4d;
  text-align: center;
}

/* --- Sticky footer base (short pages) --- */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > header.header-container, #mainFooter { flex: 0 0 auto; }
main#pageContent, body > main { flex: 1 0 auto; }

/* --- Mobile: move bottom-nav reserve to footer to avoid visible gap --- */
@media (max-width: 700px) {
  main#pageContent, body > main { padding-bottom: 0 !important; }
  #mainFooter { padding-bottom: calc(0.6rem + var(--bottom-nav-h, 56px)) !important; }
}

#contact-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

#contact-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #b48c6e;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

#contact-section p {
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

#contact-section ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.2rem;
  text-align: center;
}

#contact-section ul li {
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-section ul li a img {
  width: 34px;
  height: 34px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 50%;
  background: #fff;
}

#contact-section ul li a img:hover,
#contact-section ul li a img:focus {
  transform: scale(1.13);
  box-shadow: 0 4px 16px rgba(180,140,110,0.13);
}

#contact-section p:last-child {
  font-size: 0.98rem;
  color: #a07a5b;
  margin-top: 1.2rem;
}

#contact-section p a {
  color: #b48c6e;
  text-decoration: underline;
  margin: 0 0.3rem;
  transition: color 0.2s;
}

#contact-section p a:hover,
#contact-section p a:focus {
  color: #a07a5b;
}
#contact-section p a:focus-visible { outline: 2px solid #b48c6e; outline-offset: 2px; border-radius: 3px; }


.bloc-connexion,
.bloc-videos,
.bloc-galerie,
.bloc-poeme,
#mainFooter,
.video-bloc,
.galerie-item {
  box-shadow: none !important;
}

#contact-section ul li a img {
  box-shadow: none !important;
}

/* Fin */


#contact-section p {
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

#contact-section ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.2rem;
  text-align: center;
}

#contact-section ul li {
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-section ul li a img {
  width: 34px;
  height: 34px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 50%;
  background: #fff;
}

#contact-section ul li a img:hover,
#contact-section ul li a img:focus {
  transform: scale(1.13);
  box-shadow: 0 4px 16px rgba(180,140,110,0.13);
}

#contact-section p:last-child {
  font-size: 0.98rem;
  color: #a07a5b;
  margin-top: 1.2rem;
}

#contact-section p a {
  color: #b48c6e;
  text-decoration: underline;
  margin: 0 0.3rem;
  transition: color 0.2s;
}

#contact-section p a:hover,
#contact-section p a:focus {
  color: #a07a5b;
}

  /* Footer ergonomie mobile (global) */
  #mainFooter { padding-left: 0.8rem; padding-right: 0.8rem; }
  #mainFooter #contact-section h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
  #mainFooter #contact-section p { font-size: 0.95rem; margin-bottom: 0.8rem; line-height: 1.35; }
  #mainFooter #contact-section ul { gap: 1rem; flex-wrap: wrap; }
  #mainFooter #contact-section ul li a img { width: 28px; height: 28px; }
  #mainFooter > p { font-size: 0.9rem; line-height: 1.25; margin-top: 0.8rem; letter-spacing: 0; }
  #mainFooter > p a { margin: 0 0.2rem; }
  #mainFooter > p a[title*="À propos"] { white-space: nowrap; }

.bloc-connexion,
.bloc-videos,
.bloc-galerie,
.bloc-poeme,
#mainFooter,
.video-bloc,
.galerie-item {
  box-shadow: none !important;
}

#contact-section ul li a img {
  box-shadow: none !important;
}

/* Fin */

#pageContent {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    display: block;
    padding-top: 0;
    margin-top: 0;
}

/* Uniformisation couleur du texte dans le footer */
#mainFooter > p {
  color: #6d5c4d; 
}
#mainFooter > p a {
  color: inherit; 
  text-decoration: underline;
}
#mainFooter > p a:hover,
#mainFooter > p a:focus {
  color: #4f4035; 
}

/* ===== Guides & Conseils (Variante A) ===== */
.guides-section { max-width:1080px; margin:3.2rem auto 3.4rem; padding:2rem 1.4rem 2.3rem; background:#faf9f7; border:1px solid #e8e1d9; border-radius:22px; font-family:'Montserrat',sans-serif; line-height:1.55; }
.guides-header { max-width:760px; margin:0 auto 1.8rem; text-align:center; }
.guides-header h2 { font-family:'Playfair Display',serif; font-size:clamp(1.65rem,2.2vw,2.3rem); margin:0 0 .7rem; line-height:1.18; color:#a67b37; }
.guides-intro { margin:0; font-size:1.02rem; color:#3b3029; }
.guides-grid { list-style:none; margin:0 0 1.5rem; padding:0; display:grid; gap:1.25rem; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
.guide-card { background:#fff; border:1px solid #e6e0d8; border-radius:16px; overflow:hidden; position:relative; transition:box-shadow .28s, transform .28s; }
.guide-card__link { display:flex; gap:1rem; text-decoration:none; padding:1rem 1rem 1.05rem; height:100%; color:inherit; align-items:flex-start; }
.guide-card__icon { flex:0 0 auto; width:46px; height:46px; border-radius:12px; background:linear-gradient(135deg,#f5ede6,#efe5db); display:flex; align-items:center; justify-content:center; color:#a67b37; box-shadow:inset 0 0 0 1px #e0d2c2; }
.guide-card__icon svg { width:24px; height:24px; }
.guide-card__body { display:flex; flex-direction:column; gap:.35rem; }
.guide-card__title { font-size:1rem; line-height:1.25; font-weight:600; color:#2a1f18; margin:0; font-family:'Montserrat',sans-serif; }
.guide-card__desc { margin:0; font-size:.8rem; color:#5a4e45; line-height:1.35; }
.guide-card__meta { font-size:.65rem; letter-spacing:.6px; text-transform:uppercase; color:#96724a; font-weight:600; margin-top:.1rem; }
.guide-card:hover, .guide-card:focus-within { box-shadow:0 10px 28px -6px rgba(0,0,0,0.07); transform:translateY(-3px); }
.guide-card:focus-within .guide-card__link { outline:2px solid #b48c6e; outline-offset:4px; }
.guides-footer { text-align:center; }
.guides-cta { display:inline-block; font-size:.72rem; letter-spacing:.55px; text-transform:uppercase; text-decoration:none; font-weight:600; color:#a67b37; padding:.65rem 1.2rem; border:1px solid #e6e0d8; border-radius:999px; background:#fff; transition:background .25s, box-shadow .25s; }
.guides-cta:hover, .guides-cta:focus-visible { background:#fff9f2; box-shadow:0 4px 14px rgba(0,0,0,0.07); }
@media (max-width:640px){ .guide-card__link { flex-direction:row; padding:.9rem .9rem 1rem; } .guides-section { padding:1.7rem 1rem 2rem; border-radius:18px; } }
@media (prefers-reduced-motion:reduce){ .guide-card, .guide-card__link, .guides-cta { transition:none; } }
