/* -------------------- STYLES.CSS -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

/* ----- Général ----- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  background-color: #fdfdfd;
  color: #222;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0.5em 0;
}

/* ----- Header ----- */
.header {
  position: relative;
  background: url('../images/image4.jpg') center/cover no-repeat;
  height: 100vh;
  color: white;
}

.top-bar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  flex-wrap: wrap;
  z-index: 100;
}

.logo {
  width: 100px;
}

.nav-desktop ul {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-desktop a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease;
}

.nav-desktop a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

.nav-desktop .cta {
  background: white;
  color: black;
  border-radius: 5px;
}

/* ----- Accroche ----- */
.accroche {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
}
.accroche h1 {
  font-size: 2.2rem; /* ou plus, selon ce que tu souhaites */
  margin-bottom: 0.3em;
}

.accroche h2 {
  font-size: 2rem;
  font-weight: 400;
}


/* ----- Contenu 1 : 3 icônes ----- */
article {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
}

.contenu1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 3rem 2rem;
  text-align: center;
  gap: 1.5rem;
}

.contenu1 article {
  flex: 1 1 30%;    /* flex-grow, flex-shrink, flex-basis */
  min-width: 220px; /* limite de rétrécissement */
  max-width: 32%;   /* max largeur pour garder côte à côte */
  margin-bottom: 2rem;
  box-sizing: border-box;
}

.contenu1 i {
  font-size: 3rem;
  color: #4caf50;
  margin-bottom: 1rem;
}

.jump {
  animation: jump 0.6s ease-in-out infinite alternate;
  display: inline-block;
}
/* ----- Effet jump sur les icônes ----- */
.jump {
  animation: jump 2s ease-in-out 1;
}
@keyframes jump {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.accroche-texte {
  width: 100%;
  text-align: center;
  font-size: 1.2em;
  margin-top: 1rem;
}

/* ----- Galerie ----- */
.galerie {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  padding: 2rem;
  flex-wrap: wrap;
  background-color: #f2f2f2;
}

.galerie img {
  width: 30%;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* ----- Contenu 2 ----- */
.contenu2 {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem;
}

.contenu2 img {
  width: 50%;
  border-radius: 10px;
}

.contenu2 .texte {
  flex: 1;
}

.cta {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.cta:hover {
  background: #444;
}

/* ----- Footer ----- */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

footer h4 {
  margin-bottom: 0.5rem;
}

footer .social a {
  color: white;
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

footer .social a:hover {
  color: #8fdee3;
}
