/* Style « Rif & Méditerranée » — bleu profond de la baie d'Al Hoceima, sable, or du sceau,
   motif géométrique marocain repris de la carte de visite. */
:root {
  --ink: #0e2a36;
  --sea: #154756;
  --sea-2: #1d5a69;
  --sand: #f5efe3;
  --paper: #fcfaf5;
  --gold: #b38436;
  --gold-l: #d8b46c;
  --gold-d: #8e6726;
  --text: #1f2d33;
  --muted: #5b6b70;
  --line: #e4dccb;
  --radius: 14px;
  --f-ar: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --f-ar-h: "Reem Kufi", "IBM Plex Sans Arabic", serif;
  --f-lat: "Inter", system-ui, sans-serif;
  --f-lat-h: "Cormorant Garamond", Georgia, serif;
  --f-body: var(--f-ar);
  --f-head: var(--f-ar-h);
}
html[lang="fr"], html[lang="en"] { --f-body: var(--f-lat); --f-head: var(--f-lat-h); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--f-body); color: var(--text); background: var(--paper); line-height: 1.75; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
html[lang="fr"] body, html[lang="en"] body { line-height: 1.65; font-size: 16px; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.25; margin: 0; color: var(--ink); }
html[lang="fr"] h1, html[lang="fr"] h2, html[lang="en"] h1, html[lang="en"] h2 { font-weight: 500; line-height: 1.1; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #1b1408; box-shadow: 0 8px 22px -10px rgba(179,132,54,.8); }
.btn--line { border-color: rgba(216,180,108,.55); color: #f3e7cc; }
.btn--line:hover { background: rgba(216,180,108,.12); }
.btn--ink { background: var(--ink); color: #f3e7cc; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- en-tête ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.hdr.is-scrolled, body.nav-open .hdr { background: rgba(14,42,54,.96); backdrop-filter: blur(10px); box-shadow: 0 6px 24px -14px rgba(0,0,0,.6); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark { width: 44px; height: 44px; color: var(--gold-l); flex: none; }
.brand strong { display: block; font-family: var(--f-head); font-size: 18px; font-weight: 600; line-height: 1.2; }
.brand small { display: block; font-size: 12.5px; color: var(--gold-l); letter-spacing: .02em; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { color: rgba(255,255,255,.82); font-size: 14.5px; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: var(--gold-l); transform: scaleX(0); transition: transform .25s; }
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }
.hdr__end { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; border: 1px solid rgba(216,180,108,.4); border-radius: 999px; padding: 3px; }
.langs a { color: rgba(255,255,255,.75); font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; font-family: var(--f-lat); }
.langs a[lang="ar"] { font-family: var(--f-ar); }
.langs a[aria-current] { background: var(--gold-l); color: var(--ink); }
.hdr__call span { direction: ltr; unicode-bidi: isolate; }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(216,180,108,.4); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: #fff; transition: transform .25s, top .25s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- héros ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 150px 0 40px;
  background: radial-gradient(1100px 600px at 85% 0%, #1f6272 0%, transparent 60%), linear-gradient(180deg, var(--ink) 0%, var(--sea) 100%); }
.hero__geo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .09; pointer-events: none; }
.hero__sea { position: absolute; inset: auto 0 0; height: 160px; pointer-events: none;
  background: repeating-radial-gradient(ellipse at 50% 160%, transparent 0 22px, rgba(216,180,108,.08) 23px 24px); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-l); font-size: 15px; font-weight: 500; padding: 7px 16px; border: 1px solid rgba(216,180,108,.35); border-radius: 999px; background: rgba(255,255,255,.04); }
.kicker svg { width: 14px; height: 14px; }
.hero__title { color: #fff; font-family: "Aref Ruqaa", var(--f-ar-h); font-weight: 700; font-size: clamp(44px, 6.4vw, 82px); line-height: 1.25; margin: 22px 0 18px; }
.hero__title span { color: var(--gold-l); }
html[lang="fr"] .hero__title, html[lang="en"] .hero__title { font-family: var(--f-lat-h); font-weight: 500; line-height: 1.02; }
html[lang="fr"] .hero__title span, html[lang="en"] .hero__title span { display: block; font-style: italic; }
.hero__lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* carte de visite recréée */
.hero__card { perspective: 1200px; }
.bcard { position: relative; aspect-ratio: 1.68; border-radius: 18px; overflow: hidden; color: var(--ink);
  background: linear-gradient(135deg, #fffdf8, #f1ebdf); box-shadow: 0 40px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(216,180,108,.5);
  transform: rotate(-4deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); display: grid; grid-template-columns: 34% 1fr; align-items: center; padding: 6% 6%; gap: 5%; }
.bcard:hover { transform: rotate(0) scale(1.02); }
html[dir="rtl"] .bcard { transform: rotate(4deg); }
html[dir="rtl"] .bcard:hover { transform: rotate(0) scale(1.02); }
.bcard__geo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.bcard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 52%, rgba(179,132,54,.55) 52.3%, transparent 52.6%), linear-gradient(65deg, transparent 22%, rgba(179,132,54,.45) 22.3%, transparent 22.6%); pointer-events: none; }
.bcard__seal { position: relative; color: var(--gold); filter: drop-shadow(0 2px 2px rgba(142,103,38,.25)); }
.bcard__seal svg { width: 100%; height: auto; aspect-ratio: 1; }
.bcard__body { position: relative; direction: rtl; text-align: right; }
.bcard__name { font-family: "Aref Ruqaa", serif; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; }
.bcard__role { font-family: var(--f-ar); font-weight: 600; font-size: clamp(11px, 1.15vw, 14px); margin-top: 2px; }
html[lang="fr"] .bcard__role, html[lang="en"] .bcard__role, html[lang="fr"] .bcard__line span, html[lang="en"] .bcard__line span { font-family: var(--f-lat); direction: ltr; unicode-bidi: isolate; }
.bcard__rule { display: flex; align-items: center; gap: 6px; margin: 10px 0 14px; color: var(--gold); }
.bcard__rule::before, .bcard__rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.bcard__rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.bcard__rule svg { width: 10px; height: 10px; }
.bcard__line { display: flex; align-items: center; gap: 10px; font-size: clamp(11px, 1.1vw, 13.5px); margin-top: 8px; font-weight: 500; }
.bcard__line b { font-family: var(--f-lat); font-size: clamp(16px, 1.9vw, 23px); letter-spacing: .02em; }
.bcard__line svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-l), var(--gold-d)); color: #fff; flex: none; }

