/* =========================================================
   ECOLE SUPERIEURE SAINTE FELICITE (ESSF) — Design tokens
   Palette: institutional navy + brass gold + brick red accent
   Type: Fraunces (display) / Public Sans (body) / IBM Plex Mono (data)
   Signature motif: the "relevé" (academic ledger/transcript) —
   perforated edges, stamp-style pills, receipt-like tables.
   ========================================================= */

:root{
  --ink:        #14213D;   /* deep navy - primary */
  --ink-2:      #1F3155;   /* lighter navy for gradients */
  --gold:       #C9973B;   /* brass gold accent */
  --gold-deep:  #A67722;
  --brick:      #A3312A;   /* brick red accent (from brand banner) */
  --paper:      #F4F3EE;   /* warm paper background, cooler than cream */
  --paper-2:    #FFFFFF;
  --line:       #DEDACD;
  --text:       #232323;
  --text-soft:  #5B5B58;
  --success:    #3E6B4F;

  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(20,33,61,.06);
  --shadow-md: 0 10px 30px rgba(20,33,61,.10);
  --shadow-lg: 0 20px 60px rgba(20,33,61,.16);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
}

h1,h2,h3,h4, .display-font{
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

a{ color: var(--ink); }
a:hover{ color: var(--brick); }

::selection{ background: var(--gold); color: var(--ink); }

.eyebrow{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  color: var(--brick);
  font-weight: 600;
}

.section{ padding: 5.5rem 0; }
.section-tight{ padding: 3.5rem 0; }
.bg-ink{ background: var(--ink); color: #EDEBE2; }
.bg-ink h1, .bg-ink h2, .bg-ink h3{ color: #fff; }
.bg-paper2{ background: var(--paper-2); }

.text-brick{ color: var(--brick) !important; }
.text-gold{ color: var(--gold) !important; }

/* ---------- Utility top bar ---------- */
.topbar{
  background: var(--ink);
  color: #C9CADA;
  font-size: .82rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar a{ color: #E7E3D3; text-decoration:none; }
.topbar a:hover{ color: var(--gold); }
.topbar .sep{ opacity:.35; margin: 0 .55rem; }

/* ---------- Navbar ---------- */
.navbar-essf{
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
  padding: .55rem 0;
}
.navbar-essf .navbar-brand{
  display:flex; align-items:center; gap:.65rem;
}
.navbar-essf .navbar-brand img{ height: 46px; width:auto; }
.brand-text{ line-height:1.05; }
.brand-text .brand-name{
  font-family: var(--font-display);
  font-weight:600; font-size:1.05rem; color: var(--ink);
  display:block;
}
.brand-text .brand-tag{
  font-family: var(--font-mono);
  font-size:.62rem; letter-spacing:.09em; text-transform:uppercase; color: var(--text-soft);
}
.navbar-essf .nav-link{
  font-weight: 600; font-size:.92rem; color: var(--ink);
  padding: .5rem .9rem !important;
  position:relative;
}
.navbar-essf .nav-link::after{
  content:""; position:absolute; left:.9rem; right:.9rem; bottom:.25rem; height:2px;
  background: var(--cta-green, #2E7D32); transform: scaleX(0); transform-origin:left; transition: transform .25s ease;
}
.navbar-essf .nav-link:hover::after, .navbar-essf .nav-link.active::after{ transform: scaleX(1); }
.navbar-essf .nav-link:hover {
  color: var(--cta-green, #2E7D32);
}
.btn-essf-cta{
  background: var(--ink-2); color:#fff; border:none; font-weight:700;
  padding:.55rem 1.2rem; border-radius: 999px; font-size:.9rem;
  box-shadow: 0 6px 16px rgba(163,49,42,.28);
}
/* old cta hover removed - see green block */ 
.btn-essf-outline{
  border: 1.5px solid var(--ink); color: var(--ink); font-weight:700;
  padding:.5rem 1.15rem; border-radius:999px; font-size:.9rem; background:transparent;
}
.btn-essf-outline:hover{ background: var(--ink); color:#fff; }

/* ---------- Hero Carousel ---------- */
.hero-carousel{ position:relative; }
.hero-carousel .carousel-item{ height: 78vh; min-height:480px; }
.hero-carousel .carousel-item img{
  width:100%; height:100%; object-fit:cover; filter: saturate(1.02);
}
.hero-carousel .slide-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,33,61,.55) 0%, rgba(20,33,61,.35) 40%, rgba(20,33,61,.82) 100%);
}
.hero-carousel .carousel-caption-custom{
  position:absolute; left:0; right:0; bottom:0; padding: 3.2rem 0 3.6rem;
  text-align:left;
}
.hero-carousel .carousel-caption-custom .eyebrow{ color: var(--gold); }
.hero-carousel h1{
  color:#fff; font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight:600; max-width: 820px;
}
.hero-carousel p.lead-text{ color:#E7E5DA; max-width:600px; font-size:1.12rem; }
.hero-carousel .carousel-indicators [data-bs-target]{
  width:34px; height:4px; border-radius:2px; background: rgba(255,255,255,.45); border:none;
}
.hero-carousel .carousel-indicators .active{ background: var(--gold); }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next{ width:6%; opacity:.7;}

.accred-ribbon{
  position:absolute; top:1.6rem; right:1.6rem; z-index:3;
  background: rgba(244,243,238,.95); color: var(--ink);
  border-radius: 999px; padding:.5rem 1rem; font-family: var(--font-mono);
  font-size:.72rem; letter-spacing:.04em; box-shadow: var(--shadow-md);
  display:flex; align-items:center; gap:.4rem;
}
.accred-ribbon i{ color: var(--brick); color: #b91810 !important;}

/* ---------- Stats strip ---------- */
.stats-strip{ background: var(--ink); }
.stat-item{ text-align:center; padding: 2rem 1rem; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child{ border-right:none; }
.stat-item .num{ font-family: var(--font-display); font-size:2.4rem; color: var(--gold); font-weight:600; }
.stat-item .lbl{ font-size:.82rem; color:#C9CADA; text-transform:uppercase; letter-spacing:.08em; }

/* ---------- Director word (signature ledger motif) ---------- */
.director-card{
  background: var(--paper-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position:relative;
  padding: 3rem;
  border-left: 6px solid var(--gold);
}
.director-seal{
  width:96px; height:96px; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, #1F3155, var(--ink) 70%);
  display:flex; align-items:center; justify-content:center;
  color: var(--gold); font-family: var(--font-display); font-size:2rem; font-weight:700;
  border: 3px solid var(--gold);
  flex: 0 0 auto;
}
.director-quote{
  font-family: var(--font-display); font-size:1.35rem; color: var(--ink);
  font-style: italic; line-height:1.55;
}
.director-signoff{ font-family: var(--font-mono); font-size:.82rem; color: var(--text-soft); letter-spacing:.03em;}

/* ---------- Ledger / perforated motif ---------- */
.ledger-edge{
  position:relative;
}
.ledger-edge::before{
  content:""; position:absolute; top:0; bottom:0; left:0; width:14px;
  background-image: radial-gradient(circle, var(--paper) 3px, transparent 3.5px);
  background-size: 14px 18px; background-position: 3px 0;
}

/* ---------- Feature grid (pourquoi choisir) ---------- */
.feature-card{
  background: var(--paper-2); border-radius: var(--radius); padding: 1.7rem;
  height:100%; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  border-top: 3px solid var(--gold);
}
.feature-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .icon-wrap{
  width:44px; height:44px; border-radius:10px;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-size:1.15rem; margin-bottom:1rem;
  transition: border-color .2s, color .2s, background .2s;
}
.feature-card:hover .icon-wrap{
  border-color: var(--gold);
  color: var(--gold-deep);
  background: rgba(201,151,59,.08);
}

/* ---------- Filieres tabs & stamp pills ---------- */
.sector-tabs .nav-link{
  font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.05em; font-size:.85rem;
  color: var(--ink); border: 1px solid var(--line); border-radius:999px !important; padding:.55rem 1.4rem;
  margin-right:.6rem; background:#fff;
}
.sector-tabs .nav-link.active{ background: var(--ink) !important; color:#fff !important; border-color: var(--ink); }

.filiere-card{
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); overflow:hidden;
}
.filiere-card .filiere-head{
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  padding: 1.1rem 1.3rem; cursor:pointer;
}
.filiere-card .filiere-head:hover{ background: #FBFAF6; }
.filiere-title{ font-family: var(--font-display); font-weight:600; font-size:1.08rem; color: var(--ink); margin:0; }
.filiere-code{ font-family: var(--font-mono); font-size:.72rem; color: var(--text-soft); }
.bac-pill{
  display:inline-block; font-family: var(--font-mono); font-size:.72rem; font-weight:600;
  background: var(--paper); border: 1px solid var(--gold); color: var(--gold-deep);
  border-radius:5px; padding:.15rem .5rem; margin:.15rem .25rem .15rem 0;
}
.filiere-body{ padding: 0 1.3rem 1.3rem; }
.filiere-body ul{ margin-bottom:0; padding-left: 1.1rem; }
.filiere-body li{ margin-bottom:.35rem; color: var(--text-soft); }
.chev{ transition: transform .25s ease; color: var(--brick); }
.filiere-head[aria-expanded="true"] .chev{ transform: rotate(180deg); }

/* ---------- Pricing / receipt tables ---------- */
.receipt-card{
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 2rem; position:relative; border: 1px dashed var(--line);
}
.receipt-card .receipt-title{
  font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.08em; font-size:.85rem;
  color: var(--brick); border-bottom: 1px dashed var(--line); padding-bottom:.8rem; margin-bottom:1rem;
}
.receipt-table{ width:100%; font-size:.92rem; }
.receipt-table th{ font-family: var(--font-mono); font-size:.72rem; text-transform:uppercase; color: var(--text-soft); font-weight:600; padding:.5rem 0;}
.receipt-table td{ color: var(--text); padding:.5rem 0; border-top: 1px dotted var(--line); }
.receipt-table .amount{ font-family: var(--font-mono); font-weight:600; text-align:right; }
.receipt-note{
  background: var(--paper); border-left:3px solid var(--gold); padding:.9rem 1rem; font-size:.85rem; color: var(--text-soft); margin-top:1.2rem; border-radius: 0 6px 6px 0;
}

/* ---------- Admission checklist / steps ---------- */
.step-item{ display:flex; gap:1rem; margin-bottom:1.6rem; }
.step-num{
  flex:0 0 auto; width:42px; height:42px; border-radius:50%; background: var(--ink); color: var(--gold);
  font-family: var(--font-mono); font-weight:700; display:flex; align-items:center; justify-content:center;
}
.check-list li{
  list-style:none; display:flex; gap:.7rem; align-items:flex-start; margin-bottom:.85rem; color: var(--text-soft);
}
.check-list i{ color: var(--success); margin-top:.2rem; }

/* ---------- Gallery ---------- */
.gallery-item{
  position:relative; overflow:hidden; border-radius: 8px; cursor:pointer; aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-item .g-overlay{
  position:absolute; inset:0; background: linear-gradient(180deg, transparent 50%, rgba(20,33,61,.75));
  display:flex; align-items:flex-end; padding:.8rem; opacity:0; transition: opacity .3s ease;
}
.gallery-item:hover .g-overlay{ opacity:1; }
.g-overlay span{ color:#fff; font-size:.78rem; font-family: var(--font-mono); }

/* ---------- Testimonials ---------- */
.testi-card{
  background:#fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm);
  height:100%; border-bottom: 3px solid var(--brick);
}
.testi-avatar{
  width:52px; height:52px; border-radius:50%; background: var(--paper); border:2px solid var(--gold);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700; color: var(--ink);
}
.testi-quote{ color: var(--text-soft); font-style:italic; }

/* ---------- FAQ ---------- */
.accordion-essf .accordion-button{
  font-family: var(--font-display); font-weight:600; color: var(--ink); background:#fff;
}
.accordion-essf .accordion-button:not(.collapsed){ color: var(--success); background: #fff; box-shadow:none; }
.accordion-essf .accordion-button:focus{ box-shadow:none; border-color: var(--line); }
.accordion-essf .accordion-item{ border: 1px solid var(--line); border-radius:8px !important; margin-bottom:.8rem; overflow:hidden; }

/* ---------- Contact ---------- */
.contact-info-item{ display:flex; gap:1rem; align-items:flex-start; margin-bottom:1.4rem; }
.contact-info-item .icon-wrap{
  width:42px; height:42px; border-radius:50%;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  display:flex; align-items:center; justify-content:center; flex:0 0 auto;
  font-size:1.05rem;
}
.map-frame{ border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-md); border:6px solid #fff; }
.form-control-essf{
  border-radius: 8px; border: 1px solid var(--line); padding:.7rem .9rem;
}
.form-control-essf:focus{ border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(201,151,59,.2); }

/* ---------- Footer ---------- */
.footer-essf{ background: var(--ink); color:#C9CADA; padding-top: 3.5rem; }
.footer-essf h6{ color:#fff; font-family: var(--font-mono); text-transform:uppercase; font-size:.78rem; letter-spacing:.08em; margin-bottom:1.1rem; }
.footer-essf a{ color:#C9CADA; text-decoration:none; }
.footer-essf a:hover{ color: var(--gold); }
.footer-essf .social-icon{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center; color:#fff;
}
.footer-essf .social-icon:hover{ background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.1); margin-top:2.5rem; padding: 1.2rem 0; font-size:.82rem; }

/* ---------- Back to top ---------- */
.back-to-top{
  position:fixed; bottom:1.6rem; right:1.6rem; width:46px; height:46px; border-radius:50%;
  background: var(--success); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-md); opacity:0; visibility:hidden; transition: opacity .3s ease, transform .3s ease; z-index: 1000;
}
.back-to-top.show{ opacity:1; visibility:visible; }
.back-to-top:hover{ transform: translateY(-3px); color:#fff; }

/* ---------- Section heading helper ---------- */
.section-head{ max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

@media (max-width: 767px){
  .hero-carousel .carousel-item{ height: 92vh; }
  .stat-item{ border-right:none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .director-card{ padding: 1.6rem; }
  .accred-ribbon{ right: .8rem; top: .8rem; font-size:.62rem; padding:.4rem .7rem; }
}

/* ---------- Multipage additions ---------- */
.page-hero {
  background: var(--paper-2);
  color: var(--ink);
  padding: 3.8rem 0 3rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { color: var(--brick); }
.page-hero h1 { color: var(--ink); font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p { color: var(--text-soft); max-width: 560px; }
.page-hero .breadcrumb-essf { color: var(--text-soft); }
.page-hero .breadcrumb-essf a { color: var(--brick); }

.navbar-essf .nav-link.active {
  color: var(--cta-green, #2E7D32);
}
.navbar-essf .nav-link.active::after {
  transform: scaleX(1);
  background: var(--cta-green, #2E7D32);
}

.footer-essf .brand-name { color: #fff; }

/* Program cards on formations page */
.program-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.program-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.program-card h5 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: .4rem;
}
.program-card .code {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-soft);
}

/* Breadcrumb */
.breadcrumb-essf {
  font-size: .85rem;
  color: #C9CADA;
}
.breadcrumb-essf a { color: var(--gold); text-decoration: none; }
.breadcrumb-essf a:hover { text-decoration: underline; }

/* CTA banner */
.cta-banner {
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #C9CADA; }


/* ---------- Improved Footer (Vercel-inspired) ---------- */
.footer-essf {
  background: var(--ink);
  color: #C9CADA;
  padding: 4rem 0 0;
}
.footer-essf .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 991px) {
  .footer-essf .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .footer-essf .footer-grid { grid-template-columns: 1fr; }
}
.footer-essf .footer-brand p {
  color: #9EA3BE;
  font-size: .9rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-essf h6 {
  color: #fff;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .1em;
  margin-bottom: 1.2rem;
}
.footer-essf ul { list-style: none; padding: 0; margin: 0; }
.footer-essf ul li { margin-bottom: .55rem; }
.footer-essf a {
  color: #C9CADA;
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s;
}
.footer-essf a:hover { color: var(--gold); }
.footer-essf .footer-contact-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-bottom: .7rem;
  font-size: .9rem;
  color: #C9CADA;
}
.footer-essf .footer-contact-item i { color: var(--gold); margin-top: .15rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem;
  padding: 1.3rem 0;
  font-size: .82rem;
  color: #7C81A0;
}

/* ---------- Program cards (Vercel style) ---------- */
.prog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.prog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.prog-card .prog-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-soft);
  letter-spacing: .04em;
  margin-bottom: .7rem;
}
.prog-card h5 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.prog-card p {
  color: var(--text-soft);
  font-size: .92rem;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}
.prog-card .btn-prog {
  align-self: flex-start;
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.prog-card .btn-prog:hover { color: var(--brick); }
.prog-card .btn-prog i { transition: transform .2s; }
.prog-card .btn-prog:hover i { transform: translateX(3px); }

/* ---------- Program detail panel ---------- */
.prog-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
  display: none;
}
.prog-detail.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.prog-detail .detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.prog-detail .detail-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}
.prog-detail .related-title {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
  margin: 2rem 0 1rem;
}
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.related-list a {
  font-size: .82rem;
  padding: .35rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: all .2s;
}
.related-list a:hover {
  border-color: var(--gold);
  background: #fff;
  color: var(--brick);
}

/* ---------- Premium Tarifs ---------- */
.tarif-hero-note {
  background: rgba(201,151,59,.12);
  border: 1px solid rgba(201,151,59,.35);
  border-radius: 10px;
  padding: .9rem 1.2rem;
  font-size: .9rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
}
.tarif-level-tabs .nav-link {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .82rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px !important;
  padding: .55rem 1.3rem;
  margin: 0 .35rem .5rem;
  background: #fff;
}
.tarif-level-tabs .nav-link.active {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink);
}
.tarif-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s;
}
.tarif-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.tarif-card.featured {
  border-color: var(--gold);
  position: relative;
}
.tarif-card.featured::before {
  content: "Recommandé";
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 999px;
}
.tarif-card .tarif-head {
  background: var(--ink);
  color: #fff;
  padding: 1.4rem 1.6rem;
}
.tarif-card.featured .tarif-head {
  background: linear-gradient(135deg, var(--ink) 0%, #2a4068 100%);
}
.tarif-card .tarif-head .sector-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}
.tarif-card .tarif-head h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}
.tarif-card .tarif-body {
  padding: 1.5rem 1.6rem 1.8rem;
}
.tarif-card .price-main {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
}
.tarif-card .price-main small {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-soft);
}
.tarif-card .price-sub {
  font-size: .85rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}
.tarif-card .tranche-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
}
.tarif-card .tranche-list li {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: .9rem;
}
.tarif-card .tranche-list li:last-child { border-bottom: none; }
.tarif-card .tranche-list .amt {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
}
.tarif-extras {
  background: var(--paper);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-top: 2rem;
}
.tarif-extras h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: .8rem;
}
.tarif-extras ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  font-size: .9rem;
}
.tarif-extras li { margin-bottom: .4rem; }



/* ---------- Softer visual balance ---------- */
.bg-ink-soft {
  background: var(--paper);
  color: var(--text);
}
.section-tarifs {
  background: var(--paper);
  padding: 4.5rem 0;
}
.tarif-extras-light {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-top: 2rem;
  color: var(--text-soft);
}
.tarif-extras-light h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: .8rem;
}
.tarif-extras-light strong { color: var(--ink); }
.tarif-extras-light .gold { color: var(--gold-deep); }

/* Hero carousel: slightly lighter overlay */
.hero-carousel .slide-overlay{
  background: linear-gradient(180deg, rgba(20,33,61,.45) 0%, rgba(20,33,61,.28) 40%, rgba(20,33,61,.72) 100%) !important;
}

/* Stats strip: keep but less aggressive */
.stats-strip{ background: var(--ink-2); }

/* CTA banner softer option */
.cta-banner-soft {
  background: var(--paper-2);
  color: var(--ink);
  padding: 3.5rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-banner-soft h2 { color: var(--ink); }
.cta-banner-soft p { color: var(--text-soft); }


/* ---------- Green action buttons ---------- */
:root {
  --cta-green: #2E7D32;
  --cta-green-hover: #1B5E20;
  --cta-green-soft: #E8F5E9;
}

.btn-essf-cta {
  background: var(--cta-green) !important;
  color: #fff !important;
  border: none;
  font-weight: 700;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: 0 6px 16px rgba(46,125,50,.28);
}
.btn-essf-cta:hover,
.btn-essf-cta:focus {
  background: var(--cta-green-hover) !important;
  color: #fff !important;
  filter: none;
}

.btn-essf-outline {
  border: 1.5px solid var(--cta-green);
  color: var(--cta-green);
  font-weight: 700;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  font-size: .9rem;
  background: transparent;
}
.btn-essf-outline:hover {
  background: var(--cta-green);
  color: #fff;
}

/* Links that act as CTAs in program cards */
.prog-card .btn-prog {
  color: var(--cta-green);
}
.prog-card .btn-prog:hover {
  color: var(--cta-green-hover);
}

/* Nav CTA already uses btn-essf-cta */

/* Back to top already green-ish via --success */
.back-to-top {
  background: var(--cta-green) !important;
}
.back-to-top:hover {
  background: var(--cta-green-hover) !important;
  color: #fff;
}


/* Nav active + hover in green */
.navbar-essf .nav-link:hover {
  color: var(--cta-green, #2E7D32) !important;
}
.navbar-essf .nav-link.active {
  color: var(--cta-green, #2E7D32) !important;
}
.navbar-essf .nav-link::after {
  background: var(--cta-green, #2E7D32) !important;
}
.navbar-essf .nav-link.active::after {
  transform: scaleX(1);
}

/* ---------- Testimonials Vercel-inspired ---------- */
.testi-card-v {
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  height: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.testi-card-v:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.testi-quote-v {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
  position: relative;
  padding-left: .2rem;
}
.testi-quote-v::before {
  content: "“";
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 0;
  position: relative;
  top: .55rem;
  margin-right: .15rem;
  font-style: normal;
}



/* Global icon weight: prefer outline look */
.feature-card .icon-wrap i,
.contact-info-item .icon-wrap i {
  font-weight: 300;
  -webkit-text-stroke: 0;
}
.accred-ribbon i { color: var(--cta-green, #2E7D32); }
