/* ═══════════════════════════════════════════════════
   أوتو إيكول الصاخي زينب — STYLESHEET v3
   Palette : Rouge #C8191A · Vert #1A6B3C · Or #C8922A
   ═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --red:     #C8191A;
  --red-dk:  #9E1315;
  --red-lt:  #FDECEA;
  --green:   #1A6B3C;
  --green-dk:#124D2B;
  --green-lt:#E8F5EE;
  --gold:    #C8922A;
  --gold-lt: #F5DFA0;
  --gold-dk: #8B6318;
  --cream:   #FDF9F3;
  --cream2:  #F5EFE4;
  --white:   #FFFFFF;
  --dark:    #1A0E05;
  --mid:     #3D2810;
  --muted:   #7A6545;
  --border:  #E5D9C8;
  --sh-sm: 0 2px 12px rgba(26,14,5,.08);
  --sh-md: 0 8px 32px rgba(26,14,5,.13);
  --sh-lg: 0 20px 60px rgba(26,14,5,.19);
  --r:  14px;
  --rs: 10px;
  --tr: .26s cubic-bezier(.4,0,.2,1);
  --font: 'Tajawal', Arial, sans-serif;
  --serif: 'Amiri', Georgia, serif;
}

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:var(--font);background:var(--cream);color:var(--dark);line-height:1.75;overflow-x:hidden;direction:rtl}
img{max-width:100%;display:block;object-fit:cover}
a{text-decoration:none;color:inherit}

.container{width:100%;max-width:1160px;margin:0 auto;padding:0 24px}

/* ══════════════════════════════
   ZELLIGE BAND — décor marocain
══════════════════════════════ */
.zellige {
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  z-index: 5;
  background: repeating-linear-gradient(
    90deg,
    var(--red)   0,  var(--red)   18px,
    var(--gold)  18px,var(--gold) 20px,
    var(--green) 20px,var(--green)38px,
    var(--gold)  38px,var(--gold) 40px,
    var(--white) 40px,var(--white)58px,
    var(--gold)  58px,var(--gold) 60px
  );
}
.zellige.top { top: 0; }
.zellige.bottom { bottom: 0; }
.zellige.invert {
  background: repeating-linear-gradient(
    90deg,
    var(--gold)  0,  var(--gold)  18px,
    var(--green) 18px,var(--green)20px,
    var(--red)   20px,var(--red)  38px,
    var(--white) 38px,var(--white)40px,
    var(--gold)  40px,var(--gold) 58px,
    var(--red)   58px,var(--red)  60px
  );
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  background: rgba(253,249,243,.94);
  backdrop-filter: blur(16px);
  border-bottom: 3px solid var(--red);
  transition: box-shadow var(--tr);
}
.navbar.scrolled { box-shadow: var(--sh-md); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-badge { flex-shrink: 0; }
.logo-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--red); line-height: 1.2; }
.logo-sub  { font-size: .7rem; color: var(--muted); }

.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a {
  padding: 6px 15px;
  border-radius: 30px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--mid);
  transition: background var(--tr), color var(--tr);
}
.nav-links a:hover, .nav-links a.active { background: var(--red-lt); color: var(--red); }

.btn-call {
  display: flex; align-items: center; gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 30px;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(26,107,60,.28);
  transition: background var(--tr), transform var(--tr);
}
.btn-call:hover { background: var(--green-dk); transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-right: auto;
}
.burger span { display: block; width: 100%; height: 2.5px; background: var(--dark); border-radius: 2px; transition: transform var(--tr), opacity var(--tr); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 24px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}
.mobile-menu a:hover { background: var(--red-lt); color: var(--red); }
.mobile-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  text-align: center;
  margin: 10px 16px;
  border-radius: var(--rs) !important;
  border-bottom: none !important;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: zoomIn 12s ease-out forwards;
}
@keyframes zoomIn { from{transform:scale(1.05)} to{transform:scale(1)} }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(26,14,5,.88) 0%,rgba(26,14,5,.68) 55%,rgba(26,107,60,.4) 100%);
}
.hero-body {
  position: relative; z-index: 2;
  padding: 80px 24px 100px;
  max-width: 1160px; margin: 0 auto; width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(200,146,42,.16);
  border: 1px solid rgba(200,146,42,.4);
  color: var(--gold-lt);
  padding: 7px 20px; border-radius: 30px;
  font-size: .82rem; font-weight: 600;
  margin-bottom: 30px;
  animation: fadeDown .7s ease both;
}
.badge-stars { color: var(--gold); letter-spacing: 3px; }

