/* ===================================================================
   AL KHEYRAT SARL — feuille de styles
   Charte issue du logo : bleu marine, or/laiton, vert emblème.
   Traitement visuel aligné sur le site SEBS (photo pleine largeur,
   barre crème, accent chaud, DM Sans + Space Grotesk).
   =================================================================== */

:root {
    --navy-900: #072033;
    --navy-800: #0f3c5e;
    --navy-700: #17517c;
    --navy-600: #2c6d9c;
    --gold-600: #8d721f;
    --gold-500: #b49332;
    --gold-400: #d0b055;
    --gold-100: #f7eed8;
    --green-700: #18413d;
    --cream: #f7f3e9;
    --cream-2: #fcf9f3;
    --ink: #16232f;
    --muted: #5c6b7a;
    --line: #e4e0d6;
    --line-cool: #e3e8ee;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(7, 32, 51, .06), 0 6px 16px rgba(7, 32, 51, .06);
    --shadow-md: 0 6px 14px rgba(7, 32, 51, .08), 0 22px 46px rgba(7, 32, 51, .11);
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --display: var(--sans);
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.16; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--navy-800); color: #fff; padding: 10px 18px; }
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
    font-family: var(--sans); font-size: .95rem; font-weight: 700; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: #14202c; box-shadow: 0 8px 20px rgba(180, 147, 50, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(180, 147, 50, .42); }
.btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }

/* ---------- Bandeau supérieur ---------- */
.topbar { background: var(--navy-900); color: #c7d5e2; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 26px; min-height: 40px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .ic { color: var(--gold-500); }
.topbar a:hover { color: var(--gold-400); }

/* ---------- Navigation ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--cream); border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.navbar.scrolled { box-shadow: 0 8px 26px rgba(7, 32, 51, .12); }
.nav-inner { display: flex; align-items: center; gap: 26px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { height: 54px; width: auto; }
.brand-word { height: 30px; width: auto; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { position: relative; font-size: .95rem; font-weight: 500; color: var(--navy-800); padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold-500); transition: width .22s ease; }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); font-size: .84rem; font-weight: 700; color: var(--navy-800);
}
.nav-chip .ic { color: var(--gold-600); }
.nav-chip:hover { border-color: var(--gold-400); }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; padding: 8px 24px 22px; border-top: 1px solid var(--line); background: var(--cream); }
.mobile-menu a { padding: 13px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .mobile-cta { margin-top: 14px; background: var(--gold-500); color: #14202c; text-align: center; border-radius: 999px; font-weight: 700; }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.hero-media {
    position: absolute; inset: 0;
    background: none center/cover no-repeat;
    opacity: .7;
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(105deg, rgba(7, 32, 51, .94) 0%, rgba(7, 32, 51, .8) 46%, rgba(18, 49, 79, .55) 100%),
        linear-gradient(to top, rgba(7, 32, 51, .95), transparent 45%);
}
.hero-inner { position: relative; z-index: 1; padding: 96px 24px 0; }

.badge {
    display: inline-flex; align-items: center; gap: 9px; margin: 0 0 24px;
    padding: 8px 18px; border: 1px solid rgba(208, 176, 85, .5); border-radius: 999px;
    background: rgba(208, 176, 85, .12); font-size: .82rem; font-weight: 500; color: var(--gold-100);
}
.badge .ic { color: var(--gold-400); }

.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); margin-bottom: 22px; max-width: 23ch; text-wrap: balance; }
.hero h1 .hl { color: var(--gold-400); }
.hero-lede { font-size: 1.08rem; color: #d6e2ee; max-width: 60ch; }
.hero-refs { font-size: .96rem; color: #a9bdd0; max-width: 60ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-stats {
    display: flex; align-items: stretch; gap: 26px; flex-wrap: wrap;
    margin-top: 62px; padding: 26px 0 34px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-stats > div { flex: 1 1 180px; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.04rem; color: var(--gold-400); line-height: 1.25; }
.hero-stats span { display: block; margin-top: 5px; font-size: .84rem; color: #a9bdd0; }
.hero-stats .sep { width: 1px; background: rgba(255, 255, 255, .16); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-cream { background: var(--cream-2); }
.section-dark { background: var(--navy-800); color: #e6eef6; }

.head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 16px; color: var(--navy-800); }
.head p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.head-light h2 { color: #fff; }
.head-light p { color: #a9bdd0; }

.tag {
    display: inline-block; margin-bottom: 16px; padding: 6px 15px; border-radius: 999px;
    background: var(--gold-100); color: var(--gold-600); border: 1px solid rgba(180, 147, 50, .3);
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.tag-light { background: rgba(208, 176, 85, .14); color: var(--gold-400); border-color: rgba(208, 176, 85, .34); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 26px; }

/* ---------- Cartes domaines ---------- */
.card {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--line-cool); border-radius: var(--radius-lg); padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
    content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transition: width .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(180, 147, 50, .42); }
