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

/* 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; }



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

.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;
}
.nav-toggle span{
  display:block; width:22px; height:2px;
  background:#1d2130; border-radius:2px;
  transition: all .3s ease; transform-origin:center;
}

/* 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); }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display:flex; }
  .nav {
    position: absolute; inset: 64px 0 auto 0;
    background:#fff; border-top:1px solid #eceff5;
    display: grid; gap:.2rem; padding: .6rem 1rem;
    transform: translateY(-10px); opacity:0; pointer-events:none; transition: .2s ease;
  }
  .nav.open { transform: translateY(0); opacity:1; pointer-events:auto; }
}


.cta-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 1rem;
  background: #f9fafc;
  border-radius: 12px;
  text-align: center;
  margin: 2.5rem auto;
  max-width: 1100px;
}

/* Chaque bloc */
.cta-section .cta {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-section .cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Titre */
.cta-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2e2e2e;
}

/* Boutons */
.btn-contact {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

/* Bouton principal */
.cta-section .primary .btn-contact {
  background: #3f51b5;
  color: #fff;
}

.cta-section .primary .btn-contact:hover {
  background: #2f3f95;
}

/* Boutons secondaires */
.btn-contact.secondary {
  background: #e8ecf1;
  color: #2e2e2e;
}

.btn-contact.secondary:hover {
  background: #d4d8de;
}


/* Boutons */
.btn-contact {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

/* Bouton principal */
.cta-section .primary .btn-contact {
  background: #3f51b5;
  color: #fff;
}

.cta-section .primary .btn-contact:hover {
  background: #2f3f95;
}

/* Boutons secondaires */
.btn-contact.secondary {
  background: #e8ecf1;
  color: #2e2e2e;
}

.btn-contact.secondary:hover {
  background: #d4d8de;
}



/* Section titles */
h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3f51b5;
    border-bottom: 2px solid #7e57c2;
    padding-bottom: 0.3rem;
    max-width: max-content;
    text-align: center; /* centré */
    margin-left: auto;
    margin-right: auto;
}

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

}

/* Paragraphs */
p {
    font-size: 1.1rem;
    color: #333;
}

/* Form */
#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 4rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    width: 100%;
}

label {
    font-weight: 600;
    color: #3f51b5;
}

input, textarea {
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #fafafa;
    color: #2e2e2e;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #7e57c2;
    outline: none;
}

button {
    background: #3f51b5;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #303f9f;
}


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

/* Carrousel: full height minus header */


/* Centrage des titres dans sections */
section h2 {
  text-align: center;
  margin: 2rem auto 1rem auto;
}

.brand img{
  width: 180px; height: 130px
}
#why-us p {
  text-align: center;
  margin: 2rem auto 1rem auto;
  width: 700px

}
.contact-page{
  width : 100%

}
    .about-section{
      background:#3f51b5; color:#fff;
      width: 100%;
      height: 150px;
      display: flex;
      justify-content: center; /* centre horizontalement */
      align-items: center;

    }

.container {
  max-width: 1000px;
  margin: 0 auto;
}

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


/* 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 */
}

/* 5) Carrousel : 100vh trop grand en mobile */
@media (max-width: 700px){
  .carousel{ height: clamp(340px, 62vh, 560px); }
  .slide-text h2{ font-size: clamp(1.35rem, 4.8vw + .6rem, 1.9rem); }
  .slide-text p { font-size: clamp(1rem, 2.8vw + .4rem, 1.15rem); }
}

/* 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 */
  }
}


/* 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; }
}