.strip { list-style: none; margin: 70px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(216,180,108,.25); position: relative; }
.strip li { padding: 22px 18px 6px; border-inline-start: 1px solid rgba(216,180,108,.18); }
.strip li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.strip strong { display: block; font-family: var(--f-head); color: var(--gold-l); font-size: 21px; font-weight: 600; }
.strip span { color: rgba(255,255,255,.65); font-size: 14px; }

/* ---------- sections ---------- */
.sec { padding: 110px 0; position: relative; }
.sec--sand { background: var(--sand); }
.sec--deep { background: linear-gradient(160deg, var(--ink), var(--sea)); color: #fff; overflow: hidden; }
.sec__hd { max-width: 720px; margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-d); font-weight: 600; font-size: 14px; letter-spacing: .06em; margin-bottom: 14px; }
html[lang="fr"] .eyebrow, html[lang="en"] .eyebrow { text-transform: uppercase; font-size: 12.5px; letter-spacing: .16em; }
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); }
.sec h2 { font-size: clamp(30px, 4vw, 48px); }
html[lang="fr"] .sec h2, html[lang="en"] .sec h2 { font-size: clamp(34px, 4.6vw, 56px); }
.sec h2 em { font-style: normal; color: var(--gold); }
html[lang="fr"] .sec h2 em, html[lang="en"] .sec h2 em { font-style: italic; }
.sec__lead { margin-top: 18px; color: var(--muted); font-size: 17.5px; }

/* compétences */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.svc__card::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--gold-l), var(--gold-d)); transform: scaleX(0); transform-origin: var(--o, left); transition: transform .4s; }
html[dir="rtl"] .svc__card::after { --o: right; }
.svc__card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(14,42,54,.45); border-color: transparent; }
.svc__card:hover::after { transform: scaleX(1); }
.svc__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.svc__ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--gold-l); }
.svc__ico svg { width: 26px; height: 26px; }
.svc__n { font-family: var(--f-lat-h); font-size: 38px; color: var(--line); font-weight: 600; line-height: 1; }
.svc__card h3 { font-size: 22px; margin-bottom: 8px; }
html[lang="fr"] .svc__card h3, html[lang="en"] .svc__card h3 { font-size: 26px; }
.svc__card > p { color: var(--muted); font-size: 15px; }
.svc__card ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 6px; }
.svc__card li { font-size: 14.5px; display: flex; gap: 10px; align-items: baseline; }
.svc__card li::before { content: ""; width: 6px; height: 6px; flex: none; transform: rotate(45deg) translateY(-2px); background: var(--gold); }
.svc__ask { margin-top: auto; color: var(--gold-d); font-weight: 600; font-size: 14.5px; padding-top: 16px; border-top: 1px dashed var(--line); }
.svc__ask:hover { color: var(--ink); }

/* démarche */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 31px; inset-inline: 32px; border-top: 1.5px dashed rgba(179,132,54,.5); }
.steps li { position: relative; }
.steps__n { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--gold); color: var(--gold-d); font-family: var(--f-lat-h); font-size: 28px; font-weight: 600; margin-bottom: 22px; position: relative; box-shadow: 0 0 0 8px var(--sand); }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
html[lang="fr"] .steps h3, html[lang="en"] .steps h3 { font-size: 25px; }
.steps p { color: var(--muted); font-size: 15px; }

