/* ============================================
   LE CAGIBI — CSS (NETTOYÉ + ORGANISÉ)
   - supprime le inutile (.accent, .split/.panel, .steps/.step, .hero-actions, .hero-badges, .to-top)
   - nav statique (pas de translate/slide)
   - hover CTA Contact amélioré (glow + sheen clean)
   ============================================ */

/* =============== Variables =============== */
:root{
  --primary:#3A5974;
  --primary-dark:#1F3A4B;

  --accent:#2EC4B6;   /* cyan */
  --accent2:#7C3AED;  /* violet (utilisé très peu) */
  --accent3:#F4B860;  /* warm */

  --bg:#F6F8FB;
  --surface:#FFFFFF;
  --text:#0F172A;
  --muted:#55657A;
  --border:#D8E1EA;

  --radius:22px;
  --shadow: 0 18px 60px rgba(15,23,42,0.12);
  --shadow-soft: 0 10px 30px rgba(15,23,42,0.10);
  --container:1120px;
}

/* =============== Base =============== */
*{ 
  box-sizing:border-box;
  -webkit-tap-highlight-color: transparent;
}

html{
  scroll-behavior: smooth;
  min-height: 100%;

  background:
    radial-gradient(900px 500px at 10% 10%, rgba(124,58,237,0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 15%, rgba(46,196,182,0.20), transparent 55%),
    var(--bg);
}

body{
  min-height: 100vh;          
  margin: 0;

  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--text);
  line-height: 1.55;
  background: transparent;     
  display: flex;               
  flex-direction: column;
}
/* Main prend tout l'espace dispo (footer reste bas si page courte) */
main{
  flex: 1;
}


a{ color:inherit; text-decoration:none; }

p{ margin:0 0 1rem; }

h1,h2,h3{
  margin:0 0 .6rem;
  letter-spacing:-0.02em;
}

h1{
  font-size:clamp(2rem, 4.2vw, 3.2rem);
  line-height:1.08;
  margin: 2rem 0 1.2rem ;
}

h2{ font-size:clamp(1.4rem, 2.5vw, 2rem); }
h3{ font-size:1.1rem; }

.container{
  width:min(var(--container), calc(100% - 2rem));
  margin:0 auto;
}

/* =============== Header / Nav =============== */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(246,248,251,0.70);
  border-bottom: 1px solid rgba(216,225,234,0.6);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}

.brand{
  display:flex;
  align-items:center;
  gap:.65rem;
  font-weight:700;
  margin-top: 8px;
}

.brand-logo{
  height: 85px;
  width: auto;
  max-width: 250px;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo{
  transform: scale(1.05);
}

@media (max-width: 768px){
  .brand-logo{
    height: 58px;
    max-width: 170px;
  }
}

/* Bouton retour (caché partout) */
.back-btn{
  display: none;
}

/* Nav (STATIQUE: pas de translate) */
.nav{
  display:flex;
  gap:1.2rem;
  align-items:center;
}

.nav a{
  color:var(--muted);
  padding: .35rem .55rem;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.nav a:hover{
  color:var(--text);
  background: rgba(124,58,237,0.08);
  box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}


/* ===== CTA btn Contact ===== */

.nav-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff !important;
  font-weight: 700;
  padding: .52rem 1.05rem;
  border-radius: 999px;

  /* dégradé bleu → violet */
  background: linear-gradient(135deg,
    #3B82F6,  /* bleu */
    #6D28D9   /* violet */
  );

  border: none;
  box-shadow: 0 6px 18px rgba(59,130,246,0.28);

  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}

/* hover simple = même couleurs, plus foncé */
.nav-cta:hover{
  background: linear-gradient(135deg,
    #2563EB,
    #5B21B6
  );
  box-shadow: 0 8px 22px rgba(59,130,246,0.36);
}

/* active / focus = identique au hover */
.nav-cta:active,
.nav-cta:focus-visible{
  outline: none;
  background: linear-gradient(135deg,
    #2563EB,
    #5B21B6
  );
  box-shadow: 0 5px 16px rgba(59,130,246,0.32);
}

/* override du hover global de la nav */
.nav a.nav-cta:hover{
  background: linear-gradient(135deg,
    #2563EB,
    #5B21B6
  );
}



/* Burger */
.burger{
  display:none;
  border: 1px solid rgba(216,225,234,0.9);
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  width: 40px;
  height: 40px;
}

.burger:hover {
  background: rgba(255,255,255,0.9);
  transform: scale(1.05);
}

.burger span{
  display:block;
  width:24px;
  height:2.5px;
  background: var(--primary-dark);
  border-radius: 99px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.burger span:nth-child(1) {
  top: 13px;
}

.burger span:nth-child(2) {
  top: 24.5px;
}

/* Animation burger : les 2 barres se rejoignent au centre et forment un X */
.burger.active span:nth-child(1) {
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

/* =============== Background blobs (utilisés dans ton HTML) =============== */
.bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  overflow:hidden;
}

.blob{
  position:absolute;
  filter: blur(42px);
  opacity:.35;
  border-radius: 999px;
}

.blob-a{
  width:560px;
  height:560px;
  left:-140px;
  top:80px;
  background:
    radial-gradient(circle at 30% 30%, rgba(46,196,182,0.95), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(58,89,116,0.9), transparent 55%);
}

.blob-b{
  width:600px;
  height:600px;
  right:-180px;
  top:220px;
  background:
    radial-gradient(circle at 30% 30%, rgba(124,58,237,0.9), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(244,184,96,0.8), transparent 55%);
}

/* =============== Layout sections =============== */
.section{
  padding: 0 0 1rem;
}


.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1.5rem;
  margin-bottom: 0.8rem;
}

/* =============== Hero =============== */

/*titre et texte à gauche*/
.hero{
  padding: 0;
  margin-top: 0;
}

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

.lead{
  color:var(--muted);
  max-width: 60ch;
}


/*(logo à droite) */
.hero-visual{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 1rem;
}

/* Callout (étiquette flèche) sous l'image */
.hero-callout{
  position: relative;
  margin-top: -2rem;
  
  z-index: 5;
  pointer-events: auto;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;

  padding: .65rem 1rem;
  border-radius: 16px;

  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);

  font-size: .9rem;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
  
  transition: all 250ms ease;
}

