/* =========================================
   Offres détail — Le Cagibi
   Styles partagés pour les 3 pages de détail
   ========================================= */

/* ── Hero compact (sous-pages services) — uniforme ── */
/* Padding-top élargi : laisse la place au lien `.detail-back` positionné absolument en haut */
.page-hero--compact {
  padding: 52px clamp(1.5rem, 5vw, 4rem) 28px;
  background: linear-gradient(160deg, #1a2038 0%, var(--navy) 55%, #0d1120 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: none;
}

.page-hero--compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% -10%, rgba(255,169,89,0.16) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero--compact .eyebrow {
  color: var(--orange);
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.page-hero--compact h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.45rem);
  color: #fff;
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.3px;
}

@media (max-width: 600px) {
  .page-hero--compact { padding-top: 44px; padding-bottom: 20px; }
  .page-hero--compact h1 { font-size: clamp(1.55rem, 7vw, 1.9rem); }
}

/* ── Hero services — bannière photo ── */
.page-hero--services {
  padding-top: 80px;
  padding-bottom: 80px;
  background-image: url('/assets/pictures/banner/service-banner.png');
  background-size: cover;
  background-position: center;
}

/* Overlay sombre par-dessus l'image pour la lisibilité */
.page-hero--services::before {
  background: rgba(10, 13, 26, 0.55);
}

@media (max-width: 600px) {
  .page-hero--services { padding-top: 56px; padding-bottom: 56px; }
}

/* ── Lien retour dans le hero ── */
.detail-back {
  position: absolute;
  top: 14px;
  left: clamp(1.25rem, 4vw, 3rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255,247,240,0.06);
  border: 1px solid rgba(255,247,240,0.14);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,247,240,0.78);
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.detail-back:hover {
  color: #fff;
  background: rgba(255,247,240,0.12);
  border-color: rgba(255,247,240,0.28);
  transform: translateX(-2px);
}
.detail-back svg { flex-shrink: 0; transition: transform 0.15s ease; }
.detail-back:hover svg { transform: translateX(-2px); }

@media (max-width: 600px) {
  .detail-back {
    top: 10px;
    left: 1rem;
    padding: 5px 10px 5px 8px;
    font-size: 12px;
  }
}

/* ── Section features — 2 colonnes ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  align-items: start;
}
.feature-col-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.15;
}
.feature-col-body {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.feature-item-icon svg { width: 18px; height: 18px; }
.feature-item-icon--blue   { background: var(--blue-light);   color: var(--blue); }
.feature-item-icon--green  { background: var(--green-light);  color: #2e7040; }
.feature-item-icon--orange { background: var(--orange-light); color: var(--brown); }

.feature-item-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.feature-item-body span {
  font-size: 13px;
  color: var(--body);
  line-height: 1.5;
}

/* ── Grille de tarifs ── */
/* Auto-fit : 3 cartes côte-à-côte sur desktop, descend à 2 puis 1 col selon la largeur */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  top: 0;
  transition: top 0.18s, box-shadow 0.18s;
}
.price-card:hover { top: -4px; box-shadow: var(--shadow-lg); }

.price-card--feat-blue {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), var(--shadow-lg);
  top: -7px;
}
.price-card--feat-blue:hover { top: -11px; }

.price-card--feat-green {
  border-color: #2e7040;
  box-shadow: 0 0 0 2px #2e7040, var(--shadow-lg);
  top: -7px;
}
.price-card--feat-green:hover { top: -11px; }

.price-card--feat-orange {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange), var(--shadow-lg);
  top: -7px;
}
.price-card--feat-orange:hover { top: -11px; }

