/* ============================================
   PAGE GAMME — AVENTURA YACHTS
   gamme.css — chargé uniquement sur /gamme
   ============================================ */

/* ============================================
   HERO
   ============================================ */
.ag-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 0 8%;
  background: var(--av-navy-dark);
  overflow: hidden;
}

.ag-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.ag-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.ag-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 100px;
  max-width: 900px;
}

.ag-tag {
  display: inline-block;
  font-family: var(--av-font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--av-text-muted);
  margin-bottom: 20px;
}

.ag-tag--light {
  color: rgba(255,255,255,0.4);
}

.ag-hero-title {
  font-family: var(--av-font-title);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  color: var(--av-white);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}

.ag-hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin: 0 0 50px;
}

.ag-hero-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ag-hero-link {
  font-family: var(--av-font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: var(--av-transition);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.ag-hero-link:hover {
  color: var(--av-white);
  border-color: rgba(255,255,255,0.3);
}

.ag-hero-sep {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}


.ag-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.25);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.ag-hero:hover .ag-hero-bg {
  transform: scale(1.08);
}

.ag-hero-deco {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--av-font-title);
  font-size: clamp(200px, 25vw, 380px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ============================================
   VUE D'ENSEMBLE
   ============================================ */
.ag-overview {
  background: var(--av-navy-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ag-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.ag-cat-card {
  padding: 60px 50px;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s ease;
  background: transparent;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.ag-cat-card:last-child { border-right: none; }
.ag-cat-card:hover { background: rgba(255,255,255,0.02); }
.ag-cat-card--dark { background: rgba(255,255,255,0.03); }
.ag-cat-card--dark:hover { background: rgba(255,255,255,0.06); }

.ag-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ag-cat-card:hover::before {
  transform: scaleX(1);
}

.ag-cat-num {
  font-family: var(--av-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.15);
  margin-bottom: 40px;
}

.ag-cat-title {
  font-family: var(--av-font-title);
  font-size: 38px;
  font-weight: 700;
  color: var(--av-white);
  line-height: 1.05;
  margin: 0 0 20px;
  text-decoration: none !important;
  transition: letter-spacing 0.4s ease;
}

.ag-cat-card:hover .ag-cat-title {
  letter-spacing: -0.01em;
}

.ag-cat-text {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin: 0 0 32px;
  max-width: 280px;
}

.ag-cat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ag-cat-list li {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  padding-left: 14px;
  position: relative;
  transition: color 0.3s ease;
}

.ag-cat-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
}

.ag-cat-card:hover .ag-cat-list li {
  color: rgba(255,255,255,0.7);
}

.ag-cat-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.ag-cat-count {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s ease;
}

.ag-cat-card:hover .ag-cat-count {
  color: rgba(255,255,255,0.6);
}

.ag-cat-arrow {
  font-size: 16px;
  color: rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}

.ag-cat-card:hover .ag-cat-arrow {
  color: var(--av-white);
  transform: translateX(8px);
}


/* ============================================
   SECTIONS CATÉGORIES
   ============================================ */
.ag-category {
  padding: 120px 0;
  background: var(--av-navy-dark);
}

.ag-category--light {
  background: #0E1014;
}

.ag-category-header {
  padding: 0 8%;
  margin-bottom: 70px;
}

.ag-category-header-inner {
  max-width: 700px;
}

.ag-category-title {
  font-family: var(--av-font-title);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  color: var(--av-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 20px;
}

.ag-category-title--dark { color: var(--av-white) !important; }

.ag-category-text {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin: 0;
  max-width: 560px;
}

.ag-category-text--dark { color: rgba(255,255,255,0.5) !important; }

/* ============================================
   GRILLE MODÈLES
   ============================================ */
.ag-models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.ag-models-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   CARTE MODÈLE
   ============================================ */
.ag-model-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  text-decoration: none;
  display: block;
  background: var(--av-navy);
}

.ag-model-card--large {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

.ag-model-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ag-model-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
  transition: transform 1.2s ease, filter 0.6s ease;
}

.ag-model-card:hover .ag-model-img img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

.ag-model-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,20,23,0.95) 0%, rgba(18,20,23,0.2) 60%, transparent 100%);
}

.ag-model-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  top: auto;
  padding: 40px;
  z-index: 2;
  transition: transform 0.4s ease;
}

.ag-model-card:hover .ag-model-info {
  transform: translateY(-8px);
}

.ag-model-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ag-model-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
}

.ag-model-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--av-navy-dark);
  background: var(--av-white);
  padding: 3px 10px;
  border-radius: 2px;
}

.ag-model-badge--dark {
  color: var(--av-white);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
}

