/* =========================================================
   DESIGN TOKENS / VARIABLES
========================================================= */
:root{
  /* Colors */
  --blue:#0d4f8b;
  --orange:#e87a2c;
  --green:#2f8f46;
  --dark:#1c1c1c;
  --white:#ffffff;

  /* Backgrounds */
  --bg-light:#eef3f8;
  --bg-table:#f3f6fa;

  /* Shadows */
  --shadow-sm:0 6px 18px rgba(0,0,0,.06);
  --shadow-md:0 14px 32px rgba(0,0,0,.18);
  --shadow-lg:0 20px 48px rgba(0,0,0,.28);

  /* Radius */
  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:16px;
  --radius-xl:20px;

  /* Spacing */
  --space-xs:8px;
  --space-sm:16px;
  --space-md:30px;
  --space-lg:60px;
  --space-xl:80px;

  /* Typography */
  --font-main:'Montserrat', sans-serif;
}

/* =========================================================
   RESET & BASE
========================================================= */
*{box-sizing:border-box}

body{
  margin:0;
  font-family:var(--font-main);
  min-height:100vh;
  background:
    url("../images/background.jpg")
    center / cover no-repeat fixed;
}

/* Background overlay */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:-1;
}

/* =========================================================
   TYPOGRAPHY SCALE
========================================================= */
h1{font-size:44px;font-weight:800;line-height:1.15}
h2{font-size:36px;font-weight:800;line-height:1.2}
h3{font-size:26px;font-weight:700;line-height:1.3}
h4{font-size:18px;font-weight:700;line-height:1.4}

/* =========================================================
   TOPBAR / NAVIGATION
========================================================= */
.topbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:55px;
  padding:0 25px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(255,255,255,.35);
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow-sm);
  transition:background .3s ease, box-shadow .3s ease;
  z-index:1000;
}

.topbar.scrolled{
  background:var(--white);
  box-shadow:0 8px 22px rgba(0,0,0,.12);
}

.logo{
  display:flex;
  align-items:center;
}

.logo img{
  height:40px;
  cursor:pointer;
  transition:opacity .2s ease;
}

.logo:hover img{
  opacity:.85;
}

.menu-icon{
  font-size:30px;
  color:var(--dark);
  cursor:pointer;
}

/* Menu mobile */
nav{
  position:fixed;
  top:55px;
  right:-100%;
  width:240px;
  height:calc(100vh - 55px);
  background:var(--white);
  display:flex;
  flex-direction:column;
  padding:var(--space-md);
  box-shadow:-8px 0 25px rgba(0,0,0,.15);
  transition:right .3s ease;
}

nav.open{right:0}

nav a{
  color:var(--dark);
  text-decoration:none;
  font-weight:700;
  margin-bottom:20px;
}

nav a.active{color:var(--blue)}

/* =========================================================
   PAGE & HEADER
========================================================= */
.page{
  max-width:1100px;
  margin:0 auto;
  padding:140px 20px 100px;
}

.header{
  text-align:center;
  color:var(--white);
  margin-bottom:var(--space-xl);
}

.header h1{
  margin:0;
  text-shadow:0 6px 20px rgba(0,0,0,.45);
}

.header p{
  font-size:18px;
  margin-top:14px;
}

/* =========================================================
   CARDS & COMMON BLOCKS
========================================================= */
.card,
.table-card,
.footer{
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:38px 42px;
  margin:0 auto var(--space-lg);
  max-width:950px;
  box-shadow:var(--shadow-md);
  position:relative;
}

.band{
  position:absolute;
  top:-18px;
  left:-18px;
  padding:12px 30px;
  font-weight:800;
  border-radius:var(--radius-sm);
  text-transform:uppercase;
  color:var(--white);
}

.band.blue{background:var(--blue)}
.band.orange{background:var(--orange)}
.band.green{background:var(--green)}

.lead{
  font-weight:600;
  margin:16px 0 20px;
}

ul{padding-left:20px}
li{margin-bottom:8px}

/* =========================================================
   PRICE & BADGES
========================================================= */
.price{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:15px;
  margin-top:26px;
}

.price span{
  font-size:22px;
  font-weight:800;
}