/* Title */
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  color: var(--white);
  line-height: 1.22;
  margin-bottom: 26px;
  animation: fadeUp .7s .1s ease both;
}
.h1-gold { color: var(--gold); }
.hero-h1 em { font-size: 60%; color: rgba(255,255,255,.55); font-style: italic; }

.hero-desc {
  color: rgba(255,255,255,.62);
  font-size: .97rem;
  max-width: 560px;
  line-height: 2;
  margin-bottom: 42px;
  animation: fadeUp .7s .2s ease both;
}

/* Buttons */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; animation: fadeUp .7s .3s ease both; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  padding: 14px 32px; border-radius: 40px;
  font-size: 1.02rem; font-weight: 700;
  box-shadow: 0 5px 22px rgba(200,25,26,.42);
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.btn-primary:hover { background: var(--red-dk); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200,25,26,.52); }
.btn-primary.btn-big { font-size: 1.05rem; padding: 16px 36px; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.32);
  padding: 14px 32px; border-radius: 40px;
  font-size: 1.02rem; font-weight: 600;
  transition: background var(--tr), border-color var(--tr);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }

/* Stats */
.hero-stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; animation: fadeUp .7s .4s ease both; }
.hstat { text-align: center; }
.hstat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--gold); font-family: var(--serif); }
.hstat span { font-size: .72rem; color: rgba(255,255,255,.45); letter-spacing: .07em; }
.hstat-sep { width: 1px; height: 46px; background: rgba(255,255,255,.14); }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.28); font-size: 1.6rem;
  animation: bounce 2.2s ease infinite;
}

/* ══════════════════════════════
   SECTIONS — shared
══════════════════════════════ */
.section { padding: 96px 0; }
.bg-white  { background: var(--white); }
.bg-cream  { background: var(--cream2); }
.bg-dark   { background: var(--dark); position: relative; }
.bg-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C8922A' fill-opacity='0.04'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3C/g%3E%3C/svg%3E");
}

.sec-head { text-align: center; margin-bottom: 52px; }
.sec-ornament { color: var(--gold); font-size: .9rem; letter-spacing: 10px; margin-bottom: 12px; }
.sec-ornament.gold { color: var(--gold-lt); }
.sec-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--red); margin-bottom: 10px; }
.sec-label.light { color: var(--gold-lt); }
.sec-title { font-family: var(--serif); font-size: clamp(1.85rem, 4vw, 2.8rem); font-weight: 700; color: var(--dark); line-height: 1.22; }
.sec-title.light { color: var(--white); }
.sec-sub { color: var(--muted); font-size: .94rem; max-width: 460px; margin: 14px auto 0; line-height: 1.75; }

/* ══════════════════════════════
   AVANTAGES
══════════════════════════════ */
.avantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Photo card */
.avantages-photo {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  height: 460px;
  box-shadow: var(--sh-lg);
}
.avantages-photo img { width: 100%; height: 100%; transition: transform .6s ease; }
.avantages-photo:hover img { transform: scale(1.04); }
.avantages-photo-badge {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(to top, rgba(26,107,60,.96) 0%, transparent 100%);
  padding: 44px 24px 22px;
  color: var(--white);
}
.avantages-photo-badge strong { display: block; font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.avantages-photo-badge span { font-size: .86rem; opacity: .82; }

/* Feature list */
.avantages-list { display: flex; flex-direction: column; gap: 20px; }
.feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--rs);
  background: var(--cream);
  border: 1px solid var(--border);
  border-right: 4px solid var(--red);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.feat:hover { transform: translateX(-4px); box-shadow: var(--sh-sm); border-right-color: var(--green); }
