/* Keep the block wrapper on the same background color as the rest of the page */
section.block.block--documents > .outer-container {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #f7f8fb;
}

/* Scope all styles under .block--documents (fallback for older templates) */
.block--documents .outer-container {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #f7f8fb;
}

.block--documents .inner-container {
  width: min(1200px, 100%);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.25) 60%),
    var(--surface-color, rgba(255,255,255,0.18));
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-radius: 20px;
  padding: clamp(20px, 2.5vw, 32px);
  box-shadow:
    0 0 1px rgba(227, 37, 18, 0.1),
    0 24px 54px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: none;
}

/* Title */
.block--documents .title-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
}


/* Content container - horizontal responsive grid */
.block--documents .content-container {
  display: grid;
  /* fixed responsive columns so each card keeps the same width per row */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .block--documents .content-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .block--documents .content-container {
    grid-template-columns: 1fr;
  }
}

/* Document card - modern glass style */
.block--documents .document-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  width: 100%; /* ensure card fills its grid column uniformly */
  align-self: stretch;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.25)),
    rgba(227, 37, 18, 0.03);
  border: 1.5px solid rgba(227, 37, 18, 0.2);
  text-decoration: none;
  color: inherit;
  transition: 
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.block--documents .document-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 16px 40px rgba(227, 37, 18, 0.18),
    0 0 1px rgba(227, 37, 18, 0.2);
  border-color: rgba(227, 37, 18, 0.4);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4)),
    rgba(227, 37, 18, 0.08);
}

/* Icon */
.block--documents .doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(227, 37, 18, 0.15), rgba(227, 37, 18, 0.08));
  color: #E32512;
  font-size: 24px;
  flex-shrink: 0;
}

.block--documents .document-card:hover .doc-icon {
  background: linear-gradient(135deg, #E32512, #E32512);
  color: #fff;
  transform: scale(1.1);
}

/* Info section */
.block--documents .doc-info {
  flex: 1;
  min-width: 0;
}

.block--documents .doc-title {
  margin: 0 0 4px 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 700;
  color: #111217;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block--documents .doc-meta {
  font-size: 0.8rem;
  color: rgba(17, 18, 23, 0.6);
  margin: 0;
  white-space: nowrap;
}

/* Download action icon */
.block--documents .doc-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(227, 37, 18, 0.15);
  color: #E32512;
  font-size: 18px;
  transition: 
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
  flex-shrink: 0;
}

.block--documents .document-card:hover .doc-action {
  background: linear-gradient(135deg, #E32512, #E32512);
  color: #fff;
  transform: scale(1.15) translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .block--documents .document-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .block--documents .doc-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .block--documents .doc-title {
    font-size: 0.9rem;
  }

  .block--documents .doc-meta {
    font-size: 0.75rem;
  }

  .block--documents .doc-action {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* ==========================================================================
   BLOCK SAILS & BOATS (Complément pour facility_material.css)
   ========================================================================== */

/* Structure globale calquée sur le style document */
.block--sails .outer-container {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #f7f8fb;
}

.block--sails .inner-container {
  width: min(1200px, 100%);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.25) 60%),
    rgba(255,255,255,0.18);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-radius: 20px;
  padding: clamp(20px, 2.5vw, 32px);
  box-shadow:
    0 0 1px rgba(227, 37, 18, 0.1),
    0 24px 54px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Titre principal "Sails" */
.block--sails .title-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.block--sails .title-line {
  display: inline-block;
  width: 6px;
  height: 32px;
  background-color: #E32512;
  border-radius: 4px;
}

.block--sails h2.title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #111217;
}

/* ==========================================================================
   STRUCTURE DES BATEAUX (Le Cœur de ta demande)
   ========================================================================== */

.block--sails .boat-wrapper {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 24px);
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.block--sails .boat-wrapper:last-child {
  margin-bottom: 0;
}

/* Header du bateau avec sa ligne distinctive */
.block--sails .boat-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(227, 37, 18, 0.1); /* Soulignement rouge subtil */
}

.block--sails .boat-header h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #111217;
  letter-spacing: -0.02em;
  position: relative;
}








