/* === Variables de couleurs === */
:root {
  --vert-principal: #2e7d32;
  --vert-doux: #66bb6a;
  --vert-nature: #5a8f5a;
  --rose-energie: #b23a63;
  --fond-doux: #f6f1e7;
  --fond-clair: #f7f9f8;
  --texte-fonce: #2b2b2b;
}

/* === Styles généraux === */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--fond-doux);
  color: var(--texte-fonce);
}

/* === Header === */
header {
  position: relative;
  text-align: center;
  padding: 120px 20px;
  color: white;

  background:
  linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
  url("images/header.png");

  background-size: cover;
  background-position: center 80%;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

header * {
  position: relative;
  animation: fadeHero 1.2s ease;
  z-index: 1;
}

/* logo */
header img {
  max-width: 240px;
  height: auto;       /* conserve les proportions */
  margin-bottom: 10px;
  background: transparent;    /* plus de fond blanc */
  border-radius: 50%;         /* cercle parfait */
  display: block;
  margin-left: auto;
  margin-right: auto;         /* centré */
}

header h1 {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 15px;
}

header p {
  font-size: 1.3em;
  opacity: 0.9;
  max-width: 650px;
  margin: auto;
}

@keyframes fadeHero {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Menu hamburger dans le header === */
.menu-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 4px;
  margin: 6px 0;
  background: white;
  border-radius: 3px;
  transition: 0.3s;
}


/* Menu qui apparaît à l’intérieur du header */
.menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(6px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  transform: translateY(-100%);
  transition: transform 0.4s ease;

  z-index: 1000;
}

.menu a {
  color: white;
  font-size: 2em;
  text-decoration: none;
  margin: 15px;
  transition: 0.3s;
}

.menu a:hover {
  transform: scale(1.1);
  color: var(--vert-principal);
}

.menu.open {
  transform: translateY(0);
}

/* === Main & Sections === */
main {
  max-width: 1000px;
  margin: auto;
  padding: 70px 20px;
}

section {
  margin-bottom: 70px;
  text-align: center;
}

section h2 {
  color: var(--rose-energie);
  margin-bottom: 20px;
  font-size: 1.9em;
}

section h3 {
  color: var(--vert-doux);
  margin-bottom: 20px;
  font-size: 1.4em;
}

section p {
  max-width: 720px;
  margin: auto;
  font-size: 1.05em;
  line-height: 1.7;
}

/* === Bouton d'action === */
.cta {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 28px;
  background: var(--vert-principal);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* === Cards === */
.cards {
  display: flex;
  justify-content: center; /* centre les cards */
  gap: 30px;               /* espace entre elles */
  flex-wrap: nowrap;       /* aligné sur la même ligne */
  align-items: stretch;    /* même hauteur pour toutes les cards */
  margin-top: 40px;
  padding: 80px 20px;
}

@media (max-width: 1024px) {
  .cards {
    flex-wrap: wrap; /* les cartes passent à la ligne sur écran plus petit */
  }
}

.card {
  flex: 1 1 280px;           /* grow | shrink | base width */
  max-width: 280px;          /* ne pas dépasser cette largeur */
  background: white;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align:center;
  transition:all 0.35s ease;
  position:relative;
  overflow:hidden;
  display: flex;             /* pour aligner verticalement le contenu */
  flex-direction: column;    /* contenu en colonne */
}

.card-content {
  flex: 1;                   /* prend tout l’espace disponible pour égaliser la hauteur */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* espace uniforme à l’intérieur */
}

.card span {
  font-size: 2em;
  display: block;
  margin-bottom: 15px;
}

/* Effet lumière subtil */
.card::before{
  content:"";
  position:absolute;
  top:-50%;
  left:-50%;
  width:200%;
  height:200%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transform:rotate(25deg);
  opacity:0;
  transition:opacity 0.4s;
}

.card:hover::before{
  opacity:1;
}

.card:hover{
  transform:translateY(-10px);
  box-shadow:0 25px 50px rgba(0,0,0,0.15);
}

.card-icon{
  font-size:40px;
  margin-bottom:15px;
}

/* Title */

.card h4{
  font-size:22px;
  margin-bottom:10px;
}

/* Text */

.card p{
  font-size:15px;
  color:#666;
  margin-bottom:20px;
}

/* Button */

.card-btn{
  text-decoration:none;
  background:#111;
  color:white;
  padding:10px 18px;
  border-radius:8px;
  font-size:14px;
  transition:0.3s;
}

.card-btn:hover{
  background:#444;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 35px 20px;
  background-color: #ebe4d8;
  font-size: 0.9em;
  margin-top: 40px;
}