/* ===== RESET MINIMAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== VARIABLES ===== */
:root {
  --content-max: 900px;
  --beige-clair: #faf8f5;
  --beige-moyen: #f2ede6;
  --beige-fonce: #4e4a46;
  --accent: #c9a876;
  --blanc: #ffffff;
  --ombre: 0 2px 8px rgba(78, 74, 70, 0.08);
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--beige-fonce);
  background-color: var(--beige-clair);
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: var(--blanc);
  box-shadow: var(--ombre);
}

header img {
  height: 60px;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--beige-fonce);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

#hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

/* ---------- Hero image sans overlay ---------- */
#hero-accueil {
  text-align: center;  /* centre l’image inline-block */
  padding: 0;          /* retire tout éventuel padding */
}

#hero-accueil img {
  display: inline-block;
  width: 90%;
  height: auto;
  max-width: 100%;     /* sécurité responsive */
}

/* ---------- Texte sous l’image ---------- */
#hero-texte {
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}

#hero-texte h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--beige-fonce);
}

#hero-texte h2 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--beige-fonce);
}

#hero-texte p {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--beige-fonce);
}

.btn-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 40px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-cta:hover {
  background: #b18e64;
}

.yblogo {
  display: flex;
  height: 100px;      /* ← ajoute « px » */
  width: auto;        /* ← laisse le ratio d’origine */
  padding: 0;
}

/* ===== SERVICES ===== */
#services {
  display: flex;
  gap: 40px;
  padding: 80px 40px;
  justify-content: center;
  flex-wrap: wrap;
}

#services article {
  width: 320px;
  background-color: var(--blanc);
  border-radius: 12px;
  box-shadow: var(--ombre);
  overflow: hidden;
  text-align: center;
}

#services img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

#services h3 {
  margin: 20px 0 10px;
  font-size: 1.25rem;
  color: var(--beige-fonce);
}

#services p {
  padding: 0 20px 30px;
  font-size: 0.9rem;
  color: var(--beige-fonce);
}

/* ===== TRUST ===== */
#trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  background-color: var(--beige-moyen);
}

#trust img {
  height: 60px;
  margin: 0 20px 20px;
}

#trust p {
  max-width: 600px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--beige-fonce);
}

/* ===== FOOTER ===== */
footer {
  padding: 30px;
  text-align: center;
  background-color: var(--blanc);
  font-size: 0.8rem;
  color: var(--beige-fonce);
}

/*===== Center text=====*/
.center-text{
  text-align: center;
}

.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; pointer-events: none; transition: .3s;
}
.popup-overlay.show {
   opacity: 1; pointer-events: auto; 
  }
.popup-content {
  background: #fff; padding: 30px; border-radius: 8px;
  width: 90%; max-width: 480px; position: relative;
}
.popup-close { 
  position: absolute; top: 8px; right: 12px; font-size: 24px; cursor: pointer; 
}
.popup-content label { 
  display: block; margin-bottom: 12px; font-size: 0.9em; 
}
.popup-content input, .popup-content select, .popup-content textarea {
   width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; 
  }
.popup-content button {
   background: var(--accent); color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; 
  }

/* ---------- MOBILE : 768 px ---------- */
@media (max-width: 768px) {

  /* --- HEADER --- */
  header {
    flex-direction: column;
    padding: 12px 15px;
  }
  .yblogo { height: 80px; }
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  /* --- CONTENEUR --- */
  .container { padding: 0 15px; }

  /* --- VIDÉO & CARTE --- */
  #map-tunisie iframe,
  #video-tunisie video {
    height: 250px;
  }
}