/* ===== Design tokens ===== */
:root{
  --red: #E30613;
  --red-dark: #B8050F;
  --blue: #0F3C78;
  --blue-dark: #0A2A57;
  --ink: #17222E;
  --muted: #5B6774;
  --bg: #FAFAFB;
  --white: #FFFFFF;
  --line: #E8E9EC;
  --shadow: 0 20px 45px -20px rgba(15, 60, 120, 0.25);
  --shadow-sm: 0 10px 25px -12px rgba(15, 60, 120, 0.18);
  --radius: 18px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{ margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p{ margin: 0 0 1em; color: var(--muted); }

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

.section{ padding: 96px 0; }
.section-eyebrow{
  color: var(--red);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .6em;
}
.section-head{ max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2{ font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.section-lead{ font-weight: 600; color: var(--ink); font-size: 1.1rem; }

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline{
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--line);
}
.btn-outline:hover{ border-color: var(--blue); transform: translateY(-2px); }
.btn-lg{ padding: 15px 30px; font-size: 1rem; }
.btn-block{ width: 100%; margin-bottom: 12px; }

/* ===== Top alert bar ===== */
#top-alert{
  background: var(--blue-dark);
  color: #fff;
  text-align: center;
  font-size: .85rem;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
#top-alert a{ font-weight: 700; color: #FFD9DC; }

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand-mark{ height: 58px; width: auto; }

.main-nav{ display: flex; gap: 30px; margin-left: auto; }
.main-nav a{
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .2s ease;
}
.main-nav a:hover::after{ width: 100%; }

.header-cta{ margin-left: 12px; }

.lang-switch{
  font-weight: 600;
  font-size: .85rem;
  color: var(--blue);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
.lang-switch:hover{ border-color: var(--blue); }
.lang-switch::after{ display: none; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 4px;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ===== Hero ===== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 72px 0 90px;
}
.hero-bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(227,6,19,.10), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(15,60,120,.10), transparent 45%),
    linear-gradient(180deg, #FFFFFF, #F6F7FA);
  z-index: -1;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow{
  color: var(--blue);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .8em;
}
.hero h1{
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  color: var(--ink);
  margin-bottom: .2em;
}
.hero-subtitle{
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: .5em;
}
.hero-subtitle-ar{
  font-family: var(--font-ar);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: .9em;
}
.hero-desc{ max-width: 520px; font-size: 1.02rem; }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 40px; }

.hero-trust{ display: flex; gap: 28px; flex-wrap: wrap; }
.trust-item{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-dark);
}
.trust-item svg{ color: var(--red); flex-shrink: 0; }

.hero-visual{ display: flex; justify-content: center; }
.hero-card{
  position: relative;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 48px 36px 64px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  border: 1px solid var(--line);
}
.hero-logo{ width: 240px; margin: 0 auto; }
.pulse-line{
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  color: var(--red);
  opacity: .55;
  height: 30px;
}
.pulse-line svg{ width: 100%; height: 100%; }

/* ===== A propos ===== */
.apropos-grid{
  display: grid;
  grid-template-columns: .5fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.apropos-media{ display: flex; justify-content: center; }
.apropos-badge{
  width: 190px; height: 190px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
}
.apropos-badge::before{
  content:"";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(15,60,120,.25);
}
.apropos-points{ display: grid; gap: 12px; margin-top: 20px; }
.apropos-points li{
  position: relative;
  padding-left: 28px;
  font-weight: 500;
  color: var(--ink);
}
.apropos-points li::before{
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  mask: none;
}
.apropos-points li::after{
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 6px; height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ===== Services ===== */
.services{ background: var(--white); }
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}
.service-icon{
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card h3{ font-size: 1.08rem; margin-bottom: .4em; }
.service-card p{ font-size: .92rem; margin-bottom: 0; }

/* ===== Pratique ===== */
.pratique-grid{
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 56px;
  align-items: start;
}
.pratique-side{ display: grid; gap: 24px; }

.horaires-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 10px;
  box-shadow: var(--shadow-sm);
}
.horaires-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.horaires-head h3{ font-size: 1.02rem; margin-bottom: 0; }
.horaires-status{
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: #EEF1F4;
  color: var(--muted);
  white-space: nowrap;
}
.horaires-status.is-open{ background: rgba(22,163,74,.12); color: #15803D; }
.horaires-status.is-closed{ background: rgba(227,6,19,.1); color: var(--red-dark); }

.horaires-list li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
}
.horaires-list li:first-child{ border-top: none; }
.horaires-list li span:first-child{ font-weight: 600; color: var(--ink); }
.horaires-list li.is-closed span:last-child{ color: var(--red); font-weight: 600; }
.horaires-list li.is-today{ color: var(--ink); }
.horaires-list li.is-today span:first-child{ color: var(--red); }
.horaires-list li.is-today span:first-child::after{
  content: "Aujourd'hui";
  margin-left: 8px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--blue);
  background: rgba(15,60,120,.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.pratique-list{ display: grid; gap: 22px; margin-top: 24px; }
.pratique-item{
  border-left: 3px solid var(--red);
  padding-left: 18px;
}
.pratique-item h4{ font-size: 1.02rem; margin-bottom: .3em; color: var(--ink); }
.pratique-item p{ margin-bottom: 0; font-size: .92rem; }

.pratique-cta-card{
  background: linear-gradient(150deg, var(--blue), var(--blue-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
}
.pratique-cta-card h3{ color: #fff; }
.pratique-cta-card p{ color: rgba(255,255,255,.85); font-size: .92rem; }
.pratique-cta-card .btn-outline{ background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.pratique-cta-card .btn-outline:hover{ border-color: #fff; }

/* ===== Contact ===== */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 44px;
}
.contact-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.contact-icon{
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(227,6,19,.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.contact-card h3{ font-size: 1rem; margin-bottom: .4em; }
.contact-card p{ font-size: .92rem; margin-bottom: 0; }
.contact-card a:hover{ color: var(--red); }
.contact-link{
  display: inline-block;
  margin-top: 12px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--red);
}
.contact-link:hover{ color: var(--red-dark); }

.map-wrap{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

/* ===== Footer ===== */
.site-footer{ background: var(--blue-dark); color: rgba(255,255,255,.85); padding-top: 48px; }
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 36px;
}
.footer-brand{ display: flex; align-items: center; gap: 14px; }
.footer-mark{ height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand span{ font-size: .85rem; color: rgba(255,255,255,.7); }
.footer-info p{ margin: 0 0 4px; font-size: .88rem; color: rgba(255,255,255,.75); text-align: right; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  text-align: center;
}

/* ===== Floating call button (mobile) ===== */
.floating-call{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(227,6,19,.5);
  z-index: 90;
  animation: pulse-btn 2.4s infinite;
}
@keyframes pulse-btn{
  0%,100%{ box-shadow: 0 0 0 0 rgba(227,6,19,.45), 0 12px 24px -8px rgba(227,6,19,.5); }
  50%{ box-shadow: 0 0 0 10px rgba(227,6,19,0), 0 12px 24px -8px rgba(227,6,19,.5); }
}

/* ===== Reveal animation ===== */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 360px; margin: 0 auto 20px; }
  .apropos-grid, .pratique-grid{ grid-template-columns: 1fr; }
  .apropos-media{ order: 2; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
  .footer-info p{ text-align: left; }
}

@media (max-width: 760px){
  .section{ padding: 64px 0; }
  .main-nav{
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    box-shadow: var(--shadow-sm);
  }
  .main-nav.is-open{ transform: translateY(0); opacity: 1; }
  .header-cta{ display: none; }
  .nav-toggle{ display: flex; }
  .services-grid{ grid-template-columns: 1fr; }
  .floating-call{ display: flex; }
  #top-alert{ font-size: .78rem; }
}

.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity: 0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