/* =========================================================
   BADGES MICRO-INTERACTIONS
========================================================= */
.badges span{
  display:inline-block;
  margin-right:10px;
  padding:7px 16px;
  border-radius:25px;
  background:var(--bg-light);
  font-size:13px;
  font-weight:700;
  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.badges span:hover{
  transform:translateY(-2px) scale(1.04);
  background:#e3ebf5;
  box-shadow:0 6px 14px rgba(0,0,0,.12);
}


/* =========================================================
   TABLE
========================================================= */
.table-card{
  margin:var(--space-xl) auto;
}

.table-card h3{
  text-align:center;
  margin-bottom:25px;
}

.table-wrapper{overflow-x:auto}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

th,td{
  padding:14px 12px;
  text-align:center;
}

th{
  background:var(--bg-table);
  font-weight:800;
}

td:first-child{
  text-align:left;
  font-weight:700;
}

tr:nth-child(even){background:#fafafa}

/* =========================================================
   SCROLL ANIMATIONS
========================================================= */
.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:opacity .7s ease, transform .7s ease;
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

.reveal-step{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .6s ease, transform .6s ease;
  transition-delay:calc(var(--i) * 0.15s);
}

.reveal-step.visible{
  opacity:1;
  transform:translateY(0);
}

/* =========================================================
   PROCESS CTA & STEPS
========================================================= */
.process-cta{
  max-width:950px;
  margin:var(--space-xl) auto 0;
  padding:70px 40px;
  border-radius:var(--radius-xl);
  background:linear-gradient(135deg, var(--blue), #0b3f6d);
  color:var(--white);
  text-align:center;
  box-shadow:var(--shadow-lg);
}

.process-cta.light{
  background:var(--white);
  color:var(--dark);
  box-shadow:0 20px 45px rgba(0,0,0,.15);
}

.process-label{
  display:inline-block;
  font-weight:700;
  letter-spacing:.5px;
  color:var(--orange);
  margin-bottom:15px;
}

.process-cta h2{margin:0}

.process-cta h2 span{color:var(--orange)}

.process-subtitle{
  margin:18px auto 50px;
  max-width:600px;
  opacity:.95;
  font-weight:500;
}

.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:30px;
  margin:50px 0;
}

.step{text-align:center}

.step .icon{
  width:70px;
  height:70px;
  margin:0 auto 18px;
  border-radius:50%;
  background:var(--bg-light);
  display:flex;
  align-items:center;
  justify-content:center;
}

.step svg{
  width:34px;
  height:34px;
  stroke:var(--blue);
  stroke-width:2;
  fill:none;
}

.step h4{margin-bottom:10px}

.step p{
  font-size:14px;
  opacity:.9;
}

/* =========================================================
   BUTTONS
========================================================= */
.process-btn{
  display:inline-block;
  background:var(--blue);
  color:var(--white);
  padding:18px 34px;
  border-radius:var(--radius-md);
  font-weight:800;
  text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease;
}

.process-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 25px rgba(0,0,0,.25);
}

/* =========================================================
   SITE FOOTER
========================================================= */
.site-footer{
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(8px);
  padding:16px 20px;
  margin-top:60px;
  border-top:1px solid rgba(0,0,0,.08);
}

.footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.footer-socials{
  display:flex;
  gap:14px;
}

.footer-socials a{
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(13,79,139,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s ease;
}

.footer-socials a:hover{
  background:rgba(13,79,139,.20);
  transform:translateY(-1px);
}

.footer-socials svg{
  width:16px;
  height:16px;
  stroke:var(--blue);
  stroke-width:1.8;
}

.footer-copy{
  color:rgba(0,0,0,.55);
  font-size:13px;
  font-weight:500;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media(max-width:900px){
  .steps{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:600px){
  h1{font-size:32px}
  h2{font-size:28px}
  h3{font-size:22px}
  .card,.table-card,.footer{padding:30px}
  .price{flex-direction:column;align-items:flex-start}
}

@media(max-width:500px){
  .steps{grid-template-columns:1fr}
}

/* =========================================================
   CARD HOVER (PREMIUM)
========================================================= */
.card,
.table-card{
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.card:hover,
.table-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 48px rgba(0,0,0,.22);
}

/* =========================================================
   MOBILE MENU OVERLAY
========================================================= */
.menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:900;
}

.menu-overlay.active{
  opacity:1;
  pointer-events:auto;
}

/* Menu animation refinement */
nav{
  transition:
    right .3s ease,
    box-shadow .3s ease;
}

@keyframes ctaPulse{
  0%,100%{transform:translateX(-50%) scale(1)}
  50%{transform:translateX(-50%) scale(1.04)}
}

/* Social icon image (SVG / PNG) */
.social-icon{
  width:20px;
  height:20px;
  object-fit:contain;
  display:block;
}

/* Ajustement hover */
.footer-socials a{
  display:flex;
  align-items:center;
  justify-content:center;
}

.footer-socials a:hover .social-icon{
  transform:scale(1.08);
}

.card-header{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  padding:14px;
  text-align:center;
  font-weight:800;
  text-transform:uppercase;
  border-radius:16px 16px 0 0;
  color:#fff;
}

.card-header.blue{background:var(--blue)}
.card-header.orange{background:var(--orange)}
.card-header.green{background:var(--green)}

/* Push content down */
.card{
  padding-top:70px;
}

/* =========================================================
   TABLE RESPONSIVE – MOBILE OPTIMIZED (OPTION 2)
========================================================= */
@media(max-width:768px){

  /* Wrapper scroll */
  .table-wrapper{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    position:relative;
  }

  /* Indication de scroll */
  .table-wrapper::before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:40px;
    height:100%;
    background:linear-gradient(to left, rgba(255,255,255,.9), transparent);
    pointer-events:none;
  }

  /* Table layout */
  table{
    min-width:650px;
    border-collapse:separate;
    border-spacing:0;
  }

  th, td{
    font-size:13px;
  }

  /* Sticky first column (services) */
  th:first-child,
  td:first-child{
    position:sticky;
    left:0;
    background:#fff;
    z-index:2;
    box-shadow:2px 0 8px rgba(0,0,0,.08);
    max-width:160px;
    min-width:140px;
    width:40vw;
    white-space:normal;
    word-break:break-word;
    line-height:1.35;
  }

  /* Header sticky background fix */
  th:first-child{
    z-index:3;
    background:var(--bg-table);
  }
}

/* =========================================================
   FORM – STUDY PAGE
========================================================= */
.study-form{
  margin-top:30px;
}

.form-group{
  display:flex;
  flex-direction:column;
  margin-bottom:18px;
}

.form-group label{
  font-weight:700;
  margin-bottom:6px;
}

.form-group input,
.form-group select,
.form-group textarea{
  padding:16px;
  border-radius:12px;
  border:1px solid #e0e0e0;
  background:#fafafa;
  font-size:14px;
  transition:border .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  background:#fff;
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(13,79,139,.12);
}

.form-note{
  margin-top:18px;
  font-size:13px;
  opacity:.75;
  text-align:center;
}

.form-group select{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, #999 50%),
    linear-gradient(135deg, #999 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size:5px 5px;
  background-repeat:no-repeat;
}

/* =========================================================
   CONTACT HERO
========================================================= */
.contact-hero{
  max-width:800px;
  margin:0 auto 60px;
  text-align:center;
  color:#fff;
}

.contact-hero h1{
  margin-bottom:14px;
}

.contact-hero p{
  font-size:18px;
  opacity:.95;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}

/* =========================================================
   CONTACT CARD
========================================================= */
.contact-card{
  background:#fff;
  border-radius:20px;
  padding:48px;
  max-width:720px;
  margin:0 auto;
  box-shadow:0 30px 70px rgba(0,0,0,.25);
}

@media(max-width:600px){
  .contact-card{
    padding:30px;
  }
}

.contact-card .process-btn{
  width:auto;
  display:block;
  margin:40px auto 50px;
  padding:14px 28px;
}
.contact-card .process-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(13,79,139,.35);
}

/* =========================================================
   TRUST BAR
========================================================= */
.trust-bar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:20px;
  font-size:13px;
  color:#666;
  text-align:center;
}

.trust-bar span{
  flex:1;
}

@media(max-width:600px){
  .trust-bar{
    flex-direction:column;
    gap:6px;
  }
}

.study-benefits{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:30px 0;
  padding:0;
  list-style:none;
}

.study-benefits li{
  background:#f5f8fc;
  padding:14px;
  border-radius:12px;
  font-weight:600;
  font-size:13px;
}

@media(max-width:600px){
  .study-benefits{
    grid-template-columns:1fr;
  }
}
