/* RESET MINIMAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
body {
  font-family: 'Roboto', sans-serif;
  color: #07090F;
  background-color: #fff;
  line-height: 1.6;
}

h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
}
/* =========================
   BANDEAU SUPÉRIEUR – LOGOS
   ========================= */

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 40px;
}

/* logo principal */
.site-logo {
  height: 80px;
  object-fit: contain;
}

/* partenaires */
.logo-partners {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.partner-logo {
  height: 55px;
  object-fit: contain;
  opacity: 0.9;
}


/* =========================
   PRODUITS – LAYOUT QUINCONCE
   ========================= */

.product-row {
  width: 70%;
  margin: 6rem auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-row.reverse {
  direction: rtl;
}

.product-row.reverse > * {
  direction: ltr;
}

.product-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-text h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.product-text p {
  font-size: 1.6rem;
  line-height: 2.4rem;
  max-width: 65ch;
}
/* anti-spam honeypot */
.hp-field {
  display: none !important;
}

/* =========================
   LISTES – STYLE ÉDITORIAL
   ========================= */

.content-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.content-section ul li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;

  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  line-height: 2.4rem;
}

/* puce discrète cohérente avec la charte */
.content-section ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;

  color: #0b8293; /* couleur QualiSoft */
  font-size: 1.8rem;
  line-height: 1.6;
}

/* NAV */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 2.6rem;
  color: #fff;
  cursor: pointer;
}
.main-nav {
  background-color: #51a4aa;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 20px 0;
}

.main-nav a {
  font-family: 'Josefin Sans', sans-serif;
  color: #fff;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 600;
}

.main-nav a:hover {
  background-color: rgba(255,255,255,0.15);
  padding: 10px 15px;
  border-radius: 6px;
}
/* =========================
   FIL D’ARIANE
   ========================= */

.breadcrumb {
  width: 70%;
  margin: 2rem auto 1rem;

  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  color: #6b6b6b;
}

.breadcrumb a {
  color: #0b8293;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

.breadcrumb .current {
  color: #07090F;
  font-weight: 500;
}

/* =========================
   BOUTON "EN SAVOIR PLUS"
   ========================= */

.btn-more {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.6rem;

  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;

  color: #0b8293;
  background-color: rgba(11,130,147,0.2);

  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;

  transition: all 0.25s ease;
}

.btn-more:hover {
  color: #aa5751;
  border-color: #aa5751;
  background-color: #ffffff;
}

/*carouselle */ 
/* =========================
   CARTES ASSOCIATION / CONCEPT / ACTIVITÉ
   ========================= */

.cards {
  width: 75%;
  margin: 5rem auto;

  display: flex;              /* clé */
  justify-content: space-between;
  align-items: stretch;
  gap: 3rem;
}

.card {
  height: 450px;               /* card plus petite */
  background-color: #ffffff;
  border: 1px solid #E9E9E9;
  border-radius: 6px;
  overflow: hidden;            /* coupe l’image */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;

  display: flex;
  flex-direction: column;
  padding: 0;                  /* ⬅️ très important */
}
/* ==================================================
   PATCH HOME – CARTES CÔTE À CÔTE (SAFE)
   ================================================== */

/* layout home uniquement */
.cards.cards-home {
  width: 90%;
  margin: 5rem auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;

  justify-items: center;
}

/* surcharge UNIQUEMENT sur les cartes de la home */
.cards.cards-home > article.card {
  width: 100%;
  max-width: 560px;
  height: auto;          /* 🔥 annule le height: 1000px */
  padding: 0;

  display: flex;
  flex-direction: column;
}

/* texte */
.cards.cards-home > article.card p {
  flex-grow: 1;
  padding: 0 1.5rem;
}

/* titre */
.cards.cards-home > article.card h3 {
  padding: 1rem 1.5rem 0;
}

/* bouton */
.cards.cards-home > article.card .btn-more {
  align-self: flex-end;
  margin: 1rem 1.5rem 1.5rem 0;
}

/* mobile */


/* =========================
   PAGE ASSOCIATION – CARTES BLEUES
   ========================= */

/* =========================
   PAGE ASSOCIATION – LAYOUT SPÉCIFIQUE
   ========================= */

.info-cards {
  width: 75%;
  margin: 4rem auto;

  display: flex;
  gap: 3rem;
  align-items: stretch;
}

.info-card {
  flex: 1;
  background-color: rgba(11,130,147,0.25);
  border: 1px solid rgba(11,130,147,0.4);
  border-radius: 6px;
  padding: 2.5rem;

  color: #07090F;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);

  display: flex;
  flex-direction: column;
}

.info-card-wide {
  width: 100%;
}

/* titres */
.info-card h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

/* liens */
.info-card a {
  color: #0b8293;
  font-weight: 600;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}



.card-img {
   width: 100%;
  height: 33%;            /* hauteur fixe maîtrisée */
  object-fit: cover;
  object-position: center;
}

/* =========================
   NOS COMPÉTENCES – CARDS SPÉCIFIQUES
   ========================= */

.cards-competences {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 par ligne */
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 1000px;
}

/* cards plus grandes */
.cards-competences .card {
  padding: 2rem;
}

/* images grandes et uniformes */
.cards-competences .card-img {
  height: 260px;          /* plus grand que la home */
  width: 100%;
  
  object-fit: cover;     /* même rendu partout */
  border-radius: 6px;
}
/* =========================
   NOS COMPÉTENCES – LAYOUT SPÉCIFIQUE
   ========================= */

.cards.cards-competences {
  display: grid !important;              /* écrase le flex */
  grid-template-columns: repeat(2, 1fr); /* 2 par ligne */
  gap: 3rem;

  max-width: 1100px;
  margin: 0 auto;
}

/* cartes plus grandes */
.cards-competences .card {
  width: 100%;          /* annule les width fixes éventuelles */
  max-width: none;
}

/* images uniformes */
.cards-competences .card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}






.carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.slides {
  display: flex;
  width: 400%;
  height: 24rem;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 25%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.slide h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.slide p {
  width: 100%;
  font-size: 1.6rem;
}


/* couleurs  */
.slide-1,
.slide-3 {
background-color: rgba(175, 224, 232, 0.25);
}

.slide-2,
.slide-4 {
background-color: rgba(175, 224, 232, 0.25);
}

/* boutons */
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.7);
  border: none;
  font-size: 2.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
}

.carousel .prev {
  left: 1rem;
}

.carousel .next {
  right: 1rem;
}
.content-section {
  width: 70%;
  margin: 5rem auto;
  padding: 3rem;
  background-color: #ffffff;
  border-radius: 6px;
}

.content-section.alt {
  background-color: #F8F8F8;
}

.content-section h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.content-section p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  line-height: 2.4rem;
  max-width: 75ch;
}
.products {
  background-color: #F8F8F8;
  padding: 5rem 0;
  text-align: center;
}

.products h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 4rem;
}

.product-grid {
  width: 75%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid #E9E9E9;
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-card h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.product-card p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
}
.partners-carousel {
  width: 90%;
  margin: 3rem auto;
  overflow: hidden;
}

.partners-track {
  display: flex;
}

.partners-track img {
  flex: 0 0 25%;          /* 🔥 4 logos = 25% chacun */
  max-width: 25%;
  height: 120px;
  object-fit: contain;
}







/* MAIN */
main {
  padding-top: 200px;
}

/* CARTES */
.cards {
  width: 75vw;
  margin: 5rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 4rem;
}

.cards article {
  width: 25rem;
  background-color: #F8F8F8;
  border: 1px solid #E9E9E9;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* PARTENAIRES */
.partners {
  background-color: #F8F8F8;
  padding: 4rem 0;
  text-align: center;
}

.partners-logos {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 2rem;
}

.partners img {
  height: 80px;
}

/* CONTACT */
.contact {
  width: 40%;
  margin: 5rem auto;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #E9E9E9;
  background-color: #F8F8F8;
  font-family: 'Roboto', sans-serif;
}

.contact button {
  align-self: flex-end;
  background-color: rgba(11,130,147,0.25);
  color: #0b8293;
  border: none;
  padding: 0.8rem 1.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

.contact button:hover {
  background-color: #fff;
  border: 2px solid rgba(11,130,147,0.25);
}

/* FOOTER */
footer {
  background-color: #F8F8F8;
  padding: 4rem 0;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

footer a {
  text-decoration: none;
  color: #0b8293;
  font-weight: 600;
}
/* =========================
   RESPONSIVE – TABLETTE
   ========================= */
@media (max-width: 1024px) {

  .content-section,
  .product-grid,
  .contact {
    width: 85%;
  }

  .slides {
    height: 20rem;
  }

  .slide p {
    font-size: 1.4rem;
  }
}
@media (max-width: 1200px){
   .burger {
    display: block;
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 2.4rem;
    z-index: 1001;
 
  }

  .main-nav {
    position: relative;
  }

  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #51a4aa;

    flex-direction: column;
    align-items: center;

    padding: 1.5rem 0;
    gap: 1.5rem;
  }

  .main-nav ul.open {
    display: flex;
  }

  .main-nav a {
    font-size: 1.8rem;
    padding: 0.6rem 0;
    display: block;
  }
 .carousel {
    display: none;
  } 
  .cards.cards-home {
    grid-template-columns: 1fr;
  }
}
/* MOBILE */
@media (max-width: 768px) {
  .partners-track img {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .site-logo {
  height: 40Px;
}
.partner-logo {
  height: 30px;
}
  
  .info-cards {
    flex-direction: column;
    width: 90%;
  }
  .burger {
    display: block;
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 2.4rem;
    z-index: 1001;
  }

  .main-nav {
    position: relative;
  }

  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #51a4aa;

    flex-direction: column;
    align-items: center;

    padding: 1.5rem 0;
    gap: 1.5rem;
  }

  .main-nav ul.open {
    display: flex;
  }

  .main-nav a {
    font-size: 1.8rem;
    padding: 0.6rem 0;
    display: block;
  }
 .carousel {
    display: none;
  } 
  .cards.cards-home {
    grid-template-columns: 1fr;
  }
}

