/* RESET MINIMAL */
:root {
  --header-height: 120px;
}

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

/* accessible mais masqué visuellement (titres de page, labels de formulaire) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 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.0rem;
  margin-bottom: 1rem;
}
 p {
  font-family: 'Roboto', sans-serif;  
  font-size: 1.0rem;
  line-height: 1.6;                   
  max-width: 75ch;                    
}
/* 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;
}
.error {
  border: 2px solid red;
  background-color: #ffe6e6;
}
button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}
/* =========================
   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 .product-image {
  order: 2;
}

.product-row.reverse .product-text {
  order: 1;
}

.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.2rem;   /* même taille que les cards */
  margin-bottom: 1rem;
}

.product-text p {
  font-family: 'Roboto', sans-serif;  
                 
  line-height: 1.6;                   
  max-width: 75ch;                    
}

/* 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;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 4000;
}

.main-nav {
  background-color: #51a4aa;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
}

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

.main-nav a {
  font-family: 'Josefin Sans', sans-serif;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.main-nav a:hover {
  background-color: rgba(255,255,255,0.15);
}
/* =========================
   FIL D’ARIANE
   ========================= */

.breadcrumb {
  width: 70%;
  margin: calc(var(--header-height) + 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;
}
button:hover{
  color: #aa5751;
  border-color: #aa5751;
  background-color: #ffffff;
}
/*carouselle */ 
/* =========================
   CARTES ASSOCIATION / CONCEPT / ACTIVITÉ
   ========================= */

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

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 3rem;
}

.card {
  height: 300px;               /* 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;
  font-size: 1.4rem;
  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: 496px;          /* -25% (800px -> 600px), puis -4 lignes de texte (~104px) */
  padding: 0;

  display: flex;
  flex-direction: column;
}

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

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

/* bouton */
.cards.cards-home > article.card .btn-more {
  align-self: flex-end;
  margin: 1rem 0.75rem 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%;
}

.info-card-wide p {
  max-width: none;
}

/* titres */
.info-card h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.0rem;
  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.cards-competences {
  display: grid;                         /* écrase le flex de .cards, spécificité suffisante */
  grid-template-columns: repeat(2, 1fr); /* 2 par ligne */
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 1000px;
}

/* cartes plus grandes, images uniformes */
.cards-competences .card {
  padding: 2rem;
  width: 100%;
  max-width: none;
}

.cards-competences .card-img {
  width: 100%;
  height: 260px;          /* plus grand que la home */
  object-fit: cover;      /* même rendu partout */
  border-radius: 6px;
}


.carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding-bottom: 2.5rem; /* espace dédié aux points, sous l'image */
  background-color: rgba(175, 224, 232, 0.25); /* même fond que les slides */
}

.slides {
  display: flex;
  width: 400%;
  height: 16rem;
  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 img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* conserve le ratio, pas de recadrage */
}

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

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


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

/* pagination par points (remplace les flèches précédent/suivant) */
.carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0b8293;
  padding: 0;
  background-color: rgba(255,255,255,0.9);
  cursor: pointer;
}

.carousel-dots .dot.active {
  background-color: #0b8293;
}
.content-section {
  width: 70%;
  margin: 5rem auto;
  padding: 3rem;
  background-color: #ffffff;
  border-radius: 6px;
}

/* pas de padding au-dessus du titre quand la section est la première
   de la page : évite l'espace supplémentaire avant le texte.
   Le h1.sr-only (accessibilité) précède souvent la section sans occuper
   d'espace visuel : il compte donc comme "première" au sens visuel. */
main > .content-section:first-child,
main > h1.sr-only:first-child + .content-section {
  padding-top: 0;
}

.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;

  line-height: 2.4rem;
  max-width: 75ch;
}

/* paragraphe d'intro pleine largeur (produits.html, contact.html) :
   annule le plafond de 75ch pour que le texte occupe toute la largeur
   du bloc .content-section, comme le reste de la mise en page */
.content-section p.intro-text {
  max-width: none;
}