/* engagements */
.vals { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.sec--deep h2 { color: #fff; }
.sec--deep h2 em { color: var(--gold-l); }
.sec--deep .eyebrow { color: var(--gold-l); }
.vals__q { margin: 34px 0 0; padding-inline-start: 22px; border-inline-start: 2px solid var(--gold-l); font-family: var(--f-head); font-size: 22px; color: rgba(255,255,255,.85); line-height: 1.6; }
html[lang="fr"] .vals__q, html[lang="en"] .vals__q { font-style: italic; font-size: 26px; line-height: 1.35; }
.vals__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(216,180,108,.22); border: 1px solid rgba(216,180,108,.22); border-radius: var(--radius); overflow: hidden; }
.vals__item { background: rgba(14,42,54,.92); padding: 34px 30px; }
.vals__item svg { width: 22px; height: 22px; color: var(--gold-l); margin-bottom: 18px; }
.vals__item h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
html[lang="fr"] .vals__item h3, html[lang="en"] .vals__item h3 { font-size: 27px; }
.vals__item p { color: rgba(255,255,255,.7); font-size: 15px; }

/* demande */
.req { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.req__tel { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-family: var(--f-lat); font-size: 26px; font-weight: 600; color: var(--ink); }
.req__tel svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--ink); color: var(--gold-l); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: #fff; padding: 36px; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(14,42,54,.5); }
.form .full { grid-column: 1 / -1; }
.form label span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 15.5px; color: var(--text); padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(179,132,54,.15); }
.form__err { color: #a3302a; font-size: 14px; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-family: var(--f-head); font-weight: 600; font-size: 19px; color: var(--ink); }
html[lang="fr"] .faq__list summary, html[lang="en"] .faq__list summary { font-size: 23px; font-weight: 600; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__pm { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--gold); position: relative; }
.faq__pm::before, .faq__pm::after { content: ""; position: absolute; inset: 50% 8px auto; height: 1.5px; background: var(--gold-d); transition: transform .25s; }
.faq__pm::after { transform: rotate(90deg); }
details[open] .faq__pm::after { transform: rotate(0); }
.faq__list details p { padding: 0 0 24px; color: var(--muted); max-width: 640px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: stretch; }
.clist { list-style: none; padding: 0; margin: 34px 0 6px; display: grid; gap: 22px; }
.clist li { display: flex; gap: 16px; align-items: flex-start; }
.clist svg { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--sand); color: var(--gold-d); flex: none; }
.clist small { display: block; color: var(--muted); font-size: 13px; }
.clist p { font-weight: 500; color: var(--ink); font-size: 16.5px; }
.clist a { font-family: var(--f-lat); font-size: 19px; font-weight: 600; }
.contact__map { border-radius: 20px; overflow: hidden; min-height: 440px; border: 1px solid var(--line); position: relative; }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75) contrast(1.05); }

/* pied de page */
.ftr { background: var(--ink); color: rgba(255,255,255,.7); padding: 70px 0 0; font-size: 15px; }
.ftr__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.ftr__about { margin-top: 18px; max-width: 420px; }
.ftr h3 { color: var(--gold-l); font-size: 17px; margin-bottom: 14px; }
.ftr__in > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ftr__in a:hover { color: #fff; }
.ftr__bot { border-top: 1px solid rgba(216,180,108,.2); padding: 22px 0; font-size: 13.5px; }

/* barre mobile */
.mbar { display: none; }

/* apparitions */
.js-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
.js-anim .hero__card.reveal.is-in .bcard { animation: cardIn 1s cubic-bezier(.2,.7,.2,1); }
@keyframes cardIn { from { transform: rotate(-12deg) translateY(30px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js-anim .reveal { opacity: 1; transform: none; transition: none; } .bcard { animation: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: rgba(14,42,54,.98); padding: 10px 20px 24px; transform: translateY(-120%); transition: transform .35s; margin: 0; }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(216,180,108,.15); font-size: 16px; }
  .burger { display: block; }
  .hdr__end { margin-inline-start: auto; }
  .svc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero__in, .vals, .req, .faq, .contact { grid-template-columns: 1fr; gap: 44px; }
  .hero__card { max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .ftr__in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { padding-bottom: 66px; }
  .wrap { width: min(1180px, 100% - 32px); }
  .hdr__call { display: none; }
  .hdr__in { gap: 10px; }
  .brand { min-width: 0; gap: 9px; }
  .brand strong { font-size: 15px; white-space: nowrap; }
  .brand > span { min-width: 0; overflow: hidden; }
  .brand small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand__mark { width: 36px; height: 36px; }
  .hdr__end { gap: 8px; }
  .langs a { padding: 3px 7px; font-size: 12px; }
  .burger { width: 38px; height: 38px; }
  .burger span { left: 9px; right: 9px; }
  .burger span:first-child { top: 14px; } .burger span:last-child { top: 22px; }
  .burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 18px; }
  .hero__lead { font-size: 16.5px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .strip { grid-template-columns: 1fr 1fr; margin-top: 50px; }
  .strip li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .sec { padding: 80px 0; }
  .svc, .steps, .vals__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .contact__map { min-height: 340px; }
  .ftr__in { grid-template-columns: 1fr; }
  .bcard { padding: 5%; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 60; background: var(--ink); border-top: 1px solid rgba(216,180,108,.3); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; color: #fff; font-weight: 600; font-size: 15px; }
  .mbar svg { width: 20px; height: 20px; }
  .mbar__wa { background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #1b1408 !important; }
}
