:root{
  --vert-pale: #A7C2A3;
  --rose-bois: #B27F73;
  --brun-terre: #845248;
  --texte-clair: #FFFDE0;
  --texte-fonce: #292A18;
  --glass: rgba(255,253,224,0.06);
  --transition: 300ms;
}

/* Reset & base */
*{box-sizing:border-box;margin:0;padding:0}
html, body {
  height: 100%;
}

body {
  display: flex;           /* Flex container vertical */
  flex-direction: column;   /* Header / main / footer en colonne */
  min-height: 100vh;        /* prend toute la hauteur de l’écran */
  font-family: "Montserrat";
  background: var(--texte-fonce);
  color: var(--texte-clair);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

main {
  flex: 1;
}

/* Header */
.header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 2rem;
  background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(0,0,0,0.08));
  border-bottom: 1px solid rgba(255,253,224,0.04);
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter: blur(6px);
}
.brand {
  display:flex;
  gap:.8rem;
  align-items:center;
}
.brand h1 {
    color: var(--vert-pale);
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--texte-clair);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), inset 0 2px 6px rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* pour que l'image respecte le cercle */
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* l'image remplit le cercle sans déformation */
}

.brand h1{
  font-size:1.2rem;letter-spacing:0.6px;
}
.brand p{font-size:.78rem;color:rgba(255,253,224,0.7);margin-top:2px}

/* Nav */
.nav {
  display:flex;align-items:center;gap:1rem;
}
.nav a{
  background: var(--brun-terre);
  color: var(--texte-clair);
  text-decoration:none;
  padding:.5rem .8rem;
  border-radius:8px;
  font-weight:600;
  transition:all var(--transition) ease;
  opacity:.95;
}
.nav a:hover{
  transform:translateY(-3px);
  background: linear-gradient(90deg, rgba(167,194,163,0.06), rgba(178,127,115,0.05));
  color: var(--vert-pale);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.menu-toggle{display:none;cursor:pointer}

/* Hero */
.hero {
  padding:1rem 1.2rem 2rem;
  text-align:center;
  background-image: radial-gradient( circle at 20% 10%, rgba(178,127,115,0.06), transparent 15%),
                    radial-gradient( circle at 80% 90%, rgba(159,91,78,0.04), transparent 12% );
}
.hero .kicker{
  display:inline-block;
  padding:.35rem .8rem;
  border-radius:999px;
  background: var(--vert-pale);
  color:var(--texte-fonce);
  font-weight:700;
  margin-bottom:1rem;
}
.hero h2{
  margin-top:1rem;
  margin-bottom: 1rem;
  font-size:2.3rem;
  color: var(--texte-clair);
  text-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.hero p{max-width:820px;margin:0rem auto;color:rgba(255,253,224,0.85)}

/* Sections */
.container {
  max-width:1200px;
  margin:2rem auto;
  padding:0 1rem
}
.card {
  background: linear-gradient(180deg, rgba(255,253,224,0.02), rgba(255,253,224,0.01));
  border:1px solid rgba(255,253,224,0.03);
  padding:1.4rem;
  border-radius:12px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
}

.card ul {
  margin-left: 1.5rem;
}

.presentation-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,253,224,0.02), rgba(255,253,224,0.01));
  border: 1px solid rgba(255,253,224,0.03);
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
  max-width: 800px;
  margin: 2rem auto;
}

.presentation-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,253,224,0.1);
}

.presentation-card .text {
  padding: 1.4rem;
  color: var(--texte-clair);
}

.presentation-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
  color: var(--vert-pale);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* version desktop → image à gauche, texte à droite */
@media (min-width: 700px) {
  .presentation-card {
    flex-direction: row;
    min-height: 320px;
    height: auto;
  }
  .presentation-card img {
    width: 40%;
    height: auto;
    border-right: 1px solid rgba(255,253,224,0.1);
    border-bottom: none;
  }
  .presentation-card .text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
  }
  .presentation-card p {
    margin-bottom: 1rem;
  }
}

/* Services grid */
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1.2rem;
}
.service {
  padding:1.2rem;border-radius:10px;
  background: rgba(178,127,115,0.06);
  color:var(--texte-clair);
  display: flex;
  flex-direction: column;
}
.service h3{margin-bottom:.6rem;font-size:1.1rem}
.service p{color:rgba(255,253,224,0.9)}

/* Contenu centré verticalement */
.service .service-content {
  flex: 1;
  display: flex;
  flex-direction: column; /* empile les <p> */
  justify-content: center; /* centre verticalement */
}


