﻿/* ============================================================
   MASTER EVENTS â€” feuille de style
   ============================================================ */
:root {
  --brand: #153125;
  --brand-2: #1f4d3a;
  --brand-soft: #2c6b4f;
  --paper: #f6f5f2;
  --surface: #ffffff;
  --ink: #21241f;
  --muted: #666b64;
  --line: #e3e2de;
  --line-strong: #cfcdc7;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Archivo", var(--font);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.13rem;
  line-height: 1.7;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- En-tÃªte ---------- */
.site-header { background: var(--brand); color: #f3efe6; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.logo { display: flex; align-items: center; background: #ffffff; padding: 5px 9px; border-radius: 6px; }
.logo img { height: 54px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 1rem; font-weight: 500; color: #cfdcD4; border-bottom: 1px solid transparent; padding-bottom: 3px; transition: color .15s ease, border-color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: #ffffff; border-color: #b9d6c8; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #f3efe6; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 85%);
    flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 90px 30px; background: var(--brand); border-left: 1px solid rgba(255,255,255,.12);
    transform: translateX(100%); transition: transform .22s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; color: #f3efe6; }
}

/* ---------- HÃ©ro ---------- */
.hero { background: var(--brand); color: #f3efe6; padding: 96px 0 10px; }
.hero .hero-inner { max-width: 860px; }
.hero-tag { display: inline-block; font-size: .88rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #b9d6c8; border-left: 2px solid var(--brand-soft); padding-left: 14px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.1; font-weight: 700; margin: 28px 0 20px; max-width: 24ch; }
.hero h1 span { color: #b9d6c8; }
.hero p { color: #cfdcD4; max-width: 60ch; font-size: 1.12rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 34px; }

/* ---------- Boutons ---------- */
.btn { display: inline-block; padding: 14px 32px; font-weight: 600; font-size: .95rem; line-height: 1.3; border: 1px solid transparent; border-radius: 999px; transition: background .15s ease, color .15s ease, border-color .15s ease; cursor: pointer; }
.btn-solid { background: #b9d6c8; color: var(--brand); }
.btn-solid:hover { background: #ffffff; }
.btn-line { background: transparent; color: #f3efe6; border-color: rgba(255,255,255,.4); }
.btn-line:hover { border-color: #b9d6c8; color: #b9d6c8; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--white { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(2.3rem, 4vw, 3.1rem); font-weight: 800; }
.section-head h2.title-green { color: #15803d; }
.section-head h2.title-fun { color: #15803d; font-size: clamp(2.7rem, 5vw, 3.8rem); }
.section-head h2.title-fun::after { content: ""; display: block; width: 90px; height: 8px; margin-top: 14px; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #15803d); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1rem; }

/* ---------- PrÃ©sentation ---------- */
.presentation { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.overline { display: inline-block; font-size: .88rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--brand-soft); border-left: 2px solid var(--brand-soft); padding-left: 14px; margin-bottom: 28px; }
.presentation figure img { aspect-ratio: 4/5; object-fit: cover; }
.presentation .banners { display: grid; gap: 14px; }
.presentation .banners img { width: 100%; height: auto; aspect-ratio: auto; }
.presentation h2 { font-family: var(--font-head); font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 22px; }
.presentation p { color: var(--muted); margin-bottom: 16px; max-width: 60ch; }
.presentation .lead { color: var(--ink); font-size: 1.12rem; font-weight: 700; }
.presentation .lead-sub { color: var(--ink); font-size: 1.22rem; font-weight: 700; margin-bottom: 22px; }
.presentation .closer { color: var(--ink); font-size: 1.18rem; font-weight: 700; margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .presentation { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Services ---------- */
.service-row { display: grid; grid-template-columns: 5fr 7fr; column-gap: 64px; row-gap: 10px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.service-row:first-of-type { border-top: 0; }
.service-row.flip { grid-template-columns: 7fr 5fr; }
.service-row figure img { aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.service-row .goodies-pics { display: grid; grid-template-columns: 1fr; gap: 18px; }
.service-row .goodies-pic img { width: 100%; height: auto; object-fit: contain; border-radius: 6px; }
.service-row.flip figure { order: -1; }
.service-row h3 { color: #15803d; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.service-row h3::after { content: ""; display: block; width: 64px; height: 6px; margin-top: 10px; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #15803d); }
.service-row h3.org-title { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.service-row p { color: var(--ink); font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; max-width: 58ch; }
.service-row p b { color: #15803d; background: rgba(34, 197, 94, .16); padding: 2px 10px; border-radius: 999px; font-weight: 800; }
@media (max-width: 960px) {
  .service-row, .service-row.flip { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; }
  .service-row > figure, .service-row.flip > figure { grid-row: 3; }
  .service-row .goodies-pics { grid-row: 3; }
  .service-row > div, .service-row.flip > div { grid-row: 1 / span 2; }
}

.autres { display: flex; flex-direction: column; padding-top: 8px; }
.autres .item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; row-gap: 10px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.autres .item:first-child { border-top: 0; }
.autres .item img { grid-column: 2; grid-row: 1 / span 2; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.autres .item h4 { color: #15803d; grid-column: 1; grid-row: 1; font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 0; }
.autres .item h4::after { content: ""; display: block; width: 56px; height: 6px; margin-top: 8px; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #15803d); }
.autres .item p { grid-column: 1; grid-row: 2; color: var(--ink); font-size: 1.35rem; font-weight: 700; max-width: 58ch; }
.autres .item:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.autres .item:nth-child(even) img { grid-column: 1; }
.autres .item:nth-child(even) h4, .autres .item:nth-child(even) p { grid-column: 2; }
@media (max-width: 900px) { .autres .item, .autres .item:nth-child(even) { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; } .autres .item h4, .autres .item:nth-child(even) h4 { grid-column: 1; grid-row: 1; } .autres .item p, .autres .item:nth-child(even) p { grid-column: 1; grid-row: 2; } .autres .item img, .autres .item:nth-child(even) img { grid-column: 1; grid-row: 3; } }

/* ---------- RÃ©alisations ---------- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo { position: relative; overflow: hidden; cursor: zoom-in; }
.photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
@media (max-width: 900px) { .photos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photos { grid-template-columns: 1fr 1fr; } }

/* ---------- Confiance (logos) ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 42px; padding: 12px 0 4px; }
.logos img { height: 38px; width: auto; opacity: .5; filter: grayscale(1); transition: opacity .2s ease, filter .2s ease; }
.logos img:hover { opacity: .9; filter: none; }

/* ---------- Instagram ---------- */
.ig-section { padding-top: 0; }
.ig-more { font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.ig-more a { color: #15803d; text-decoration: underline wavy #22c55e; text-decoration-underline-offset: 5px; text-underline-position: under; transition: color .15s ease; }
.ig-more a:hover { color: #22c55e; }
.ig-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ig-strip a { position: relative; overflow: hidden; }
.ig-strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.ig-strip a::after { content: "@masterevents_dz"; position: absolute; inset: auto 0 0 0; padding: 5px 8px; font-size: .5rem; letter-spacing: .2px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
@media (max-width: 720px) { .ig-section .container { width: 100%; } .ig-section .section-head h2 { font-size: 1.55rem; } .ig-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; } .ig-strip a::after { display: none; } }

/* ---------- Mobile global ---------- */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .service-row p, .autres .item p { font-size: 1.05rem; }
  .photos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .goodies-pics { justify-items: stretch; }
}

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-head { max-width: 760px; margin-bottom: 52px; }
.contact-head h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; line-height: 1.25; max-width: 22ch; }
.contact-block { padding: 40px 0 44px; border-bottom: 1px solid var(--line-strong); }
.contact-block:last-child { border-bottom: 0; }
.contact-block h3 { font-size: .85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-soft); margin-bottom: 20px; }
.contact-block p { font-size: 1.25rem; margin-bottom: 12px; }
.contact-block p a { border-bottom: 1px solid transparent; display: inline-flex; align-items: center; gap: 10px; }
.contact-block p a svg { width: 22px; height: 22px; fill: #15803d; transition: transform .15s ease; }
.contact-block p a:hover svg { transform: scale(1.2); }
.contact-block p a:hover { color: var(--brand-soft); border-bottom-color: var(--brand-soft); text-decoration: none; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brand); color: #b9c8bf; padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.footer-inner a { color: #f3efe6; }
.footer-inner a:hover { color: #b9d6c8; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 18, 14, .94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; }
.lightbox .close { position: absolute; top: 18px; right: 22px; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }