body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
    color: #2e2e2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.brand img{
  width: 180px; height: 130px
}

.nav-item.active { color: #3f51b5}

main {
    flex-grow: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
  margin : 30px;
}

/* Header */
/* Barre haute avec légère touche colorée (inspiration drapeau) */
.top-strip {
  height: 4px;
  background: linear-gradient(90deg, #0a8f3a 33%, #f4c000 33% 66%, #d10f1b 66%);
}

/* Header */
.site-header { background: #ffffff; box-shadow: 0 2px 12px rgba(0,0,0,.06); position: sticky; top:0; z-index:50; }
.nav-wrap { max-width: 1200px; margin: 0 auto; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Marque / logo simple */
.brand { display:flex; align-items:center; gap:.6rem; font-weight:700; color:#1d2130; text-decoration:none; letter-spacing:.2px; }
.logo-circle { width:28px; height:28px; border-radius:50%; background: radial-gradient(circle at 30% 30%, #0a8f3a, #f4c000 60%, #d10f1b); }

/* Nav desktop */
.nav { display:flex; align-items:center; gap:1rem; }
.nav a { color:#2e2e2e; text-decoration:none; padding:.4rem .6rem; border-radius:.5rem; }
.nav a:hover { background:#f4f6fb; }

.nav-toggle span{
  display:block; width:22px; height:2px;
  background:#1d2130; border-radius:2px;
  transition: all .3s ease; transform-origin:center;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* CTA Contact */
.btn-contact { background:#3f51b5; color:#fff !important; padding:.5rem .9rem; border-radius:.6rem; }
.btn-contact:hover { background:#2f3f95; }

/* Hamburger */
.nav-toggle {
  display: none;             /* visible en mobile seulement */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: .4rem;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}


/* Animation en croix quand .open est sur le bouton (JS existant) */
.nav-toggle.open span:nth-child(1){ transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: rotate(-45deg) translate(6px, -6px); }

   .section {
      background: #fff;
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.05);
      text-align: center;
    }

    .section-alt {
      background: #f0f2f7;
    }

    .section h2 {
      color: #3f51b5;
      font-size: 1.8rem;
      margin-bottom: 1rem;
      position: relative;
      display: inline-block;
    }

    .section h2::after {
      content: '';
      display: block;
      width: 40%;
      height: 3px;
      background-color: #7e57c2;
      margin: 0.5rem auto 0;
      border-radius: 6px;
    }
    .about-section{
      background:#3f51b5; color:#fff;
      width: 100%;
      height: 150px;
      display: flex;
      justify-content: center; /* centre horizontalement */
      align-items: center;

    }

    .section p {
      font-size: 1.1rem;
      line-height: 1.7;
      color: #333;
      max-width: 800px;
      margin: 0 auto;
      text-align: justify;
      text-justify: inter-word;
      word-break: break-word;
      hyphens:auto; overflow-wrap: break-word;

    }

    .emoji {
      font-size: 2rem;
      display: block;
      margin-bottom: 0.5rem;
    }

footer {
    text-align: center;
    padding: 1rem;
    background: #e8ecf1;
    color: #555;
    font-size: 0.9rem;
}

    @media (max-width: 600px) {
      .section h2 {
        font-size: 1.5rem;
      }

      .section p {
        font-size: 1rem;
      }
    }
.nav-toggle { display:none; flex-direction:column; gap:4px; background:transparent; border:0; padding:.4rem; }
.nav-toggle span { display:block; width:22px; height:2px; background:#1d2130; }

@media (max-width: 900px){
  .nav-toggle{ display:flex; }
  .nav{
    position:absolute; inset:64px 0 auto 0;
    background:#fff; border-top:1px solid #eceff5;
    display:none; flex-direction:column; gap:.2rem; padding:.6rem 1rem;
    transform:translateY(-10px); opacity:0; pointer-events:none;
    box-shadow:0 8px 24px rgba(0,0,0,.08); transition:.2s ease;
  }
  .nav.open{
    display:grid; transform:translateY(0); opacity:1; pointer-events:auto;
  }
}
/* Desktop nav */
@media (min-width: 901px){
  .nav{ position:static; display:flex !important; transform:none; opacity:1; pointer-events:auto; box-shadow:none; }
  .nav-toggle{ display:none !important; }
}

button{
  background: var(--brand); color: #fff; border: none; border-radius: 6px;
  padding: .75rem 1.5rem; font-size: 1.1rem; cursor: pointer;
  transition: background-color .25s ease;
}
button:hover{ background: #303f9f; }

 #why-us p{
    text-align: left;
 }

/* ======= MOBILE POLISH (clean) ======= */

/* 1) Header plus compact + logo moins haut */


/* 2) Titres qui tiennent bien sur mobile */
:root{
  --fs-h1-mobile: clamp(1.4rem, 4.8vw + .6rem, 1.9rem);
  --fs-h2-mobile: clamp(1.2rem, 4vw + .5rem, 1.6rem);
}
@media (max-width: 670px){
  h1{ font-size: var(--fs-h1-mobile); line-height: 1.2; text-wrap: balance; }
  h2{ font-size: var(--fs-h2-mobile); line-height: 1.25; text-wrap: balance; }
  p { font-size: 1rem; }
  section h2{
    margin: 1.25rem auto .75rem;
    border-bottom-width: 1px;
  }
}

/* 3) Bandeaux très paddés (ex. “Prise de contact”) */
@media (max-width: 670px){
  .hero-section,
  .page-hero,
  .section-hero,
  .cta-section{
    padding: 1.25rem 1rem !important;
    border-radius: 10px;
  }
  .cta-section{ gap: 1rem; }
}

/* 4) Grilles en colonne, cartes pleine largeur */
@media (max-width: 670px){
  .services-grid,
  .cta-section{ grid-template-columns: 1fr !important; }
  .service-card{ max-width: none; width: 100%; }
  .service-card img{ height: auto; } /* évite recadrage agressif en mobile */
}

/* 6) Texte long : meilleure casse et confort de lecture */
@media (max-width: 670px){
  #why-us p{
    width: auto; max-width: 65ch; padding: 0 1rem;
    margin-left: auto; margin-right: auto;
    text-wrap: pretty;              /* navigateur modernes */
    overflow-wrap: anywhere;        /* fallback */
  }
  section {
    margin : 0px;
  }
}


/* 8) Accessibilité : réduire les anims si l’utilisateur le demande */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


