/*
   Generale
*/
/*definition de police*/
@font-face {
  font-family: "Kollektif-Regular";
  src: url("/assets/fonts/Kollektif.woff2") format("woff2"),
    url("/assets/fonts/Kollektif.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kollektif";
  src: url("/assets/fonts/Kollektif-Italic.woff2") format("woff2"),
    url("/assets/fonts/Kollektif-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Kollektif";
  src: url("/assets/fonts/Kollektif-Bold.woff2") format("woff2"),
    url("/assets/fonts/Kollektif-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Maison-Neue";
  src: url("assets/fonts/Maison-Neue-Book.ttf");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kollektif";
  src: url("/assets/fonts/Kollektif-BoldItalic.woff2") format("woff2"),
    url("/assets/fonts/Kollektif-BoldItalic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* Définition de la police */
@font-face {
  font-family: "Maison-Neue";
  src: url("assets/fonts/Maison-Neue-Book.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: "Maison-Neue", sans-serif !important;
  font-weight: normal;
  color: #333333;
}

/* Paragraphes */
p {
  font-family: "Maison-Neue", sans-serif !important;
  line-height: 1.5;
  color: #333333;
}

/* Boutons */
button, .btc button, .container .ctl {
  font-family: "Maison-Neue", sans-serif !important;
}

/* Liens */
a {
  font-family: "Maison-Neue", sans-serif !important;
}

/* Formulaires */
input, select, textarea {
  font-family: "Maison-Neue", sans-serif !important;
}


@keyframes slidRight {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes scaleIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-logo {
  animation: scaleIn 0.8s ease-out;
}
body {
  background-color: #fefee2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
 font-family: "Maison-Neue", sans-serif !important;
 color: #333;
}
h2 {
  text-align: center;
  font-size: 1.3rem;
  font-family: "Maison-Neue", sans-serif;
  font-weight: normal;
  text-transform: capitalize;
  margin-bottom: 30px;
  color: black;
}
/* pour le boutton voir */
.btc button {
  display: block;
  margin: 0 auto;
  min-height: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: #002955;
  color: #eeeee1;
  border: 2px solid #2f4f4f;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  margin-bottom: 20px;
  margin-top: 10px;
  transition: all 0.3s ease-in-out;
  font-size: 0.5rem;
  width: 100%;
  max-width: 300px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.btc button:hover {
  background-color: #eeeee1;
  color: #002955;
}

.btc button:hover a {
  background-color: #eeeee1;
  color: #002955;
}

.btc button a {
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  color: #fefee2;
  display: inline-block;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.btc button a:hover {
  color: #002955;
}

@media (max-width: 480px) {
  .btc button {
    font-size: 0.95rem;
    padding: 0.5rem 0.5rem;
    min-height: 1.2rem;
    max-width: 90vw;
  }
  .btc button a {
    font-size: 0.65rem;
  }
}

/*Principale*/
.main {
  background: linear-gradient(
    to left,
    #a0a090,
    #bdbca8,
    #babca6,
    #fbffde,
    #babca6
  );
  color: white;
  padding: 100px 20px;
  text-align: center;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.container h1 {
  text-align: center;
  font-family: "Maison-Neue", sans-serif;
  color: #333333;
  animation: slidRight 2.5s ease-out forwards;
}
.container {
  padding-bottom: 20px;
}

.container h1 {
  text-align: center;
  animation: slidRight 2.5s ease-out forwards;
}
.container p {
  text-align: center;
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.5;
  font-family: "Maison-Neue" serif;
  animation: slidRight 2.5s ease-out forwards;
}
.title {
  font-family: "Maison-Neue", sans-serif;
  font-weight: normal;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #333;
  margin-top: 1rem;
}
@media (max-width: 480px) {
  .container p {
    font-size: 13px;
  }
}

.container .ctl {
  display: block;
  margin: 0 auto;
  height: 2.5rem;
  padding: 0 1rem;
  background-color: #002955;
  font-size: 20px;
  color: #fefee2;
  border: 2px solid #2f4f4f; /* DarkSlateGray */
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  animation: slidRight 3.5s ease-out forwards;
}

.container .ctl a {
  text-decoration: none;
  color: #fefee2;
}
.container .ctl:hover a {
  text-decoration: none;
  color: #002955;
}
.container .ctl a:hover {
  color: #002955;
}

.container .ctl:hover {
  background-color: #eeeee1;
  color: #002955;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.main {
  padding: 2rem 0;
}

.logo-container img {
  transition: transform 0.3s ease;
}

.title {
  font-family: "Maison-Neue", sans-serif  ;
  font-weight: normal;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #333;
}
.animate-logo {
  width: 18em;
  height: 17em;
  vertical-align: middle;
  animation: scaleIn 0.8s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .main {
    padding: 1rem 0 2rem 0; /* ajoute espace bas */
  }
  
  .title {
    font-size: 0.7rem;
    line-height: 1.3;
    font-style: normal;
    font-weight: normal;
    text-align: center;
    margin-top: 5rem;
  }
  .animate-logo {
    width: 8em;
    height: 8em;
    vertical-align: middle;
  }
  .btc {
    text-align: center;
    margin-top: 1rem; 
    margin-bottom: 2rem; /* évite chevauchement */
  }

  .logo-container {
    margin-bottom: 1rem;
  }
}

/*Qui sommes nous*/
.Apprpos {
 
  padding-bottom: 2rem;
  padding-left: 1rem;  /* moins de padding horizontal */
  padding-right: 1rem;
  background-color: #fefee2;
  border-radius: 1rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  margin-left: 1rem; /* optionnellement réduit */
  margin-right: 1rem;
  margin-top: -rem;  /* remonte un peu la section */
  max-width: 80rem;   /* réduit la largeur max */
  position: relative;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem; /* réduit l’espace entre les enfants */
}

/* Texte plus petit */
.Apprpos p,
.Apprpos a {
  font-size: 0.9rem;
}

.Apprpos .art {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  
}

.Apprpos article {
  flex: 1;
}

article .imgEnt {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 13px rgba(0, 0, 0, 0.2);
}

.grid-contains {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 40px;
}
.art a {
  text-align: start;
  text-decoration: none;
  font-size: 1.3rem;
  color: #002955;
  transition: transform 0.3s, box-shadow 0.3s;
}

.art a:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  text-decoration: underline;
}
.art h2 {
  text-align: start;
  font-family: "Maison-Neue", sans-serif;
  font-weight: normal;
}
/*responsive design pour la partie qui somme-nous*/
@media (max-width: 768px) {
  .Apprpos .art {
    flex-direction: column;
    text-align: center;
  }

  .Apprpos .art article {
    text-align: start; /* Ajouté pour aligner le lien à gauche */
  }

  .art article a {
    text-decoration: none;
    font-size: 1.3rem;
    color: #002955;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block; /* Optionnel mais améliore l'affichage du lien */
    margin-bottom: 1rem;
  }

  .Apprpos .art img {
    max-width: 100%;
    margin: 1rem auto;
    display: block;
  }

  .Apprpos .art p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
  }

  .Apprpos {
    margin-top: 2rem;
    padding: 2rem 1rem;
  }
}


@media (min-width: 768px) {
  .grid-contains {
    grid-template-columns: repeat(2, 1fr);
  }
  .art a {
    text-align: start;
  }
}
@media (min-width: 1024px) {
  .grid-contains {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*pour les differents cards qui contiens le differents domaine*/
.card-contains {
  background-color: #f2d29b;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-contains:hover {
  transform: scale(1.05);
  cursor: pointer;
}
.card-contains:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15); /* hover:shadow-xl */
}

/*Nos equipes*/
.equipes {
  border-radius: 15px 15px 15px 15px;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}
/* Animation de la carte au survol */
.card-animated {
  background-color: #f2d29b;
  transition: transform 0.5s, box-shadow 0.5s;
}
/*actualite*/
.card-actualite {
  transition: transform 0.5s, box-shadow 0.5s;
}
.card-animated:hover,
.card-actualite:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/*section carriere*/
.section-carriere {
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 10px;
  font-family:  'Maison Neue', sans-serif;
  font-size: 15px;
  font-style: normal;
  color: #393838;
  word-break: break-word;
  white-space: normal;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Contact Section ===== */
.contact {
  padding: 3rem 1rem;
  background-color: #fefee2;
}

.contact h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-family: "Maison-Neue", sans-serif;
  color: #002955;
}

.contact p {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  color: #333;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 auto;
}

/* Formulaire */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact form input,
.contact form select,
.contact form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.contact form input:focus,
.contact form select:focus,
.contact form textarea:focus {
  outline: none;
  border-color: #002955;
  box-shadow: 0 0 5px rgba(0,41,85,0.2);
}

.contact form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact form button {
  background-color: #002955;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.3s ease;
}

.contact form button:hover {
  background-color: #014a91;
}

/* Bloc Coordonnées */
.Coordonnees {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.Coordonnees h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #002955;
  font-family: "Maison-Neue", sans-serif;
}

.contact-info p {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #333;
}

.contact-info i {
  font-size: 1.2rem;
  color: #002955;
  margin-right: 0.5rem;
}

.contact-info a {
  color: #002955;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact form,
  .Coordonnees {
    padding: 1rem;
  }
  .section-carriere{
    padding-left: 5px;
    padding-right: 5px;
    font-size: 0.9rem;
    text-align: justify;
  }
}