.feat-icon { font-size: 1.6rem; width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feat h3 { font-size: .97rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.feat p  { font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* ══════════════════════════════
   FORMATIONS
══════════════════════════════ */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fcard {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--tr), box-shadow var(--tr);
}
.fcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.fcard-featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,146,42,.18); }

.fcard-ribbon {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: var(--gold); color: var(--dark);
  font-size: .68rem; font-weight: 800;
  padding: 4px 14px; border-radius: 30px;
  letter-spacing: .04em;
}

/* Photo dans la card */
.fcard-img { position: relative; height: 190px; overflow: hidden; }
.fcard-img img { width: 100%; height: 100%; transition: transform .5s ease; }
.fcard:hover .fcard-img img { transform: scale(1.05); }

/* Corps */
.fcard-body {
  padding: 28px 22px 22px;
  flex: 1; display: flex; flex-direction: column;
}
.fcard-icon { font-size: 1.8rem; margin-bottom: 10px; }
.fcard-body h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.fcard-sub { font-size: .78rem; color: var(--muted); font-weight: 500; margin-bottom: 18px; }

.fcard-body ul {
  list-style: none; display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 22px; flex: 1;
}
.fcard-body li {
  font-size: .85rem; color: var(--mid);
  padding-right: 20px; position: relative; line-height: 1.5;
}
.fcard-body li::before { content: '✓'; position: absolute; right: 0; color: var(--green); font-weight: 700; }

/* Bouton contact (remplace "اسأل عن السعر") */
.btn-contact-us {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 30px;
  font-size: .86rem; font-weight: 700;
  border: 2px solid var(--green); color: var(--green);
  background: transparent;
  transition: background var(--tr), color var(--tr);
}
.btn-contact-us:hover { background: var(--green-lt); }
.btn-contact-featured {
  background: var(--gold); color: var(--dark); border-color: var(--gold);
}
.btn-contact-featured:hover { background: var(--gold-dk); color: var(--white); border-color: var(--gold-dk); }

/* ══════════════════════════════
   GALERIE STRIP — 3 photos
══════════════════════════════ */
.galerie-strip {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  grid-template-rows: 280px;
  gap: 3px;
  background: var(--dark);
}
.gs-item { position: relative; overflow: hidden; }
.gs-tall { grid-row: span 1; }

.gs-item img {
  width: 100%; height: 100%;
  filter: brightness(.82);
  transition: transform .6s ease, filter .4s ease;
}
.gs-item:hover img { transform: scale(1.05); filter: brightness(1); }

.gs-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,14,5,.88), transparent);
  color: var(--white);
  font-size: .82rem; font-weight: 700;
  padding: 32px 16px 12px;
  opacity: 0;
  transition: opacity var(--tr);
}
.gs-item:hover .gs-label { opacity: 1; }

/* ══════════════════════════════
   AVIS
══════════════════════════════ */
.avis-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.avis-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  padding: 30px;
  transition: transform var(--tr), border-color var(--tr);
}
.avis-card:hover { transform: translateY(-4px); border-color: rgba(200,146,42,.38); }
.avis-featured {
  background: rgba(200,146,42,.1);
  border-color: rgba(200,146,42,.32);
}
.avis-stars { color: var(--gold); font-size: 1rem; letter-spacing: 4px; margin-bottom: 16px; }
.avis-card p { color: rgba(255,255,255,.75); font-size: .93rem; line-height: 1.82; font-style: italic; font-family: var(--serif); margin-bottom: 22px; }
.avis-author { display: flex; align-items: center; gap: 12px; }
.avis-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; color: var(--white); flex-shrink: 0; }
.avis-author strong { display: block; color: var(--white); font-size: .88rem; }
.avis-author small  { color: rgba(255,255,255,.38); font-size: .76rem; }

