/* -------------------------
   Debut Variables globales
-------------------------- */
:root{
  --brand1:#6a11cb;   /* violet doux */
  --brand2:#2575fc;   /* bleu doux */
  --ink:#111827;      /* texte principal */
  --muted:#6b7280;    /* texte secondaire */
  --card:#ffffff;     /* cartes/blocs */
  --bg:#ffffff;       /* fond global */
  --bg-muted:#f9fafb; /* fond sections alternées */
  --radius:16px;
  --shadow:0 8px 24px rgba(17,24,39,.06);
}
/* -------------------------
   Fin Variables globales
-------------------------- */


/* -------------------------
   Debut Reset & Base
-------------------------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
section{padding:80px 20px}
.wrap{max-width:1140px;margin:0 auto;padding:0 18px}
/* -------------------------
   Fin Reset & Base
-------------------------- */


/* -------------------------
   Debut Layout généraux
-------------------------- */
.section-light{background:#fff}
.section-gray{background:var(--bg-muted)}
.section-dark{background:#0f172a;color:#fff}

.two-col-flex{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:40px
}
.cards-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px
}
/* -------------------------
   Fin Layout généraux
-------------------------- */


/* -------------------------
   Debut Typographie
-------------------------- */
h1,h2,h3{margin:0 0 12px;font-weight:700;line-height:1.2}
h1{font-size:2.6rem;margin-bottom:20px}
h2{font-size:2rem}
h3{font-size:1.25rem}
p{font-size:1.05rem;color:var(--muted);margin:0}
/* -------------------------
   Fin Typographie
-------------------------- */


/* -------------------------
   Debut Boutons
-------------------------- */
.btn{
  display:inline-block;cursor:pointer;border:0;text-decoration:none;
  padding:12px 20px;border-radius:12px;font-weight:600
}
.btn.primary{
  background:linear-gradient(135deg,var(--brand1),var(--brand2));color:#fff;
  box-shadow:0 6px 16px rgba(37,117,252,.18)
}
.btn.ghost{
  background:#fff;border:1px solid #e5e7eb;color:var(--ink)
}
.btn.primary:hover{filter:brightness(1.02)}
.btn.ghost:hover{background:#f9fafb}
/* -------------------------
   Fin Boutons
-------------------------- */


/* -------------------------
   Debut Hero Section
-------------------------- */
.hero{background:#fff;padding:90px 20px;border-bottom:1px solid #eef2f7}
.hero .hero-inner{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:40px;max-width:1140px;margin:0 auto
}
.hero .hero-inner{flex-direction:row}                /* défaut: image à droite */
.hero .hero-inner.reverse{flex-direction:row-reverse}/* image à gauche */
.hero .hero-inner.stack-top{flex-direction:column-reverse} /* image au-dessus */
.hero .hero-inner.stack-bottom{flex-direction:column}       /* image en dessous */

.hero .hero-text{flex:1 1 520px;min-width:280px}
.hero .hero-text h1{font-size:2.8rem;margin:0 0 16px}
.hero .hero-text .subtitle{font-size:1.15rem;color:#374151;margin:0 0 14px}
.hero .hero-text .content{max-width:560px;margin:0 0 24px}

.hero .btn.primary{padding:12px 22px;border-radius:12px}

.hero .hero-image{
  flex:0 0 var(--imgW,40%);max-width:var(--imgW,40%);text-align:center
}
.hero .hero-image img{
  width:100%;height:auto;border-radius:24px;
  box-shadow:var(--shadow);
  transform:rotate(var(--imgRotate,0deg));
  transition:transform .2s ease
}

@media (max-width:900px){
  .hero .hero-inner{flex-direction:column!important}
  .hero .hero-text{text-align:center}
  .hero .hero-text .content{margin-left:auto;margin-right:auto}
  .hero .hero-image{width:min(520px,100%);max-width:100%;flex-basis:auto}
}
/* -------------------------
   Fin Hero Section
-------------------------- */


/* -------------------------
   Debut Features Section
-------------------------- */
.features-row {
  padding: 60px 20px;
  background: #f9fafb;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Contenu */
.feature-content {
  max-width: 460px;
  text-align: center;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}
.feature-card p {
  font-size: 1rem;
  color: #555;
  margin: 0;
}

/* ---------------------------------------
   Positionnement via .feature-inner
   --------------------------------------- */

/* Wrapper interne flex */
.feature-inner {
  display: flex;
  flex-direction: column;   /* défaut = image au-dessus du texte */
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* Haut : image au-dessus du texte */
.feature-inner.Haut {
  flex-direction: column;
  text-align: center;
}

/* Bas : image en dessous du texte */
.feature-inner.Bas {
  flex-direction: column-reverse;
  text-align: center;
}

/* Gauche : image à gauche, texte à droite */
.feature-inner.Gauche {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 16px;
}
.feature-inner.Gauche .feature-media { margin-right: 16px; }
.feature-inner.Gauche .feature-content { text-align: left; }

/* Droite : image à droite, texte à gauche */
.feature-inner.Droite {
  flex-direction: row-reverse;
  align-items: center;
  text-align: left;
  gap: 16px;
}
.feature-inner.Droite .feature-media { margin-left: 16px; }
.feature-inner.Droite .feature-content { text-align: left; }

/* Media (image) */
.feature-media img {
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 100%;
}

/* Responsive : gauche/droite repassent en colonne */
@media (max-width: 800px) {
  .feature-inner.Gauche,
  .feature-inner.Droite {
    flex-direction: column;
    text-align: center;
  }
  .feature-inner.Gauche .feature-media,
  .feature-inner.Droite .feature-media {
    margin: 0;
  }
}
/* -------------------------
   Fin Features Section
-------------------------- */


/* -------------------------
   Debut Compat Section
-------------------------- */
.compat-row{background:var(--bg-muted)}
.compat-row .wrap{text-align:center}
.compat-row h2{color:#0f172a;margin-bottom:18px}
.compat-badges{
  display:flex;flex-wrap:wrap;justify-content:center;gap:12px
}
.compat-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:#fff;border:1px solid #e5e7eb;border-radius:999px;
  padding:8px 14px;color:#374151;box-shadow:0 3px 10px rgba(0,0,0,.04);
  font-weight:600;font-size:.95rem
}
.compat-badge img{width:18px;height:18px;display:block}
/* -------------------------
   Fin Compat Section
-------------------------- */


/* -------------------------
   Debut steps_grid 
-------------------------- */

/* SECTION */
.steps {
  padding: 60px 20px;
  background: #fff;
}

/* HEADER (step #20) */
.steps-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 40px;
  text-align: center;
  max-width: 1100px;
}
.steps-header-image img {
  max-width: 260px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.steps-header-text { flex: 1 1 320px; }
.steps-title { font-size: 2rem; font-weight: 800; margin: 0 0 10px; color: #0f172a; }
.steps-subtitle { margin: 0; color: #555; }

/* Variantes de position du HEADER */
.steps-header.Haut    { flex-direction: column; }           /* image AU-DESSUS du texte */
.steps-header.Bas     { flex-direction: column-reverse; }   /* image EN DESSOUS du texte */
.steps-header.Gauche  { flex-direction: row; text-align: left; }
.steps-header.Droite  { flex-direction: row-reverse; text-align: left; }

/* GRILLE DE CARTES */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.step-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

/* Media (image) */
.step-media { margin-bottom: 14px; }
.step-media img {
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 100%;
}

/* Contenu */
.step-content {
  max-width: 460px;
  text-align: center;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#6a11cb,#2575fc);
  color: #fff;
  font-weight: 700;
}
.step-title { font-size: 1.25rem; margin: 6px 0 8px; color: #111; }
.step-subtitle { font-size: 1rem; font-weight: 600; color: #424242; margin: 0 0 6px; }
.step-desc { font-size: .98rem; color: #4b5563; line-height: 1.55; margin: 0; }

/* ---------------------------------------
   Positionnement via .step-inner
   --------------------------------------- */

/* Wrapper interne flex */
.step-inner {
  display: flex;
  flex-direction: column;   /* défaut = image au-dessus du texte */
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* Haut : image au-dessus du texte */
.step-inner.Haut {
  flex-direction: column;
  text-align: center;
}

/* Bas : image en dessous du texte */
.step-inner.Bas {
  flex-direction: column-reverse;
  text-align: center;
}

/* Gauche : image à gauche, texte à droite */
.step-inner.Gauche {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 16px;
}
.step-inner.Gauche .step-media { margin-right: 16px; }
.step-inner.Gauche .step-content { text-align: left; }

/* Droite : image à droite, texte à gauche */
.step-inner.Droite {
  flex-direction: row-reverse;
  align-items: center;
  text-align: left;
  gap: 16px;
}
.step-inner.Droite .step-media { margin-left: 16px; }
.step-inner.Droite .step-content { text-align: left; }

/* Responsive : gauche/droite repassent en colonne */
@media (max-width: 800px) {
  .steps-header.Gauche,
  .steps-header.Droite {
    flex-direction: column;
    text-align: center;
  }
  .step-inner.Gauche,
  .step-inner.Droite {
    flex-direction: column;
    text-align: center;
  }
  .step-inner.Gauche .step-media,
  .step-inner.Droite .step-media {
    margin: 0;
  }
}
/* -------------------------
   Fin steps_grid 
-------------------------- */


/* -------------------------
   Debut CTA Section
-------------------------- */
.cta{
  background:linear-gradient(135deg, rgba(106,17,203,.95), rgba(37,117,252,.95));
  color:#fff
}
.cta .wrap{text-align:center}
.cta h2{font-size:1.8rem;margin:0 0 12px}
.cta p{color:#eef2ff;margin:0 0 20px}
.cta .btn.primary{
  background:#fff;color:#111;box-shadow:0 6px 16px rgba(0,0,0,.18)
}
/* -------------------------
   Fin CTA Section
-------------------------- */


/* -------------------------
   Debut Footer
-------------------------- */
.site-footer{
  background:#fff;border-top:1px solid #e5e7eb;color:#6b7280;
  text-align:center;padding:18px;font-size:.9rem
}
/* -------------------------
   Fin Footer
-------------------------- */