.ag-model-name {
  font-family: var(--av-font-title);
  font-size: 30px;
  font-weight: 700;
  color: var(--av-white);
  margin: 0 0 8px;
  line-height: 1.1;
}

.ag-model-specs {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}

.ag-model-cta {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  display: inline-block;
}

.ag-model-card:hover .ag-model-cta {
  color: var(--av-white);
  letter-spacing: 0.2em;
}

.ag-model-card--light .ag-model-overlay {
  background: linear-gradient(to top, rgba(18,20,23,0.9) 0%, rgba(18,20,23,0.15) 60%, transparent 100%);
}

/* ============================================
   CORRECTIONS GRILLES SPÉCIFIQUES
   ============================================ */

/* Voile : 3 cartes en ligne égale */
#voile .ag-models-grid {
  grid-template-columns: repeat(3, 1fr);
}

#voile .ag-model-card:last-child {
  grid-column: span 1;
  aspect-ratio: 4/3 !important;
}

/* Moteur : 56 MY en bannière */
#moteur .ag-model-card--large {
  grid-column: span 3 !important;
  aspect-ratio: 32/9 !important;
}

/* ============================================
   CTA FINAL
   ============================================ */
.ag-cta {
  padding: 140px 8%;
  background: var(--av-navy-dark);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.ag-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.ag-cta-title {
  font-family: var(--av-font-title);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  color: var(--av-white);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
}

.ag-cta-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin: 0 0 50px;
}

.ag-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ag-btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--av-font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--av-navy-dark);
  background: var(--av-white);
  text-decoration: none;
  padding: 18px 40px;
  border-radius: 2px;
  border: 2px solid var(--av-white);
  transition: all 0.4s ease;
}

.ag-btn-primary:hover {
  background: transparent;
  color: var(--av-white);
  transform: translateY(-3px);
}

.ag-btn-outline {
  display: inline-flex;
  align-items: center;
  font-family: var(--av-font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--av-white);
  background: transparent;
  text-decoration: none;
  padding: 18px 40px;
  border-radius: 2px;
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.4s ease;
}

.ag-btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE — TABLETTE
   ============================================ */
@media (max-width: 1024px) {
  .ag-overview-grid {
    grid-template-columns: 1fr;
  }
  .ag-cat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: auto;
  }
  .ag-models-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  #moteur .ag-model-card--large {
    grid-column: span 2 !important;
    aspect-ratio: 16/7 !important;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 767px) {
  .ag-hero {
    padding: 0 24px;
  }
  .ag-hero-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ag-hero-sep {
    display: none;
  }
  .ag-category-header {
    padding: 0 24px;
    margin-bottom: 0;
  }
  .ag-models-grid,
  .ag-models-grid--3 {
    grid-template-columns: 1fr;
  }
  #voile .ag-model-card:last-child {
    grid-column: span 1 !important;;
    aspect-ratio: 4/3 !important;;
  }
  #moteur .ag-model-card--large {
    grid-column: span 1 !important;
    aspect-ratio: 4/3 !important;
  }
  .ag-model-info {
    padding: 24px;
  }
  .ag-model-name {
    font-size: 22px;
  }
  .ag-cta {
    padding: 80px 24px;
  }
  .ag-cta-buttons {
    flex-direction: column;
  }
  .ag-btn-primary,
  .ag-btn-outline {
    width: 100%;
    justify-content: center;
  }
  .ag-cat-card {
    padding: 40px 24px;
  }
    .ag-category {
    padding: 60px 0 !important;
  }

  .ag-model-card {
    aspect-ratio: 4/3 !important;
    min-height: 260px !important;
  }

  .ag-model-img img {
    filter: brightness(0.75) !important;
  }

  .ag-category-header {
    margin-bottom: 30px !important;
  }

  .ag-hero-content {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
  }
  
    #voile .ag-models-grid,
    #explorer .ag-models-grid,
    #moteur .ag-models-grid,
    #daycharter .ag-models-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Force hauteur uniforme sur toutes les cartes */
.ag-model-card {
  aspect-ratio: 4/3 !important;
  height: auto !important;
}

/* Empêche l'image de déborder */
.ag-model-img {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden;
}

.ag-model-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Aligne les infos en bas — évite le chevauchement */
.ag-model-info {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
}

/* Grille voile — 2 colonnes de même hauteur */
.ag-models-grid {
  align-items: stretch;
}

/* Grille moteur — 3 colonnes de même hauteur */
.ag-models-grid--3 {
  align-items: stretch;
}


/* Overview — 4 catégories */
.ag-overview-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .ag-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ag-overview-grid {
    grid-template-columns: 1fr;
  }
}