/* Top color bar */
.price-top { height: 5px; display: block; }
.price-top--blue   { background: linear-gradient(90deg, #2a5ca6, #6b9fd6); }
.price-top--green  { background: linear-gradient(90deg, #2e7040, #78ba87); }
.price-top--orange { background: linear-gradient(90deg, #5a2528, #ffa959); }

.price-body {
  padding: 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.price-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  align-self: flex-start;
}
.price-badge--blue   { background: var(--blue-light);   color: var(--blue); }
.price-badge--green  { background: var(--green-light);  color: #2e7040; }
.price-badge--orange { background: var(--orange-light); color: var(--brown); }

.price-tier-name {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}
.price-tier-sub {
  font-size: 12.5px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 18px;
}
.price-from {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(57,64,82,0.65);
  margin-bottom: 2px;
  text-align: center;
}
.price-amount {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 4px;
  text-align: center;
}
.price-amount-unit { font-size: 16px; font-weight: 600; }
.price-detail {
  font-size: 11.5px;
  color: rgba(57,64,82,0.50);
  margin-bottom: 18px;
  text-align: center;
}
.price-sep {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-bottom: 20px;
}
.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--body);
  line-height: 1.45;
}
.price-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1.5px;
}
.price-check svg { width: 8px; height: 8px; }
.price-check--blue   { background: var(--blue-light);   color: var(--blue); }
.price-check--green  { background: var(--green-light);  color: #2e7040; }
.price-check--orange { background: var(--orange-light); color: var(--brown); }

/* Price CTA buttons */
.price-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.price-cta:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.14); }
.price-cta--blue-fill    { background: var(--blue); color: #fff; }
.price-cta--blue-out     { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.price-cta--green-fill   { background: #2e7040; color: #fff; }
.price-cta--green-out    { background: transparent; color: #2e7040; border: 1.5px solid #2e7040; }
.price-cta--orange-fill  { background: var(--orange); color: var(--navy); }
.price-cta--orange-out   { background: transparent; color: var(--brown); border: 1.5px solid var(--orange); }

/* ── Note d'information ── */
.info-note {
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--body);
  line-height: 1.6;
}
.info-note strong { font-weight: 600; color: var(--navy); }
.info-note--blue   { background: var(--blue-light);   border: 1px solid var(--border-blue); }
.info-note--green  { background: var(--green-light);  border: 1px solid var(--border-green); }
.info-note--orange { background: var(--orange-light); border: 1px solid var(--border-orange); }

/* ── Garanties (bande basse de pricing) ── */
.price-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-top: 36px;
}
.price-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
}
.price-guarantee-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  margin-top: 1px;
}
.price-guarantee-dot svg { width: 7px; height: 7px; }
.price-guarantee-dot--blue   { background: var(--blue-light);   color: var(--blue); }
.price-guarantee-dot--green  { background: var(--green-light);  color: #2e7040; }
.price-guarantee-dot--orange { background: var(--orange-light); color: var(--brown); }


/* ── Responsive ── */

/* En dessous de 3 colonnes : remplace l'élévation verticale par un léger agrandissement */
@media (max-width: 960px) {
  .price-card--feat-blue,
  .price-card--feat-green,
  .price-card--feat-orange { top: -4px; }
  .price-card--feat-blue:hover,
  .price-card--feat-green:hover,
  .price-card--feat-orange:hover { top: -8px; }
}

/* Feature row passe en 1 col sur tablette */
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .price-guarantees { gap: 8px 16px; }
  .price-guarantee { font-size: 12px; }
}

/* ── Callout IA (e-learning) ── */
.ia-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(46,112,64,0.09) 0%, rgba(120,186,135,0.05) 100%);
  border: 1px solid rgba(46,112,64,0.28);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.ia-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(46,112,64,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ia-callout-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-light);
  border: 1px solid rgba(46,112,64,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2e7040;
}

.ia-callout-icon svg { width: 20px; height: 20px; }

.ia-callout-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ia-callout-body strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.ia-callout-body span {
  font-size: 13px;
  color: var(--body);
  line-height: 1.55;
}

.ia-callout-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: var(--green-light);
  color: #2e7040;
  border-radius: var(--radius-full);
  border: 1px solid rgba(46,112,64,0.2);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .ia-callout { flex-wrap: wrap; gap: 12px; }
  .ia-callout-tag { align-self: flex-start; }
}

/* Espace entre deux paragraphes de corps consécutifs */
.feature-col-body + .feature-col-body { margin-top: 12px; }
