/* assets/style.css
   Base + page Bon de Visite
   Objectif: retrouver le rendu identique au <style> commenté de bondevisite.php
*/

:root{
  --blue:#0a1c3a;
  --gold:#c9a64b;
  --bg:#ffffff;
  --text:#0a1c3a;
  --muted: rgba(10,28,58,.75);
  --border: rgba(10,28,58,.12);
  --card:#ffffff;
  --shadow: 0 10px 30px rgba(10,28,58,.08);
  --radius:18px;
}

*{box-sizing:border-box}

html,body{height:100%}

body{
  margin:0;
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit}

/* Conteneur page */
.container{
  width:min(1080px, calc(100% - 40px));
  margin:0 auto;
}

/* HERO */
.hero{
  padding:56px 0 18px 0;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
  align-items:start;
}

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

/* Badge */
.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  font-size:13px;
  color:var(--muted);
  background:#fff;
}

/* Titres et texte */
.h1{
  margin:16px 0 12px 0;
  font-size:clamp(26px, 4vw, 40px);
  line-height:1.12;
  letter-spacing:-0.02em;
}

.lead{
  margin:0 0 18px 0;
  font-size:16px;
  color:var(--muted);
  max-width:60ch;
}

/* CTA */
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  text-decoration:none;
  font-weight:600;
  min-height:44px;
  transition:transform .06s ease, box-shadow .2s ease;
  box-shadow:none;
}

.btn:hover{transform:translateY(-1px)}

.btn-primary{
  background:var(--gold);
  border-color:rgba(0,0,0,0);
  color:var(--blue);
}

.btn-ghost{
  background:#fff;
  color:var(--blue);
}

.btn-main-green {
  background-color: #22c55e; /* vert fiable, lisible, non agressif */
  color: #ffffff;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background-color .15s ease, transform .08s ease, box-shadow .15s ease;
}

.btn-main-green:hover {
  background-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22,163,74,.25);
}

.btn-main-green:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-main-green:focus-visible {
  outline: 2px solid rgba(22,163,74,.6);
  outline-offset: 2px;
}


/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

.card h2{
  margin:0 0 10px 0;
  font-size:16px;
}

/* KPIs */
.kpis{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:16px;
}

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

.kpi{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  background:#fff;
}

.kpi strong{
  display:block;
  font-size:18px;
}

.kpi span{
  color:var(--muted);
  font-size:13px;
}

/* Sections */
.section{
  padding:34px 0;
}

.section h2{
  font-size:22px;
  margin:0 0 12px 0;
  letter-spacing:-0.01em;
}

.section p{
  margin:0 0 12px 0;
  color:var(--muted);
}

/* Grilles */
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:14px;
}

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

/* Listes */
ul{
  margin:10px 0 0 20px;
  color:var(--muted);
}

li{margin:6px 0}

/* Steps */
.steps{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
  margin-top:12px;
}

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

.step{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  background:#fff;
}

.step .n{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(201,166,75,.25);
  color:var(--blue);
  font-weight:700;
  margin-bottom:8px;
}

.step h3{
  margin:0 0 6px 0;
  font-size:15px;
  color:var(--text);
}

.step p{
  margin:0;
  font-size:13px;
  color:var(--muted);
}

/* Divider */
.divider{
  height:1px;
  background:var(--border);
  margin:26px 0;
}

/* FAQ */
.faq details{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 14px;
  background:#fff;
  margin:10px 0;
}

.faq summary{
  cursor:pointer;
  font-weight:600;
  color:var(--text);
  list-style:none;
}

.faq summary::-webkit-details-marker{display:none}

.faq .a{
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
}

/* Fineprint */
.fineprint{
  font-size:13px;
  color:var(--muted);
}

/* Optionnel: header/footer communs si tu les actives sur cette page */
.site-header,
.site-footer{
  width:100%;
}

.site-header .wrap,
.site-footer .wrap{
  width:min(1080px, calc(100% - 40px));
  margin:0 auto;
}

body{
  background: radial-gradient(circle at 50% 0%, #e9f0ff, #f6f7fb 70%);
}

/* Les cartes restent blanches et propres sur ce fond */
.card,
.badge,
.kpi,
.step,
.faq details{
  background:#fff;
}

/* Optionnel: rendre les sections un peu plus aérées sur fond bleu */
.section{
  padding:38px 0;
}

.brand-aside {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 6px;
}

.brand-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.brand-text {
  text-align: center;
}

/* Mobile optimisation */
@media (max-width: 900px) {
  .brand-logo {
    max-width: 180px;
  }
}

/* HERO inversion desktop */
.hero-grid-reverse {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

/* Mobile-first: contenu principal en premier */
@media (max-width: 900px) {
  .hero-grid-reverse {
    grid-template-columns: 1fr;
  }
}

/* Aside branding */
.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-aside {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.brand-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.brand-text {
  text-align: center;
}

@media (max-width: 900px) {
  .brand-logo {
    max-width: 180px;
  }
}

/* Carrousel aside (garde la même emprise que le bloc logo) */
:root{
  --asideMediaH: 280px; /* A AJUSTER avec la hauteur réelle de .brand-aside */
}

.brand-aside{
  /* On fige la hauteur pour empêcher tout “saut” de layout */
  height: var(--asideMediaH);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aside-carousel{
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: inherit; /* aligner avec votre style de carte si besoin */
  background: #fff;
}

.aside-carousel-track{
  width: 100%;
  height: 100%;
  position: relative;
}

.aside-carousel-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* conserve tout le visuel sans recadrer */
  opacity: 0;
  transition: opacity 260ms ease;
}

.aside-carousel-slide.is-active{
  opacity: 1;
}

.aside-carousel-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.aside-carousel-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(10,28,58,.35);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 0;
}

.aside-carousel-dot.is-active{
  background: rgba(10,28,58,.9);
  border-color: rgba(10,28,58,.9);
}

/* FIX: faire occuper tout l'espace réel de l'aside */
:root{
  --asideMediaH: 387px; /* hauteur réelle mesurée */
}

.brand-aside{
  height: var(--asideMediaH);
  padding: 0;          /* annule le padding défini plus haut */
  margin-bottom: 0;    /* annule le margin défini plus haut */
  width: 100%;
}

.aside-carousel{
  width: 100%;
  height: 100%;
}

/* Rejoindre: aside fixe 416x514 (hauteur) + carrousel full */
.card.card-carousel{
  padding: 0;          /* sinon vous perdez de la surface utile */
  overflow: hidden;    /* pour respecter l’arrondi */
  height: 514px;       /* hauteur mesurée */
}

.card.card-carousel .aside-carousel{
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