.card:hover::before { width: 100%; }
.card-ic {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px;
    background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); color: var(--gold-400); font-size: 1.45rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--navy-800); }
.card > p { color: var(--muted); font-size: .95rem; }
.card ul { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-cool); }
.card ul li { position: relative; padding-left: 22px; font-size: .9rem; color: #405366; margin-bottom: 8px; }
.card ul li::before {
    content: ''; position: absolute; left: 2px; top: 7px; width: 9px; height: 5px;
    border-left: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500); transform: rotate(-45deg);
}

/* ---------- Bande visuelle ---------- */
.visuals { padding: 0 0 92px; }
.visual {
    position: relative; margin: 0; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden;
    background-image: linear-gradient(to top, rgba(7, 32, 51, .92) 8%, rgba(7, 32, 51, .12) 65%), var(--img);
    background-size: cover; background-position: center;
    display: flex; align-items: flex-end; box-shadow: var(--shadow-sm);
}
.visual figcaption { padding: 24px 26px; color: #fff; }
.visual strong { display: block; font-family: var(--display); font-size: 1.14rem; }
.visual span { display: block; margin-top: 4px; font-size: .88rem; color: #c3d3e2; }

/* ---------- Références : autorités contractantes ---------- */
.authorities { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.authorities li {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 22px 24px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    border-left: 3px solid var(--gold-500);
    transition: background .2s ease, border-color .2s ease;
}
.authorities li:hover { background: rgba(255, 255, 255, .1); border-color: rgba(208, 176, 85, .45); border-left-color: var(--gold-400); }
.authorities strong { font-family: var(--display); font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.35; }
.authorities span { font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: var(--gold-400); white-space: nowrap; }

/* ---------- Moyens ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.panel h3 { display: flex; align-items: center; gap: 12px; font-size: 1.18rem; color: var(--navy-800); margin-bottom: 20px; }
.panel h3 .ic { color: var(--gold-500); font-size: 1.15rem; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: .95rem; color: #405366; }
.checks li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(180, 147, 50, .16); }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: start; }
.about-copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); color: var(--navy-800); margin-bottom: 20px; }
.about-copy p { color: var(--muted); }
.director { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-cool); }
.director .avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400); font-size: 1.2rem; flex-shrink: 0; }
.director strong { display: block; color: var(--navy-800); }
.director span { font-size: .86rem; color: var(--gold-600); font-weight: 700; letter-spacing: .04em; }

.identity { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.identity h3 { display: inline-block; font-size: 1.18rem; color: var(--navy-800); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-500); }
.identity dl { margin: 0; }
.identity dl > div { padding: 13px 0; border-bottom: 1px dashed var(--line); }
.identity dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.identity dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.identity dd { margin: 2px 0 0; font-size: .96rem; font-weight: 500; color: var(--navy-800); }

/* ---------- Contact ---------- */
.section-contact { position: relative; overflow: hidden; background: var(--navy-900); color: #e6eef6; }
.contact-media {
    position: absolute; inset: 0;
    background: none center/cover no-repeat;
    opacity: .22;
}
.section-contact::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 32, 51, .9), rgba(7, 32, 51, .96));
}
.section-contact > .container { position: relative; z-index: 1; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.ci {
    display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; margin-bottom: 14px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--radius);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
a.ci:hover { background: rgba(255, 255, 255, .12); border-color: rgba(208, 176, 85, .48); transform: translateX(4px); }
.ci-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(208, 176, 85, .18); color: var(--gold-400); flex-shrink: 0; }
.ci > span:last-child { display: flex; flex-direction: column; }
.ci strong { font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #9fb2c4; }
.ci strong + span { font-size: 1rem; color: #fff; }

.form { background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: 0 26px 60px rgba(4, 16, 28, .42); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 700; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-cool); border-radius: 10px;
    font-family: var(--sans); font-size: .95rem; color: var(--ink); background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(180, 147, 50, .16); }
.note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.status { margin: 10px 0 0; font-size: .88rem; font-weight: 700; text-align: center; min-height: 1.2em; }
.status.ok { color: #1c7a4b; }
.status.err { color: #b4432c; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-900); color: #a9bccd; padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot-logo { width: 190px; height: auto; margin-bottom: 18px; }
.foot-brand p { font-size: .88rem; margin-bottom: 8px; max-width: 34ch; }
.foot-legal { font-size: .8rem !important; color: #7d93a8; }
.foot-col h4 { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; font-size: .9rem; padding: 6px 0; color: #a9bccd; }
.foot-col a:hover { color: var(--gold-400); }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid rgba(255, 255, 255, .09); }
.foot-bottom p { margin: 0; font-size: .82rem; color: #7d93a8; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
    .nav-chip { display: none; }
    .about, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-links, .nav-actions { display: none; }
    .burger { display: block; }
    .hero-inner { padding-top: 64px; }
    .hero-stats { gap: 18px; margin-top: 44px; }
    .hero-stats .sep { display: none; }
    .hero-stats > div { flex: 1 1 45%; }
    .section, .visuals { padding-top: 68px; padding-bottom: 68px; }
    .visuals { padding-top: 0; }
    .field-row { grid-template-columns: 1fr; }
    .form { padding: 26px 22px; }

}

@media (max-width: 520px) {
    .topbar .topbar-loc { display: none; }
    .hero-stats > div { flex: 1 1 100%; }
    .foot-grid { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Business enquiry and compact screen refinements */
.form h3 { color: var(--navy-800); font-size: 1.35rem; margin-bottom: 12px; }
.form-intro { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.brand { min-width: 0; flex-shrink: 0; }
.nav-links { gap: 20px; }
.nav-chip { display: none; }
.ci, .identity dd, .foot-col a { overflow-wrap: anywhere; }
@media (max-width: 380px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .brand { gap: 8px; }
    .brand-mark { height: 42px; }
    .brand-word { height: 23px; }
    .nav-inner { gap: 12px; }
    .topbar-inner { gap: 4px 16px; padding-top: 7px; padding-bottom: 7px; }
    .badge { border-radius: 12px; font-size: .74rem; }
    .authorities li { flex-direction: column; gap: 8px; }
}

.panel > p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }

/* Présentation commerciale inspirée de SEBS, aux couleurs d’AL KHEYRAT. */
.topbar-inner { justify-content: flex-end; }
.nav-inner { min-height: 96px; }
.hero-media { opacity: 1; }
.hero::after {
    background: linear-gradient(180deg, rgba(7,32,51,.72), rgba(7,32,51,.78) 65%, rgba(7,32,51,.96));
}
.hero-inner { padding-top: 76px; text-align: center; }
.hero h1 { max-width: 1000px; margin: 0 auto 26px; font-size: clamp(2.25rem, 4.6vw, 4.15rem); line-height: 1.12; }
.hero-lede { max-width: 760px; margin: 0 auto; font-size: 1.12rem; line-height: 1.85; color: #e1e9ee; }
.hero-cta { justify-content: center; margin-top: 32px; }
.badge { margin-bottom: 28px; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); }
.hero-stats { max-width: 980px; margin: 54px auto 0; padding: 28px 0 32px; }
.hero-stats strong { font-size: 1.65rem; }
.hero-stats span { color: #c4d1dd; }
#domaines { background: var(--cream-2); }
.head h2 { text-wrap: balance; }
.card { display: flex; flex-direction: column; box-shadow: none; border-radius: 16px; }
.card h3 { min-height: 2.4em; }
.card ul { margin-bottom: 22px; }
.service-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-cool); font-size: .86rem; font-weight: 700; color: var(--navy-800); }
.service-link span { font-size: 1.2rem; color: var(--gold-600); }
.service-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.domain-photo { isolation: isolate; color: #fff; background: var(--navy-900); border-color: var(--navy-800); }
.domain-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,32,51,.68), rgba(7,32,51,.94)), var(--domain-image) center/cover; }
.domain-photo h3, .domain-photo .service-link { color: #fff; }
.domain-photo > p, .domain-photo ul li { color: #e1e8ef; }
.domain-photo ul, .domain-photo .service-link { border-color: rgba(255,255,255,.25); }
.domain-photo .card-ic { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); }
.domain-photo .service-link span { color: var(--gold-400); }
.section-dark { background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); }
.authorities li { flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; min-height: 144px; padding: 26px; gap: 14px; border-left-width: 1px; border-top: 2px solid var(--gold-500); background: rgba(255,255,255,.045); }
.authorities strong { font-size: 1.06rem; }
.authorities span { letter-spacing: .12em; }
.reference-contact { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.reference-contact p { margin: 0; color: #d2dee8; }
#moyens .panel { box-shadow: none; padding: 32px; }
#moyens .panel h3 { font-size: 1.22rem; }
.about-copy h2 { max-width: 20ch; }
.identity { border-top: 3px solid var(--gold-500); }
.contact-invitation { padding: 0 0 22px; }
.contact-invitation h3 { font-size: clamp(1.6rem, 3vw, 2rem); max-width: 15ch; margin-bottom: 18px; }
.contact-invitation p { color: #c4d1dd; }
@media (max-width: 860px) {
    .nav-inner { min-height: 78px; }
    .hero-inner { padding-top: 52px; }
    .hero-stats > div { flex: 1 1 0; }
    .hero-stats strong { font-size: 1.25rem; }
    .hero-stats span { font-size: .78rem; }
    .topbar-inner { justify-content: center; }
}
@media (max-width: 520px) {
    .hero h1 { font-size: clamp(2rem, 8.7vw, 2.8rem); }
    .hero-lede { font-size: 1rem; line-height: 1.75; }
    .hero-stats { gap: 20px; margin-top: 34px; }
    .hero-stats > div { flex: 1 1 100%; }
    .hero-stats strong { font-size: 1.4rem; }
    .hero-stats span { font-size: .84rem; }
    .reference-contact .btn { width: 100%; white-space: normal; text-align: center; }
    .card h3 { min-height: 0; }
}
#moyens .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) {
    #moyens .grid-2 { grid-template-columns: 1fr; }
}

/* Identité typographique propre à AL KHEYRAT, sans photographie illustrative. */
.hero { background: var(--navy-900); }
.hero::after { background: linear-gradient(115deg, transparent 58%, rgba(208,176,85,.055) 58%, rgba(208,176,85,.055) 78%, transparent 78%); }
.hero-inner { text-align: left; padding-top: 74px; }
.hero h1 { max-width: 950px; margin-left: 0; font-size: clamp(2.25rem, 4.8vw, 4.3rem); }
.hero-lede { margin-left: 0; max-width: 760px; }
.hero-cta { justify-content: flex-start; }
.hero-stats { max-width: none; }
.domain-number { position: absolute; right: 26px; top: 24px; font-family: var(--display); font-size: 1.5rem; color: #697682; }
.card:first-child { border-top: 4px solid var(--gold-500); background: var(--gold-100); }
.card h3 { min-height: 0; }
.card .examples-label { margin: 0; font-size: .75rem; font-weight: 700; color: var(--navy-800); }
.card .examples-label + ul { margin-top: 8px; }
.supply-invitation { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 32px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.supply-invitation p { margin: 0; max-width: 65ch; color: var(--muted); }
.supply-invitation strong { display: block; color: var(--navy-800); margin-bottom: 5px; }
#moyens .resources-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#moyens .panel { padding: 26px; }
#moyens .panel h3 { align-items: flex-start; line-height: 1.4; font-size: 1.08rem; }
#moyens .panel h3 .ic { margin-top: 4px; }
.resources-note { margin: 28px auto 0; max-width: 800px; text-align: center; color: var(--muted); font-size: .9rem; }
@media (max-width: 1040px) { #moyens .resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .supply-invitation { flex-direction: column; align-items: flex-start; } }
@media (max-width: 680px) { #moyens .resources-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .supply-invitation { padding: 22px; } .supply-invitation .btn { white-space: normal; text-align: center; width: 100%; } .hero-inner { padding-top: 48px; } }

#moyens .panel > p { margin-bottom: 0; line-height: 1.8; }

/* Contact direct : e-mail, WhatsApp et téléphone. */
.direct-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.direct-contact { flex-direction: column; padding: 28px; margin: 0; }
.direct-contact > span:last-child { flex: 1; width: 100%; }
.direct-contact small { display: block; color: #c4d1dd; font-size: .9rem; margin-top: 16px; margin-bottom: 24px; }
.direct-contact b { display: block; margin-top: auto; color: var(--gold-400); font-size: .9rem; }
.contact-location { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 30px 0 0; color: #c4d1dd; font-size: .9rem; }
@media (max-width: 860px) { .direct-contact-grid { grid-template-columns: 1fr; } }

/* Lecture et crédibilité : hiérarchie sobre, identité visible dès l’accueil. */
:root { --radius: 6px; --radius-lg: 8px; }
h1, h2, h3, h4 { letter-spacing: -.025em; }
.nav-inner { min-height: 86px; }
.nav-links a { font-weight: 600; }
.btn { border-radius: 6px; }
.btn-primary { background: #c6a64b; box-shadow: none; }
.btn-primary:hover { background: #d5b75e; box-shadow: none; transform: none; }
.btn-outline:hover { transform: none; }
.hero::after { display: none; }
.hero-inner { padding-top: 64px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 3.7vw, 3.3rem); line-height: 1.16; max-width: 22ch; letter-spacing: -.035em; }
.hero-lede { font-size: 1.02rem; line-height: 1.85; max-width: 62ch; }
.hero .badge { padding: 0; margin-bottom: 24px; background: none; border: 0; border-radius: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #dac582; }
.hero-cta { gap: 12px; }
.hero-cta .btn { padding: 13px 20px; font-size: .94rem; }
.hero-identity { padding: 28px; border: 1px solid #344b5b; border-top: 2px solid var(--gold-400); border-radius: 6px; background: #102c3f; }
.hero-identity-label { font-size: .75rem; color: #c3d0da; margin-bottom: 12px; }
.hero-identity h2 { font-size: 1.3rem; letter-spacing: .01em; }
.hero-identity dl { margin: 22px 0; }
.hero-identity dl > div { padding: 14px 0; border-bottom: 1px solid #344b5b; }
.hero-identity dt { font-size: .74rem; color: #c3d0da; margin-bottom: 5px; }
.hero-identity dd { margin: 0; font-size: .94rem; color: #fff; line-height: 1.65; }
.hero-identity > a { display: flex; justify-content: space-between; gap: 14px; color: #e2c776; font-size: .85rem; font-weight: 600; }
.hero-identity > a:hover, .hero-references > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-references { margin-top: 48px; padding: 26px 0 30px; border-top: 1px solid #344b5b; }
.hero-references > a { font-size: .85rem; color: #e2c776; font-weight: 600; }
.hero-references p { margin: 12px 0 0; color: #d5dfe7; font-size: .85rem; line-height: 1.8; }
.hero-references p span { margin: 0 12px; color: #a8bac8; }
.tag { padding: 0; border: 0; background: none; border-radius: 0; color: #755d1c; }
.tag-light { color: #e2c776; }
.head { margin-bottom: 40px; }
.head h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.card { border-radius: 6px; padding: 28px; }
.card:first-child { background: #fff; border-top-width: 3px; }
.card:hover { transform: none; box-shadow: none; }
.card::before { display: none; }
.card-ic { width: 44px; height: 44px; border-radius: 6px; background: #eef1f3; color: var(--navy-800); }
.card h3 { font-size: 1.15rem; line-height: 1.35; }
.card > p { font-size: .96rem; line-height: 1.75; }
.domain-number { font-family: var(--sans); font-size: .88rem; }
.card ul { border-top-style: solid; }
#moyens .panel { background: transparent; border: 0; border-top: 1px solid #d7d2c6; border-radius: 0; padding: 26px 0; }
#moyens .panel h3 { font-size: 1.14rem; }
#moyens .resources-grid { gap: 12px 36px; }
.authorities li { border-radius: 6px; }
.contact-location { text-align: center; }
@media (max-width: 1040px) { .hero-layout { gap: 32px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
@media (max-width: 860px) {
    .hero-layout { grid-template-columns: 1fr; gap: 36px; }
    .hero-inner { padding-top: 44px; }
    .hero h1 { max-width: 24ch; }
    .hero-identity { max-width: 600px; }
    .nav-inner { min-height: 78px; }
}
@media (max-width: 520px) { .hero-identity { padding: 24px; } .hero-references p span { margin: 0 5px; } }

/* Language navigation stays visible on desktop and mobile. */
.language-switch { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.language-switch a { padding: 7px 9px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: .82rem; font-weight: 600; color: var(--navy-800); border: 1px solid transparent; }
.language-switch a[aria-current="page"] { border-color: var(--navy-800); background: #fff; }
.language-switch a:hover { background: var(--gold-100); }
.language-switch a[lang="ar"] { font-family: 'Noto Sans Arabic', Tahoma, sans-serif; }
@media (max-width: 1240px) { .nav-actions { display: none; } }
@media (max-width: 860px) {
    .nav-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 12px; padding-bottom: 8px; }
    .burger { margin-inline-start: auto; }
    .language-switch { order: 3; width: 100%; justify-content: flex-end; margin-top: 6px; }
    html { scroll-padding-top: 142px; }
}

/* Arabic uses native typography and logical reading order. */
html[lang="ar"] { --sans: 'Noto Sans Arabic', Tahoma, Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .tag, [dir="rtl"] .badge, [dir="rtl"] .ci strong,
[dir="rtl"] .identity dt, [dir="rtl"] .foot-col h4 { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2 { line-height: 1.5; }
[dir="rtl"] .hero h1 { font-size: clamp(2rem, 3.3vw, 3rem); max-width: none; margin-right: 0; }
[dir="rtl"] .hero-inner { text-align: right; }
[dir="rtl"] .hero-lede { margin-right: 0; line-height: 2; }
[dir="rtl"] .brand { margin-right: 0; margin-inline-end: auto; }
[dir="rtl"] .card h3 { line-height: 1.7; }
[dir="rtl"] .card ul li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .card ul li::before { left: auto; right: 2px; }
[dir="rtl"] .domain-number { right: auto; left: 26px; }
[dir="rtl"] .authorities { text-align: right; }
[dir="rtl"] .direct-contact [dir="ltr"] { text-align: right; }
[dir="rtl"] .director strong { direction: ltr; unicode-bidi: isolate; text-align: right; }
[dir="rtl"] .hero-identity dd { unicode-bidi: plaintext; }
[dir="rtl"] .identity dd { unicode-bidi: plaintext; }
[dir="rtl"] .contact-location { unicode-bidi: plaintext; }
[dir="rtl"] .foot-col > span { unicode-bidi: plaintext; }
[dir="rtl"] .foot-col a[dir="ltr"] { text-align: right; }
@media (max-width: 860px) { [dir="rtl"] .language-switch { justify-content: flex-start; } }
/* Hide the skip link without creating off-screen overflow in RTL. */
.skip-link:not(:focus) { left: 0; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { left: 0; width: auto; height: auto; }
html[dir="rtl"] .brand { margin: 0 0 0 auto; }