/* variante fond blanc, sans marge droite (remplace le style inline dupliqué) */
.content-section.alt.section-white {
  background-color: #ffffff;
  margin-right: 0;
}

/* PRÉ-REQUIS SYSTÈME (page téléchargement) */
.system-req {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 1.5rem;
}

.system-req > div {
  flex: 1 1 250px;
}

.system-req img {
  height: 40px;
  margin-bottom: 1rem;
}

/* LISTE DE TÉLÉCHARGEMENTS */
.downloads ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.downloads li {
  margin-bottom: 1.2rem;
  line-height: 2rem;
}

/* VIDÉO INTÉGRÉE (iframe responsive 16:9) */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  margin: 1.5rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.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;

}
.partners-carousel {
  width: 90%;
  margin: 0 auto;
  padding: 0 3rem;
  overflow: hidden;
}

.partners-track {
  display: flex;
}

/* chaque logo occupe une case de largeur fixe et identique, quel que
   soit son ratio d'origine (sinon défilement au rythme irrégulier :
   les logos larges "poussent" plus loin que les logos carrés) */
.partners-track a {
  flex: 0 0 220px;
  width: 220px;
  height: 140px;
  margin: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-track img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}



/* MAIN */
main {
  padding-top: var(--header-height);
}

/* si un fil d'Ariane précède <main>, il a déjà compensé le header fixe :
   on annule le padding-top de main pour éviter un double espace */
nav.breadcrumb + main {
  padding-top: 0;
}

/* le header fixe est déjà compensé par le padding-top ci-dessus :
   on annule la marge haute de la première section de chaque page
   pour supprimer le double espace (marge de section + header) */
main > *:first-child {
  margin-top: 0 !important;
}

/* CARTES */
.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: 5px 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;
}

/* titre de section agrandi (remplace le style inline dupliqué) */
.title-lg {
  font-size: 2rem;
}

/* note de formulaire (remplace <label for=""> vide) */
.form-note {
  display: block;
  font-family: 'Roboto', sans-serif;
}

/* liens colorés ponctuels (remplacent le style inline dupliqué) */
.link-download {
  color: blue;
  text-decoration: none;
}

.link-external {
  color: orangered;
  text-decoration: none;
}

.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);
    color: #aa5751;
  border-color: #aa5751;

}

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

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
}
footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  flex-wrap: wrap;
}

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;
  }
  /* FIX MENU BURGER MOBILE */


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

    color: black;
 
  }
.burger.open {
  color: #0b8293; /* header reste blanc en permanence : garder une couleur contrastée */
}
.product-image{
display: none;
}
.product-text{
text-align:center;
margin:auto;
max-width:90%;
}

.product-text h2,
.product-text h3{
text-align:center;
}

.product-text p{
text-align:center;
}

 .main-nav ul {
  z-index: 2000;
}

  /* pas de position:relative ici : l'ancrage du menu ouvert se fait
     sur .site-header (position:fixed), le menu est maintenant imbriqué
     dans .header-top et n'a plus lui-même toute la largeur */

  .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) {

  html {
    font-size: 85%;
  }

  /* ===== Galerie responsive ===== */
  .gallery{
    display:grid;
    grid-template-columns:1fr;
    gap:15px;
    margin-top:20px;
  }

  .gallery img{
    width:100%;
    max-width:100%;
    height:auto;
    border-radius:8px;
    border:1px solid #ccc;
  }
/* sections produit identiques sur mobile */
.product-row,
.product-row.reverse{
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
width:100%;
}

/* texte */
.product-text{
max-width:90%;
margin:auto;
text-align:center;
}
  .burger {
    color: black;
    z-index: 2001;
  }


 .partners-track img{
  max-width: 100%;
  max-height: 100%;
}

  .partners-track a{
    width: 140px;
    height: 100px;
    margin: 0 8px;
  }


  .site-logo {
    height: 40px;
  }

  .partner-logo {
    height: 30px;
  }

  .info-cards {
    flex-direction: column;
    width: 90%;
  }

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

}

