:root{
  --vert:#0B6B3A; --vert-d:#075030; --or:#C9A227; --rouge:#D32F2F;
  --gris:#F5F6F5; --texte:#1c1c1c; --radius:12px;
  --ombre:0 4px 18px rgba(0,0,0,.08);
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Tajawal','Cairo',sans-serif;direction:rtl;color:var(--texte);background:#fff}
a{text-decoration:none;color:inherit}
.container{max-width:1180px;margin:auto;padding:0 20px}

/* ---------- HEADER ---------- */
header{background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06);position:sticky;top:0;z-index:99}
.nav{display:flex;align-items:center;justify-content:space-between;height:86px}
.logo{display:flex;align-items:center;gap:12px}
.logo img{height:56px}
.logo span{font-weight:800;line-height:1.3;font-size:15px;color:var(--vert-d)}
.menu{display:flex;gap:28px;font-weight:600;font-size:15px;flex:1;justify-content:center}
.menu a{padding:6px 0;border-bottom:3px solid transparent;transition:.2s}
.menu a:hover,.menu a.active{color:var(--vert);border-color:var(--vert)}
.btn-login{background:var(--vert);color:#fff;padding:11px 22px;border-radius:8px;font-weight:700;display:flex;gap:8px;align-items:center}
.burger{display:none;font-size:26px;background:none;border:0}

/* ---------- HERO ---------- */
.hero{background:linear-gradient(90deg,#f7f4ec 0%,#fbfaf6 100%);position:relative;overflow:hidden}
.hero-in{display:grid;grid-template-columns:1fr 1fr;align-items:end;min-height:430px}
.hero-txt{padding:50px 0 60px}
.eyebrow{color:var(--rouge);font-weight:700;letter-spacing:2px;display:flex;align-items:center;gap:10px;justify-content:flex-start}
.eyebrow::after,.eyebrow::before{content:"";height:2px;width:40px;background:var(--rouge)}
.hero h1{font-size:58px;color:var(--vert);margin:14px 0 8px;font-weight:900}
.sep{width:170px;height:14px;margin:14px 0;background:
  radial-gradient(circle,var(--or) 3px,transparent 4px) center/22px 100% repeat-x}
.hero h2{font-size:30px;font-weight:800;color:#2b2b2b}
.hero h3{font-size:24px;color:var(--vert);margin-top:6px;font-weight:600}
.hero-cta{display:flex;gap:16px;margin-top:34px;flex-wrap:wrap}
.cta{display:flex;align-items:center;gap:12px;padding:14px 20px;border-radius:10px;color:#fff;min-width:190px;box-shadow:var(--ombre);transition:.25s}
.cta:hover{transform:translateY(-4px)}
.cta b{display:block;font-size:16px}.cta small{opacity:.9;font-size:12px}
.cta.vert{background:var(--vert)}.cta.rouge{background:var(--rouge)}.cta.or{background:var(--or)}
.cta i{font-size:24px}
.hero-img img{width:100%;display:block}

/* ---------- SERVICES ---------- */
.section{padding:56px 0}
.titre{text-align:center;font-size:28px;font-weight:800;margin-bottom:8px}
.points{display:flex;gap:6px;justify-content:center;margin-bottom:34px}
.points i{width:8px;height:8px;border-radius:50%;background:var(--or);display:block}
.points i:nth-child(2){background:var(--rouge)}
.grid5{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.card{background:#fff;border:1px solid #ececec;border-radius:var(--radius);padding:26px 18px;text-align:center;transition:.25s}
.card:hover{box-shadow:var(--ombre);transform:translateY(-6px);border-color:transparent}
.ic{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;color:#fff;font-size:22px}
.ic.vert{background:var(--vert)}.ic.rouge{background:var(--rouge)}.ic.or{background:var(--or)}
.card h4{font-size:17px;margin-bottom:8px}
.card p{font-size:13px;color:#666;line-height:1.8;min-height:60px}
.plus{color:var(--vert);font-weight:700;font-size:13px}

/* ---------- BANDEAU ---------- */
.bande{background:var(--vert);color:#fff;border-radius:var(--radius);display:grid;grid-template-columns:repeat(3,1fr);padding:26px 10px;margin-bottom:50px}
.bande div{display:flex;align-items:center;justify-content:center;gap:14px;border-left:1px solid rgba(255,255,255,.25)}
.bande div:last-child{border:0}
.bande b{display:block;font-size:17px}.bande small{opacity:.85}

/* ---------- FOOTER ---------- */
footer{background:var(--vert-d);color:#fff;padding:22px 0;font-size:14px}
.foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px}
.soc{display:flex;gap:10px}
.soc a{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center}

/* ---------- FORMULAIRES / PAGES ---------- */
.page-head{background:var(--vert);color:#fff;padding:42px 0;text-align:center}
.page-head h1{font-size:32px}
.box{background:#fff;border:1px solid #e8e8e8;border-radius:var(--radius);padding:30px;box-shadow:var(--ombre);max-width:820px;margin:40px auto}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
label{font-weight:600;font-size:14px;display:block;margin:14px 0 6px}
input,select,textarea{width:100%;padding:12px 14px;border:1px solid #dcdcdc;border-radius:8px;font-family:inherit;font-size:15px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--vert);border-color:transparent}
.btn{background:var(--vert);color:#fff;border:0;padding:14px 30px;border-radius:8px;font-weight:700;cursor:pointer;font-size:16px;margin-top:22px}
.btn.or{background:var(--or)}.btn.rouge{background:var(--rouge)}
.alert{padding:14px 18px;border-radius:8px;margin-bottom:18px;font-weight:600}
.ok{background:#e8f5ec;color:var(--vert-d);border:1px solid var(--vert)}
.err{background:#fdecea;color:#9b1c14;border:1px solid var(--rouge)}
.badge{padding:5px 12px;border-radius:20px;font-size:12px;font-weight:700;color:#fff}
.b-new{background:var(--rouge)}.b-prog{background:var(--or)}.b-done{background:var(--vert)}

/* créneaux RDV */
.slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-top:10px}
.slot{border:1px solid #ddd;border-radius:8px;padding:10px;text-align:center;cursor:pointer;font-weight:600}
.slot.sel{background:var(--vert);color:#fff;border-color:var(--vert)}
.slot.off{background:#f1f1f1;color:#aaa;cursor:not-allowed;text-decoration:line-through}

/* tableaux admin */
table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;box-shadow:var(--ombre)}
th{background:var(--vert);color:#fff;padding:13px;font-size:14px}
td{padding:12px;border-bottom:1px solid #eee;font-size:14px}
tr:hover td{background:#fafafa}

@media(max-width:980px){
  .grid5{grid-template-columns:repeat(2,1fr)}
  .hero-in{grid-template-columns:1fr}.hero-img{display:none}
  .hero h1{font-size:40px}
  .bande{grid-template-columns:1fr;gap:18px}.bande div{border:0}
  .menu{display:none;position:absolute;top:86px;right:0;left:0;background:#fff;flex-direction:column;padding:20px;gap:16px;box-shadow:var(--ombre)}
  .menu.open{display:flex}.burger{display:block}
  .f-row{grid-template-columns:1fr}
}
/* ===== Amélioration de la photo d'accueil ===== */

.hero-in {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: 40px;
  min-height: auto;
}

/* Cadre de la photo */
.hero-img {
  display: block;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;

  border-radius: 32px;
  overflow: hidden;
  border: 4px solid #fff;

  box-shadow:
    0 18px 40px rgba(7, 80, 48, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Photo entière, sans étirement ni recadrage */
.hero-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* Le texte ne colle plus à la photo */
.hero-txt {
  min-width: 0;
  padding: 16px 0;
}

.hero h1 {
  font-size: clamp(34px, 3.5vw, 56px);
  line-height: 1.25;
}

/* Les boutons s'adaptent à la place disponible */
.hero-cta {
  gap: 12px;
}

.hero-cta .cta {
  min-width: 0;
  flex: 1 1 190px;
}

/* Tablette et téléphone : texte, puis photo */
@media (max-width: 980px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 30px;
  }

  .hero-txt {
    grid-row: 1;
    padding: 0;
  }

  .hero-img {
    display: block;
    grid-row: 2;
    max-width: 360px;
    border-radius: 26px;
  }
}