/* Hover simple */
.hero-callout:hover{
  transform: translateY(2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* Flèche SVG */
.hero-callout-arrow{
  width: 24px;
  height: 24px;
  color: #2563EB;
  animation: bounceUp 2s ease-in-out infinite;
}

@keyframes bounceUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Mobile: callout sous l'image */
@media (max-width: 920px){
  .hero-callout{
    position: static;
    margin-top: 0.2rem;
    margin-bottom: .75rem;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}


/* Responsive: image sous le texte */
@media (max-width: 920px){
  .hero-visual{
    order: 2;
  }
}


/* =============== Services cards =============== */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card{
  position:relative;
  background: rgba(255,255,255,0.86);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(216,225,234,0.95);
  overflow:hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}

.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(135deg,
    rgba(46,196,182,0.55),
    rgba(124,58,237,0.30),
    rgba(244,184,96,0.28)
  );
  z-index:-1;
  border-radius: calc(var(--radius) + 2px);
  opacity:.26;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card p{ color: var(--muted); }

.list{
  margin: .8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.list li{ margin: .35rem 0; }

/* =============== Contact =============== */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items:start;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(216,225,234,0.95);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.contact-links{
  display:flex;
  gap:.6rem;
  align-items:center;
  flex-wrap:wrap;
}

.link{
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form{
  display:grid;
  gap:.85rem;
}

label span{
  display:block;
  font-size:.9rem;
  color: var(--muted);
  margin-bottom:.35rem;
}

input, textarea{
  width:100%;
  padding:.85rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(216,225,234,0.95);
  background: rgba(255,255,255,0.92);
  font: inherit;
  color: var(--text);
  outline:none;
}

input:focus, textarea:focus{
  border-color: rgba(58,89,116,0.55);
  box-shadow: 0 0 0 5px rgba(58,89,116,0.14);
}

/* Bouton ENVOYER — section contact */

.contact .btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-weight: 700;
  padding: .65rem 1.4rem;
  border-radius: 999px;

  background: linear-gradient(135deg,
    #3B82F6,  /* bleu */
    #6D28D9   /* violet */
  );
  border: none;
  box-shadow: 0 6px 16px rgba(59,130,246,0.26);

  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}

.contact .btn-primary:hover{
  background: linear-gradient(135deg,
    #2563EB,
    #5B21B6
  );
  box-shadow: 0 8px 20px rgba(59,130,246,0.34);
}

.contact .btn-primary:active,
.contact .btn-primary:focus-visible{
  outline: none;
  background: linear-gradient(135deg,
    #2563EB,
    #5B21B6
  );
  box-shadow: 0 5px 14px rgba(59,130,246,0.30);
}


/* =============== Footer =============== */
.footer{
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(216, 225, 234, 0.6);
  background: linear-gradient(180deg, transparent, rgba(246, 248, 251, 0.5));
}

.footer-content{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-info{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-tagline{
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

.footer-copyright{
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.footer-links{
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-link{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: transparent;
}

.footer-link:hover{
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

.footer-link svg{
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

@media (max-width: 768px){
  .footer{
    margin-top: 2rem;
    padding: 2rem 0 1.5rem;
  }

  .footer-content{
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links{
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    align-items: flex-start;
  }

  .footer-link{
    width: 100%;
    padding: 0.7rem 1rem;
  }

  .footer-tagline{
    font-size: 0.9rem;
  }

  .footer-copyright{
    font-size: 0.85rem;
  }
}


/* =============== Responsive =============== */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }

  .nav{ display:none; }
  .burger{ display:block; }

  .nav.open{
    display:flex;
    position:absolute;
    top:70px;
    right: 1rem;
    left: 1rem;
    flex-direction:column;
    padding: 1rem;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(216,225,234,0.95);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15,23,42,0.2);
    animation: fadeInScale 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
    z-index: 100;
  }

  .nav.open a{
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(216,225,234,0.5);
  }

  .nav.open a:last-child{
    border-bottom: none;
  }

  .nav.open .nav-cta {
    margin-top: 0.5rem;
  }

  /* Header avec effet scrolled */
  .header.scrolled {
    background: rgba(246,248,251,0.95);
    box-shadow: 0 4px 20px rgba(15,23,42,0.1);
  }

  /* Ajustements pour les petits écrans */
  .container {
    width: calc(100% - 1.5rem);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Accessibilité - focus visible uniquement au clavier */
body.using-mouse *:focus {
  outline: none;
}

/* Améliorations tactiles pour mobile */
@media (max-width: 920px) {
  .btn, .nav a, .burger, .contact-close {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Réduction des animations si demandé */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .nav a, .card, .btn, .nav-cta, .burger, .burger span{ transition:none; }
  .nav.open { animation: none; }
}