/* Titre des groupes */
.group-title {
  font-size: 1.8rem;
  margin: 3rem 0 1.5rem;
  color: var(--vert-pale);
  text-align: center;
  text-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

/* Groupes de services sans images → max 3 colonnes */
.services-grid:not(.with-images) {
  display: grid;
  grid-template-columns: 1fr;       /* par défaut : 1 bloc par ligne */
  gap: 1.2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* À partir de 700px → 2 colonnes */
@media (min-width: 700px) {
  .services-grid:not(.with-images) {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* À partir de 1000px → 3 colonnes */
@media (min-width: 1000px) {
  .services-grid:not(.with-images) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Groupe avec images */
.services-grid.with-images .service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.services-grid.with-images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,253,224,0.1);
}

.services-grid.with-images .text {
  padding: 1rem 1.2rem;
}

.services-grid.with-images h3 {
  margin-top: 0.4rem;
}

.services-grid.with-images {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  gap: 2rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Adaptation responsive */
@media (min-width: 800px) {
  .services-grid.with-images {
    grid-template-columns: repeat(2, 1fr); /* max 2 colonnes */
    padding: 0 2rem;
  }
  .services-grid.with-images .service {
    flex-direction: row;
  }
  .services-grid.with-images img {
    width: 40%;
    height: 100%;
    border-right: 1px solid rgba(255,253,224,0.1);
    border-bottom: none;
  }
  .services-grid.with-images .text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* pour que la carte occupe 2 colonnes sur desktop */
.services-grid.with-images .double-card {
  grid-column: span 2; /* prend 2 colonnes */
  height: auto; /* la hauteur dépend du contenu texte */
  display: flex; /* pour que texte et image soient côte à côte */
  align-items: flex-start; /* le texte définit la hauteur */
}

/* Image dans la double-card */
.double-card img {
  width: 40%;       /* occupe 40% de la largeur */
  height: auto;     /* respecte le ratio, ne force pas la hauteur */
  max-height: 320px; /* optionnel : limite la taille de l’image */
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;   /* empêche l’image de se réduire si texte petit */
  align-items: center;
  
}

/* Contenu texte */
.double-card .text {
  flex: 1; /* prend le reste de l’espace */
  display: flex;
  flex-direction: column;
}

/* listes côte à côte */
.double-card .lists {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.double-card .lists ul {
  flex: 1;
  padding-left: 1.2rem;
  margin: 0;
}

/* espacement des paragraphes spécifiques */
.double-card .text .spacer {
  margin-bottom: 1.5rem;
}

/* Responsive : sur mobile, on empile tout */
@media (max-width: 799px) {
  .services-grid.with-images .double-card {
    grid-column: auto; /* reprend la largeur normale */
    flex-direction: column; /* image au-dessus du texte */
  }
  .double-card img {
    width: 100%;
    max-height: 250px; /* optionnel */
  }
}


.services-grid.with-images .single-card {
  grid-column: span 2; /* prend 2 colonnes */
  height: auto; /* la hauteur dépend du contenu texte */
  display: flex; /* pour que texte et image soient côte à côte */
  align-items: flex-start; /* le texte définit la hauteur */
}

/* Image dans la single-card */
.single-card img {
  width: 40%;       /* occupe 40% de la largeur */
  height: auto;     /* respecte le ratio, ne force pas la hauteur */
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;   /* empêche l’image de se réduire si texte petit */
  align-items: center;
}

/* Contenu texte */
.single-card .text {
  flex: 1; /* prend le reste de l’espace */
  display: flex;
  flex-direction: column;
}

/* listes côte à côte */
.single-card .lists {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.single-card ul {
  flex: 1;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* espacement des paragraphes spécifiques */
.single-card .text .spacer {
  margin-bottom: 1.5rem;
}

/* Responsive : sur mobile, on empile tout */
@media (max-width: 799px) {
  .services-grid.with-images .single-card {
    grid-column: auto; /* reprend la largeur normale */
    flex-direction: column; /* image au-dessus du texte */
  }
  .single-card img {
    width: 100%;
    max-height: 250px; /* optionnel */
  }
}

.custom-card {
  display: flex;
  flex-direction: column; /* mobile par défaut */
  background: linear-gradient(180deg, rgba(255,253,224,0.02), rgba(255,253,224,0.01));
  border: 1px solid rgba(255,253,224,0.03);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
  max-width: 800px;
  min-width: none;
  margin: 2rem auto;
}

.custom-card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.custom-card-text {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* texte en haut */
}

.custom-card-text h3 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.custom-card-text p {
  color: var(--texte-clair);
}

.custom-card-text ul {
  margin: 1rem;
}

/* Desktop : image à gauche, texte à droite */
@media(min-width: 700px) {
  .custom-card {
    flex-direction: row;
    height: auto; /* dépend du contenu */
    width: auto;
  }
  .custom-card-img {
    width: 40%;
    height: auto;
    border-right: 1px solid rgba(255,253,224,0.1);
  }
  .custom-card-text {
    flex: 1;
  }
  .custom-card ul {
    margin: 1rem;
  }
}

/* Footer */
.footer {
  background:var(--vert-pale);
  color:var(--texte-fonce);
  padding:.8rem 1rem;text-align:center;font-size:.9rem;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.4);
}

/* Contact form base */
.form {
  display:grid;gap:.8rem;max-width:560px;margin:0 auto;
}
.form label {
  color: var(--brun-terre);
}
.form input,.form textarea{
  padding:.85rem;border-radius:8px;border:1px solid rgba(255,253,224,0.07);
  background: linear-gradient(180deg, rgba(255,253,224,0.02), rgba(0,0,0,0.04));
  color:var(--texte-clair);
}
.btn {
  display:inline-block;padding:.7rem 1rem;border-radius:8px;background:var(--brun-terre);
  color:var(--texte-clair);border:none;font-weight:700;cursor:pointer;
}

/* small helpers */
.kv{display:flex;gap:1rem;align-items:center}
.small{font-size:.9rem;color:rgba(255,253,224,0.8)}
.sall-size{font-size:.9rem;color:rgba(255,253,224,0.8);}

/* Blocs d'accueil */ 
.blocks-grid {
  display: flex;
  flex-direction: column; /* blocs en colonne */
  gap: 2rem; /* espace entre chaque bloc */
  margin-top: 3rem;
}

.block {
  display: flex;
  flex-direction: column; /* mobile : image en haut, texte en dessous */
  gap: 1rem;
  width: 100%;
  padding: 2rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,253,224,0.02), rgba(255,253,224,0.01));
  border: 1px solid rgba(255,253,224,0.03);
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* Contenu textuel */
.block-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* texte en haut, bouton en bas */
  flex: 1; /* prend toute la hauteur disponible du bloc */
  width: 100%;
}

/* Image dans le bloc */
.block img {
  width: 100%;
  height: auto; /* respecte le ratio */
  object-fit: cover;
  border-radius: 12px;
}

/* Bouton centré au bas du contenu */
.block .btn {
  align-self: center;
  margin-top: 1.5rem;
  position: relative;
}

/* Desktop : image à gauche / droite */
@media (min-width: 800px) {
  .block {
    flex-direction: row; /* image et texte côte à côte */
    gap: 2rem;
    padding: 3rem;
  }
  .block img {
    width: 40%; /* occupe 40% de la largeur */
    height: auto; /* respecte le ratio */
    border-radius: 12px;
  }
  /* Variante image à droite */
  .block.right {
    flex-direction: row-reverse;
  }
}

/* Bouton en bas à droite du bloc */
.small-btn {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

/* Bouton global en dessous des blocs */
.center-btn {
  margin-top: 2.5rem;
  text-align: center;
}

.big-btn {
  font-size: 1.2rem;
  padding: 1.1rem 2.4rem;
}

/* Harmonisation des boutons avec les liens du menu */
.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--brun-terre);
  color: var(--texte-clair);
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none; /* au cas où c’est un <a> */
  transition: all var(--transition) ease;
  opacity: 0.95;
}

.btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, rgba(167,194,163,0.06), rgba(178,127,115,0.05));
  color: var(--vert-pale);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

/* Overlay du menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: none; /* caché par défaut */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.3s ease forwards;
}

/* Animation d'apparition */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Liens du menu overlay */
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.overlay-nav a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--texte-clair);
  transition: color var(--transition);
}

.overlay-nav a:hover {
  color: var(--vert-pale);
}

/* Bouton fermer */
.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 3rem;
  background: none;
  border: none;
  color: var(--texte-clair);
  cursor: pointer;
  transition: color var(--transition);
}

.close-btn:hover {
  color: var(--vert-pale);
}

/* Responsive */
@media(max-width:800px){
  .nav{display:none}
  .menu-toggle{display:block}
  .hero h2{font-size:1.9rem}
  .gallery-grid img{height:160px}
}

.spacer-top {
  margin-top: 1.5px;
}

.spacer-bottom {
  margin-bottom: 1.5px;
}