.avis-google { position: relative; text-align: center; margin-top: 44px; }
.avis-google a {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 24px; border-radius: 30px;
  font-size: .88rem; font-weight: 600;
  transition: color var(--tr), border-color var(--tr);
}
.avis-google a:hover { color: var(--gold-lt); border-color: rgba(200,146,42,.38); }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 18px; }

.cinfo-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-right: 4px solid var(--green);
  border-radius: var(--rs);
}
.cinfo-icon { font-size: 1.4rem; margin-top: 1px; flex-shrink: 0; }
.cinfo-card h4 { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--green); margin-bottom: 4px; }
.cinfo-card p { color: var(--mid); font-size: .91rem; line-height: 1.6; }
.cinfo-card a { color: var(--red); font-weight: 700; font-size: 1.04rem; }

.map-wrap { border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-lg); border: 3px solid var(--green); }
.map-wrap iframe { display: block; }
.map-btn {
  display: block; text-align: center;
  padding: 12px;
  background: var(--green); color: var(--white);
  font-size: .88rem; font-weight: 700;
  transition: background var(--tr);
}
.map-btn:hover { background: var(--green-dk); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer { background: var(--dark); padding-top: 12px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px;
  padding: 32px 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.footer-brand strong { display: block; font-family: var(--serif); font-size: .92rem; }
.footer-brand small  { display: block; font-size: .7rem; color: rgba(255,255,255,.38); margin-top: 2px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,.42); font-size: .83rem; transition: color var(--tr); }
.footer-nav a:hover { color: var(--gold-lt); }
.footer-phone { color: var(--gold-lt); font-size: .9rem; font-weight: 700; }
.footer-copy {
  text-align: center;
  color: rgba(255,255,255,.24);
  font-size: .76rem;
  padding: 14px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp   { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:none} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-14px)} to{opacity:1;transform:none} }
@keyframes bounce   {
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(9px)}
}

.reveal { opacity:0; transform:translateY(32px); transition:opacity .65s ease,transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .avantages-grid    { grid-template-columns: 1fr; }
  .avantages-photo   { height: 300px; }
  .formations-grid   { grid-template-columns: 1fr 1fr; }
  .avis-grid         { grid-template-columns: 1fr 1fr; }
  .contact-grid      { grid-template-columns: 1fr; }
  .galerie-strip     { grid-template-columns: 1fr 1fr; grid-template-rows: 220px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .btn-call  { display: none; }
  .burger    { display: flex; }
}

@media (max-width: 640px) {
  .section          { padding: 68px 0; }
  .formations-grid  { grid-template-columns: 1fr; }
  .avis-grid        { grid-template-columns: 1fr; }
  .hero-stats       { gap: 18px; }
  .hstat-sep        { height: 32px; }
  .hero-actions     { flex-direction: column; }
  .footer-inner     { flex-direction: column; align-items: flex-start; }
  .galerie-strip    { grid-template-columns: 1fr; grid-template-rows: repeat(3, 220px); }
}

/* ── Permis Grid ── */
.permis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.p-card {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--tr), box-shadow var(--tr);
}

.p-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-lg);
  border-color: var(--gold);
}

.p-img {
  position: relative;
  height: 200px;
}

.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--red);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: var(--sh-sm);
}

.p-content {
  padding: 25px;
  text-align: center;
}

.p-content h3 {
  font-family: var(--serif);
  color: var(--dark);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.p-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.p-age {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 700;
  padding: 4px 12px;
  background: var(--green-lt);
  border-radius: 30px;
}

/* تنسيق القائمة داخل بطاقة الرخصة */
.permis-details-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: right; /* ليتناسب مع اتجاه الموقع العربي */
}

.permis-details-list li {
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--mid);
}

.permis-details-list li:last-child {
  border-bottom: none;
}

.p-age-inline {
  float: left; /* لجعل السن يظهر في الجهة المقابلة */
  color: var(--green);
  font-weight: bold;
  background: var(--green-lt);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
}