/*
Theme Name: CoreEdge Consulting
Theme URI: https://coreedge.consulting/
Author: CoreEdge Consulting
Author URI: https://coreedge.consulting/
Description: Premium WordPress theme for CoreEdge IT Consulting — multilingual EN/FR/AR, RTL, Kernos-inspired modern corporate layout.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coreedge-consulting
Tags: one-page, custom-colors, custom-logo, responsive, rtl-language-support
*/

/* ============================================================
   1. Design Tokens – Blue/Teal/Green Palette
   ============================================================ */
:root {
    --green-soft:   #6CC090;
    --green-teal:   #6BB89C;
    --blue-deep:    #2E7BB4;
    --blue-bright:  #3DA4C7;
    --blue-light:   #5DB7C8;
    --blue-gray:    #4A5A6A;
    --teal-muted:   #6AA8A0;

    --white:        #FFFFFF;
    --bg-main:      #F4FBFD;
    --bg-alt:       #EBF6F9;
    --bg-dark:      #0F1E2B;      /* Kernos-style very dark navy */
    --bg-dark-2:    #172535;      /* Slightly lighter dark */
    --border:       #D4E8EF;
    --border-dark:  rgba(255,255,255,0.08);
    --text-dark:    #1A2A35;
    --text-body:    #4A5A6A;
    --text-muted:   #7A96A6;
    --text-light:   rgba(255,255,255,0.7);

    --shadow-blue:  rgba(46, 123, 180, 0.15);
    --shadow-soft:  rgba(30, 46, 58, 0.08);
    --shadow-card:  0 4px 24px rgba(30,46,58,0.09);

    --font-main:    'Inter', sans-serif;
    --font-arabic:  'Tajawal', sans-serif;
    --ease:         all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg:    20px;
    --radius-md:    14px;
    --radius-sm:    10px;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    background: var(--white);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}
body.lang-ar { font-family: var(--font-arabic); direction: rtl; text-align: right; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   3. Layout Utilities
   ============================================================ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; width: 100%; }
section { padding: 100px 0; }
.section-inner { padding: 100px 0; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-bright);
    background: rgba(61,164,199,0.1);
    border: 1px solid rgba(61,164,199,0.22);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}
.chip-dot { width:6px; height:6px; background:var(--blue-bright); border-radius:50%; }

.chip-light {
    color: var(--blue-light);
    background: rgba(93,183,200,0.12);
    border-color: rgba(93,183,200,0.25);
}
.chip-light .chip-dot { background: var(--green-soft); }

.section-title {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}
.section-title-light { color: var(--white); }

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.75;
    margin-bottom: 3.5rem;
}
.section-sub-light { color: var(--text-light); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.gradient-text {
    background: linear-gradient(130deg, var(--blue-deep) 0%, var(--blue-bright) 50%, var(--green-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 30px; border-radius: 50px;
    font-weight: 600; font-size: 0.92rem;
    transition: var(--ease); cursor: pointer; white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright));
    color: var(--white); box-shadow: 0 4px 20px var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(46,123,180,0.35); }

.btn-outline-dark {
    background: transparent; border: 1.5px solid rgba(255,255,255,0.25);
    color: var(--white);
}
.btn-outline-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); }

.btn-outline {
    background: transparent; border: 1.5px solid var(--border);
    color: var(--text-dark);
}
.btn-outline:hover { border-color: var(--blue-bright); color: var(--blue-deep); }

.btn-sm { padding: 9px 20px; font-size: 0.83rem; }

/* ============================================================
   5. Multilingual helpers
   ============================================================ */
body.lang-en [data-lang="fr"], body.lang-en [data-lang="ar"] { display: none; }
body.lang-fr [data-lang="en"], body.lang-fr [data-lang="ar"] { display: none; }
body.lang-ar [data-lang="en"], body.lang-ar [data-lang="fr"] { display: none; }

/* ============================================================
   6. Header / Navbar
   ============================================================ */
#site-header {
    position: fixed; top:0; left:0; width:100%; z-index:1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}
#site-header.scrolled { box-shadow: 0 4px 28px var(--shadow-soft); }

#site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px; gap: 16px;
}
.site-logo img, .custom-logo { max-height: 46px; width: auto; display: block; }
.site-logo {
    font-size: 1.35rem; font-weight: 800; color: var(--text-dark);
    letter-spacing: -0.04em; flex-shrink: 0; white-space: nowrap;
}
.site-logo em {
    font-style: normal;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.main-nav { display:flex; align-items:center; gap:24px; flex:1; justify-content:flex-end; min-width:0; }
.nav-menu { display:flex; align-items:center; gap:20px; flex-wrap:nowrap; }
.nav-menu a {
    font-size: 0.82rem; font-weight: 500; color: var(--text-body);
    transition: var(--ease); position: relative; padding-bottom: 2px; white-space: nowrap;
}
.nav-menu a::after {
    content:''; position:absolute; bottom:-2px; left:0;
    width:0; height:2px; background:var(--blue-deep); border-radius:2px; transition:width 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--blue-deep); }
.nav-menu a:hover::after, .nav-menu a.active::after { width:100%; }

.nav-cta { margin-left: 6px; }

.lang-switcher {
    display:flex; align-items:center; gap:2px;
    background:var(--bg-alt); border:1px solid var(--border); border-radius:50px;
    padding:3px; flex-shrink:0;
}
.lang-btn { font-size:0.7rem; font-weight:700; color:var(--text-muted); padding:4px 9px; border-radius:50px; transition:var(--ease); }
.lang-btn.active, .lang-btn:hover { background:var(--blue-deep); color:var(--white); }

.nav-toggle { display:none; flex-direction:column; gap:5px; padding:6px; }
.nav-toggle span { display:block; width:24px; height:2px; background:var(--text-dark); border-radius:2px; transition:var(--ease); }
.nav-toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; }
.nav-toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ============================================================
   7. Hero — Kernos style: centered, bold h1, floating icons
   ============================================================ */
#hero {
    min-height: 100vh; display:flex; align-items:center;
    position:relative; overflow:hidden; padding:0; margin-top:76px;
    background: var(--bg-dark);
}
.hero-grid-bg {
    position:absolute; inset:0; pointer-events:none;
    background-image: radial-gradient(rgba(61,164,199,0.08) 1px, transparent 1px);
    background-size: 36px 36px;
}
.hero-glow-1 {
    position:absolute; width:600px; height:600px; border-radius:50%;
    background: radial-gradient(circle, rgba(46,123,180,0.25) 0%, transparent 70%);
    top: -150px; right: -100px; pointer-events:none;
}
.hero-glow-2 {
    position:absolute; width:400px; height:400px; border-radius:50%;
    background: radial-gradient(circle, rgba(108,192,144,0.15) 0%, transparent 70%);
    bottom: -100px; left: 5%; pointer-events:none;
}

/* Floating decorative icons (Kernos-inspired) */
.hero-float {
    position:absolute; background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1); border-radius:16px;
    display:flex; align-items:center; justify-content:center;
    backdrop-filter:blur(4px); pointer-events:none;
    animation: floatAnim 6s ease-in-out infinite alternate;
}
.hero-float svg { color: var(--blue-light); }
.hero-float-1 { width:64px; height:64px; top:18%; right:12%; animation-delay:0s; }
.hero-float-1 svg { width:28px; height:28px; }
.hero-float-2 { width:52px; height:52px; top:55%; right:6%; animation-delay:1.5s; }
.hero-float-2 svg { width:22px; height:22px; color:var(--green-soft); }
.hero-float-3 { width:48px; height:48px; top:30%; left:6%; animation-delay:0.8s; }
.hero-float-3 svg { width:20px; height:20px; color:var(--teal-muted); }
.hero-float-4 { width:56px; height:56px; bottom:22%; right:22%; animation-delay:2s; }
.hero-float-4 svg { width:24px; height:24px; }
@keyframes floatAnim {
    from { transform: translateY(0px) rotate(0deg); }
    to   { transform: translateY(-16px) rotate(3deg); }
}

.hero-inner { position:relative; z-index:10; padding:80px 0; text-align:center; }
.hero-inner .chip { margin-bottom:1.5rem; }

.hero-headline {
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    font-weight: 800; color: var(--white); line-height: 1.08;
    letter-spacing: -0.03em; margin-bottom: 1.5rem;
    animation: fadeUp 0.7s ease both;
    max-width: 860px; margin-left: auto; margin-right: auto;
}

.hero-sub {
    font-size: 1.12rem; color: var(--text-light);
    max-width: 580px; line-height: 1.75; margin: 0 auto 2.5rem;
    animation: fadeUp 0.7s 0.15s ease both;
}

.hero-ctas {
    display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
    animation: fadeUp 0.7s 0.28s ease both;
}

/* Stats bar */
.hero-stats {
    display:flex; justify-content:center; gap:0;
    margin-top:60px; animation: fadeUp 0.7s 0.4s ease both;
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08);
    border-radius:var(--radius-lg); padding:32px 0; max-width:700px; margin-left:auto; margin-right:auto;
}
.stat-item {
    flex:1; text-align:center;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding:0 28px;
}
.stat-item:last-child { border-right:none; }
.stat-num { font-size:2.2rem; font-weight:800; color:var(--white); line-height:1; }
.stat-num span { background:linear-gradient(135deg,var(--blue-light),var(--green-soft)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.stat-label { font-size:0.78rem; color:rgba(255,255,255,0.45); margin-top:6px; letter-spacing:0.04em; }

@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

/* ============================================================
   8. Services — dark section, rounded cards (Kernos style)
   ============================================================ */
#services { background: var(--bg-dark); padding:100px 0; }

.services-head { text-align:center; margin-bottom:56px; }

.services-grid {
    display:grid; grid-template-columns:repeat(2, 1fr); gap:20px;
}

.service-card {
    background: var(--bg-dark-2); border:1px solid var(--border-dark);
    border-radius:var(--radius-lg); padding:38px;
    transition:var(--ease); position:relative; overflow:hidden;
    cursor:default;
}
.service-card::before {
    content:''; position:absolute; top:0; left:0; right:0; height:2px;
    background:linear-gradient(90deg, var(--blue-deep), var(--green-soft));
    opacity:0; transition:opacity 0.35s ease;
}
.service-card:hover {
    border-color:rgba(61,164,199,0.3);
    transform:translateY(-5px);
    box-shadow:0 20px 50px rgba(0,0,0,0.3);
}
.service-card:hover::before { opacity:1; }

.service-icon {
    width:58px; height:58px; border-radius:14px;
    background:linear-gradient(135deg, rgba(46,123,180,0.2), rgba(61,164,199,0.1));
    border:1px solid rgba(61,164,199,0.2);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:24px; color:var(--blue-light);
}
.service-icon svg { width:26px; height:26px; }
.service-card h3 { font-size:1.18rem; font-weight:700; color:var(--white); margin-bottom:12px; }
.service-card p { font-size:0.9rem; color:var(--text-light); line-height:1.72; margin:0; }
.service-tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:20px; }
.service-tag {
    font-size:0.68rem; font-weight:600;
    color:var(--blue-light); background:rgba(61,164,199,0.1);
    border:1px solid rgba(61,164,199,0.2); padding:3px 11px; border-radius:50px;
}

/* ============================================================
   9. Process / Processus — vertical timeline (Kernos style)
   ============================================================ */
#process { background: var(--white); }
.process-head { text-align:center; margin-bottom:64px; }

.process-layout { display:grid; grid-template-columns:1fr 1.1fr; gap:72px; align-items:flex-start; }

.process-steps { display:flex; flex-direction:column; gap:0; position:relative; }
.process-steps::before {
    content:''; position:absolute; left:22px; top:22px; bottom:22px; width:2px;
    background:linear-gradient(to bottom, var(--blue-deep), var(--green-soft));
    border-radius:2px;
}
body.lang-ar .process-steps::before { left:auto; right:22px; }

.process-step {
    display:flex; gap:24px; padding:20px 0; position:relative; cursor:pointer;
    transition:var(--ease);
}
.step-indicator {
    width:44px; height:44px; border-radius:50%; flex-shrink:0;
    background:var(--bg-main); border:2px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    font-size:0.85rem; font-weight:700; color:var(--text-muted);
    transition:var(--ease); position:relative; z-index:1;
}
.process-step.active .step-indicator,
.process-step:hover .step-indicator {
    background:var(--blue-deep); border-color:var(--blue-deep);
    color:var(--white); box-shadow:0 0 0 4px rgba(46,123,180,0.15);
}
.step-text h4 { font-size:0.95rem; font-weight:700; color:var(--text-dark); margin-bottom:4px; transition:var(--ease); }
.process-step.active .step-text h4,
.process-step:hover .step-text h4 { color:var(--blue-deep); }
.step-text p { font-size:0.82rem; color:var(--text-muted); margin:0; line-height:1.6; }
.step-duration {
    display:inline-block; font-size:0.7rem; font-weight:700;
    color:var(--blue-bright); background:rgba(61,164,199,0.1);
    border:1px solid rgba(61,164,199,0.2); padding:2px 9px; border-radius:50px; margin-top:6px;
}

.process-detail-card {
    background:var(--bg-main); border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:40px;
    box-shadow:var(--shadow-card); position:sticky; top:100px;
}
.process-detail-card h3 { font-size:1.3rem; font-weight:700; color:var(--text-dark); margin-bottom:12px; }
.process-detail-card p { font-size:0.95rem; color:var(--text-body); line-height:1.75; margin-bottom:20px; }
.process-deliverables { display:flex; flex-direction:column; gap:10px; }
.deliverable {
    display:flex; align-items:center; gap:11px;
    font-size:0.88rem; color:var(--text-body); padding:10px 14px;
    background:var(--white); border:1px solid var(--border); border-radius:var(--radius-sm);
}
.deliverable-check {
    width:22px; height:22px; border-radius:50%; flex-shrink:0;
    background:linear-gradient(135deg,var(--blue-deep),var(--blue-bright));
    display:flex; align-items:center; justify-content:center; color:white;
}
.deliverable-check svg { width:12px; height:12px; }

/* ============================================================
   10. Stats Strip
   ============================================================ */
#stats { background: var(--bg-dark); padding:72px 0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.stats-item {
    text-align:center; padding:32px 20px;
    border-right:1px solid rgba(255,255,255,0.07);
}
.stats-item:last-child { border-right:none; }
.stats-num { font-size:2.8rem; font-weight:800; line-height:1; margin-bottom:10px; }
.stats-num span {
    background:linear-gradient(135deg,var(--blue-light),var(--green-soft));
    -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.stats-label { font-size:0.85rem; color:rgba(255,255,255,0.5); line-height:1.4; }

/* ============================================================
   11. About — light section, image + text grid
   ============================================================ */
#about { background: var(--white); }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; }
.about-img-wrap {
    border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:4/3;
    position:relative; box-shadow:0 24px 64px var(--shadow-soft);
}
.about-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform 0.6s ease; }
.about-img-wrap:hover img { transform:scale(1.03); }
.about-badge {
    position:absolute; bottom:24px; right:24px;
    background:var(--white); border:1px solid var(--border);
    border-radius:var(--radius-md); padding:14px 20px;
    box-shadow:0 8px 32px var(--shadow-soft); text-align:center;
}
body.lang-ar .about-badge { right:auto; left:24px; }
.about-badge strong { display:block; font-size:1.5rem; font-weight:800; color:var(--blue-deep); line-height:1; }
.about-badge span { font-size:0.72rem; color:var(--text-muted); }

.about-content .section-title { text-align:left; }
.about-content .section-sub { margin-bottom:2rem; }
.about-features { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:2rem; }
.about-feature {
    display:flex; align-items:flex-start; gap:11px;
    padding:14px; background:var(--bg-main); border:1px solid var(--border); border-radius:var(--radius-sm);
}
.about-feature-icon {
    width:34px; height:34px;
    background:linear-gradient(135deg,var(--blue-deep),var(--blue-bright));
    border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:white;
}
.about-feature-icon svg { width:16px; height:16px; }
.about-feature h4 { font-size:0.82rem; font-weight:700; color:var(--text-dark); margin-bottom:2px; }
.about-feature p { font-size:0.76rem; color:var(--text-muted); margin:0; }

/* ============================================================
   12. Compliance — light, 3-col cards
   ============================================================ */
#compliance { background: var(--bg-alt); }
.compliance-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:3rem; }
.compliance-card {
    background:var(--white); border:1px solid var(--border);
    border-radius:var(--radius-md); padding:30px; text-align:center; transition:var(--ease);
}
.compliance-card:hover {
    border-color:rgba(46,123,180,0.3); transform:translateY(-4px);
    box-shadow:0 12px 36px var(--shadow-blue);
}
.compliance-icon {
    width:52px; height:52px;
    background:linear-gradient(135deg,var(--blue-deep),var(--blue-bright));
    border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center;
    margin:0 auto 16px; color:white;
}
.compliance-icon svg { width:23px; height:23px; }
.compliance-card h3 { font-size:0.95rem; font-weight:700; color:var(--text-dark); margin-bottom:8px; }
.compliance-card p { font-size:0.84rem; color:var(--text-body); margin:0; line-height:1.65; }

/* ============================================================
   13. Why Us — dark, 2-col left-text + right cards
   ============================================================ */
#why-us { background: var(--bg-dark); }
.why-layout { display:grid; grid-template-columns:1fr 1.1fr; gap:72px; align-items:center; }
.why-left .section-title { text-align:left; }
.why-intro { font-size:0.97rem; color:var(--text-light); line-height:1.75; margin-top:1rem; margin-bottom:2rem; }
.why-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.why-card {
    background:rgba(255,255,255,0.04); border:1px solid var(--border-dark);
    border-radius:var(--radius-md); padding:24px; transition:var(--ease);
}
.why-card:hover { border-color:rgba(61,164,199,0.35); background:rgba(61,164,199,0.07); }
.why-card-icon {
    width:40px; height:40px;
    background:rgba(46,123,180,0.2); border-radius:9px;
    display:flex; align-items:center; justify-content:center; color:var(--blue-light); margin-bottom:14px;
}
.why-card-icon svg { width:18px; height:18px; }
.why-card h4 { font-size:0.9rem; font-weight:700; color:var(--white); margin-bottom:7px; }
.why-card p { font-size:0.8rem; color:var(--text-light); line-height:1.65; margin:0; }

/* ============================================================
   14. Testimonials — white, card slider (Kernos style)
   ============================================================ */
#testimonials { background:var(--white); }
.testimonials-wrap { position:relative; overflow:hidden; margin-top:3rem; }
.testimonials-track { display:flex; gap:20px; transition:transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.testimonial-card {
    background:var(--bg-main); border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:34px;
    min-width:calc(33.333% - 14px); flex-shrink:0; position:relative;
}
.testimonial-card::before {
    content:'\201C'; position:absolute; top:20px; right:28px;
    font-size:5rem; line-height:1; color:var(--border); font-family:Georgia,serif;
}
body.lang-ar .testimonial-card::before { right:auto; left:28px; content:'\201D'; }
.t-stars { display:flex; gap:3px; margin-bottom:14px; }
.t-star { width:13px; height:13px; background:var(--green-soft); clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.t-text { font-size:0.9rem; color:var(--text-dark); line-height:1.75; margin-bottom:22px; font-style:italic; }
.t-author { display:flex; align-items:center; gap:12px; }
.t-avatar {
    width:42px; height:42px; border-radius:50%;
    background:linear-gradient(135deg,var(--blue-deep),var(--green-teal));
    display:flex; align-items:center; justify-content:center; color:white; font-weight:700; font-size:0.9rem; flex-shrink:0;
}
.t-name { font-weight:700; font-size:0.86rem; color:var(--text-dark); }
.t-role { font-size:0.76rem; color:var(--text-muted); }
.slider-controls { display:flex; justify-content:center; align-items:center; gap:14px; margin-top:28px; }
.slider-btn {
    width:42px; height:42px; border-radius:50%;
    background:var(--bg-alt); border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center; transition:var(--ease); color:var(--text-body);
}
.slider-btn:hover { background:var(--blue-deep); color:white; border-color:var(--blue-deep); }
.slider-btn svg { width:17px; height:17px; }
.slider-dots { display:flex; gap:7px; }
.slider-dot { width:8px; height:8px; border-radius:50%; background:var(--border); cursor:pointer; transition:var(--ease); }
.slider-dot.active { background:var(--blue-deep); width:22px; border-radius:4px; }

/* ============================================================
   15. Clients / Partners logos strip
   ============================================================ */
#clients { background: var(--bg-dark); padding:72px 0; }
.clients-head { text-align:center; margin-bottom:40px; }
.clients-head p { font-size:0.85rem; color:rgba(255,255,255,0.4); letter-spacing:0.12em; text-transform:uppercase; }
.clients-grid { display:flex; flex-wrap:wrap; gap:16px; justify-content:center; }
.client-logo-box {
    background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08);
    border-radius:var(--radius-sm); padding:18px 28px;
    display:flex; align-items:center; justify-content:center;
    font-size:0.82rem; font-weight:700; color:rgba(255,255,255,0.4);
    letter-spacing:0.08em; text-transform:uppercase;
    transition:var(--ease); min-width:140px;
}
.client-logo-box:hover { background:rgba(61,164,199,0.1); border-color:rgba(61,164,199,0.3); color:var(--blue-light); }

/* ============================================================
   16. Maintenance — dark, split grid
   ============================================================ */
#maintenance {
    background:linear-gradient(150deg,var(--bg-dark) 0%,#1a3550 50%,#2E7BB4 100%);
    position:relative; overflow:hidden;
}
.maintenance-bg-dots {
    position:absolute; inset:0;
    background-image:radial-gradient(rgba(255,255,255,0.04) 1px,transparent 1px);
    background-size:30px 30px; pointer-events:none;
}
.maintenance-layout { display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; position:relative; z-index:2; }
.maint-title { font-size:clamp(1.9rem,3.5vw,2.5rem); font-weight:800; color:var(--white); line-height:1.2; margin-bottom:1.1rem; }
.maint-desc { font-size:0.97rem; color:rgba(255,255,255,0.68); line-height:1.75; margin-bottom:2rem; }
.maint-features { display:flex; flex-direction:column; gap:12px; margin-bottom:2rem; }
.maint-feature { display:flex; align-items:center; gap:11px; color:rgba(255,255,255,0.82); font-size:0.88rem; }
body.lang-ar .maint-feature { flex-direction:row-reverse; }
.maint-check {
    width:20px; height:20px;
    background:rgba(108,192,144,0.2); border:1px solid rgba(108,192,144,0.4);
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    flex-shrink:0; color:var(--green-soft);
}
.maint-check svg { width:11px; height:11px; }
.maint-cards { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.maint-card {
    background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
    border-radius:var(--radius-md); padding:24px 20px; text-align:center; transition:var(--ease);
}
.maint-card:hover { background:rgba(61,164,199,0.1); border-color:rgba(61,164,199,0.3); }
.maint-card-emoji { font-size:1.7rem; margin-bottom:10px; }
.maint-card h4 { font-size:0.86rem; font-weight:700; color:var(--white); margin-bottom:7px; }
.maint-card p { font-size:0.76rem; color:rgba(255,255,255,0.48); margin:0; }

/* ============================================================
   17. CTA Banner (Kernos "Prêt à démarrer")
   ============================================================ */
#cta-banner { background: var(--bg-alt); padding:80px 0; }
.cta-card {
    background:var(--bg-dark); border-radius:var(--radius-lg);
    padding:64px 56px; text-align:center;
    position:relative; overflow:hidden;
}
.cta-card::before {
    content:''; position:absolute; inset:0;
    background:radial-gradient(ellipse 60% 80% at 50% 0%, rgba(61,164,199,0.15) 0%, transparent 65%);
    pointer-events:none;
}
.cta-card h2 { font-size:clamp(1.8rem,3.5vw,2.5rem); font-weight:800; color:var(--white); margin-bottom:1rem; position:relative; }
.cta-card p { font-size:1rem; color:var(--text-light); max-width:500px; margin:0 auto 2rem; position:relative; }
.cta-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; position:relative; }
.cta-email { font-size:0.88rem; color:rgba(255,255,255,0.4); margin-top:1rem; position:relative; }
.cta-email a { color:var(--blue-light); }
.cta-email a:hover { text-decoration:underline; }

/* ============================================================
   18. Contact Section
   ============================================================ */
#contact { background: var(--white); }
.contact-layout { display:grid; grid-template-columns:1.2fr 1fr; gap:48px; margin-top:3.5rem; }
.contact-form-wrap { background:var(--bg-main); border:1px solid var(--border); border-radius:var(--radius-lg); padding:44px; }
.contact-form { display:flex; flex-direction:column; gap:18px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-group { display:flex; flex-direction:column; gap:5px; }
.form-group label { font-size:0.82rem; font-weight:600; color:var(--text-dark); }
.form-group input, .form-group textarea, .form-group select {
    width:100%; padding:12px 15px;
    background:var(--white); border:1.5px solid var(--border);
    border-radius:var(--radius-sm); font-family:var(--font-main); font-size:0.9rem; color:var(--text-dark);
    transition:var(--ease); outline:none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color:var(--blue-bright); box-shadow:0 0 0 3px rgba(61,164,199,0.12);
}
.form-group textarea { height:130px; resize:vertical; }
.form-submit {
    width:100%; padding:14px;
    background:linear-gradient(135deg,var(--blue-deep),var(--blue-bright));
    color:white; font-weight:700; font-size:0.98rem;
    border-radius:var(--radius-sm); transition:var(--ease); border:none; cursor:pointer;
}
.form-submit:hover { transform:translateY(-2px); box-shadow:0 8px 24px var(--shadow-blue); }
.form-notice { padding:11px 15px; border-radius:8px; font-size:0.86rem; font-weight:600; margin-bottom:12px; }
.form-notice.success { background:rgba(108,192,144,0.12); border:1px solid rgba(108,192,144,0.35); color:#2e7d32; }
.form-notice.error   { background:rgba(46,123,180,0.1);  border:1px solid rgba(46,123,180,0.3);  color:var(--blue-deep); }
.contact-info { display:flex; flex-direction:column; gap:20px; }
.contact-info-card { background:var(--bg-main); border:1px solid var(--border); border-radius:var(--radius-md); padding:26px; }
.contact-info-card h3 { font-size:1.05rem; font-weight:700; color:var(--text-dark); margin-bottom:18px; }
.info-row { display:flex; align-items:flex-start; gap:13px; margin-bottom:16px; }
.info-row:last-child { margin-bottom:0; }
body.lang-ar .info-row { flex-direction:row-reverse; }
.info-icon {
    width:36px; height:36px;
    background:linear-gradient(135deg,rgba(46,123,180,0.12),rgba(61,164,199,0.06));
    border-radius:9px; display:flex; align-items:center; justify-content:center;
    color:var(--blue-deep); flex-shrink:0;
}
.info-icon svg { width:17px; height:17px; }
.info-text strong { display:block; font-size:0.82rem; font-weight:700; color:var(--text-dark); margin-bottom:2px; }
.info-text span { font-size:0.85rem; color:var(--text-muted); }
.svc-list { display:flex; flex-direction:column; gap:9px; }
.svc-list-item { display:flex; align-items:center; gap:9px; font-size:0.86rem; color:var(--text-body); }
.svc-list-item::before { content:''; width:6px; height:6px; background:var(--blue-bright); border-radius:50%; flex-shrink:0; }

/* ============================================================
   19. Footer
   ============================================================ */
#site-footer { background:var(--bg-dark); color:rgba(255,255,255,0.55); padding:60px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:44px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,0.08); }
.footer-brand .site-logo { color:var(--white); display:block; margin-bottom:14px; }
.footer-brand p { font-size:0.85rem; line-height:1.7; color:rgba(255,255,255,0.42); margin-bottom:22px; }
.footer-social { display:flex; gap:10px; }
.social-link {
    width:34px; height:34px;
    background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
    border-radius:8px; display:flex; align-items:center; justify-content:center;
    color:rgba(255,255,255,0.45); transition:var(--ease); font-size:0.72rem; font-weight:700;
}
.social-link:hover { background:var(--blue-deep); border-color:var(--blue-deep); color:white; }
.footer-col h4 { font-size:0.76rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--white); margin-bottom:18px; }
.footer-links { display:flex; flex-direction:column; gap:10px; }
.footer-links a { font-size:0.85rem; color:rgba(255,255,255,0.45); transition:var(--ease); }
.footer-links a:hover { color:var(--blue-light); }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; padding-top:26px; font-size:0.79rem; color:rgba(255,255,255,0.3); }
.footer-bottom-links { display:flex; gap:22px; }
.footer-bottom-links a { color:rgba(255,255,255,0.3); transition:var(--ease); }
.footer-bottom-links a:hover { color:var(--blue-light); }

/* ============================================================
   20. Scroll Reveal
   ============================================================ */
.reveal { opacity:0; transform:translateY(26px); transition:opacity 0.65s ease,transform 0.65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ============================================================
   21. RTL Overrides
   ============================================================ */
body.lang-ar .main-nav { flex-direction:row-reverse; }
body.lang-ar .nav-menu a::after { left:auto; right:0; }
body.lang-ar .service-card::before { transform-origin:right; }
body.lang-ar .footer-grid { direction:rtl; }
body.lang-ar .process-layout { direction:rtl; }

/* ============================================================
   22. Responsive
   ============================================================ */
@media (max-width:1024px) {
    .about-grid { gap:44px; }
    .why-layout { gap:44px; }
    .maintenance-layout { gap:44px; }
    .process-layout { gap:44px; }
    .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
    .stats-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px) {
    .services-grid { grid-template-columns:1fr; }
    .compliance-grid { grid-template-columns:1fr 1fr; }
    .testimonial-card { min-width:calc(50% - 10px); }
    .contact-layout { grid-template-columns:1fr; }
    .process-layout { grid-template-columns:1fr; }
    .process-detail-card { position:static; }
}
@media (max-width:768px) {
    section { padding:68px 0; }
    .main-nav {
        position:fixed; inset:76px 0 0;
        background:var(--white); flex-direction:column;
        justify-content:flex-start; padding:36px 24px;
        transform:translateX(100%); transition:transform 0.35s ease;
        gap:0; border-top:1px solid var(--border);
    }
    .main-nav.open { transform:translateX(0); }
    .nav-menu { flex-direction:column; align-items:flex-start; gap:0; width:100%; }
    .nav-menu a { font-size:1.05rem; padding:11px 0; width:100%; border-bottom:1px solid var(--border); }
    .lang-switcher { margin-top:22px; }
    .nav-toggle { display:flex; }
    .about-grid { grid-template-columns:1fr; }
    .about-features { grid-template-columns:1fr; }
    .why-layout { grid-template-columns:1fr; }
    .why-grid { grid-template-columns:1fr; }
    .maintenance-layout { grid-template-columns:1fr; }
    .maint-cards { grid-template-columns:1fr 1fr; }
    .testimonial-card { min-width:100%; }
    .form-row { grid-template-columns:1fr; }
    .contact-form-wrap { padding:28px 20px; }
    .footer-grid { grid-template-columns:1fr 1fr; }
    .footer-bottom { flex-direction:column; gap:10px; text-align:center; }
    .hero-stats { flex-direction:column; gap:0; border-radius:var(--radius-md); }
    .stat-item { border-right:none; border-bottom:1px solid rgba(255,255,255,0.08); padding:20px; }
    .stat-item:last-child { border-bottom:none; }
    .cta-card { padding:40px 28px; }
}
@media (max-width:480px) {
    .hero-headline { font-size:2.2rem; }
    .hero-ctas { flex-direction:column; align-items:center; }
    .compliance-grid { grid-template-columns:1fr; }
    .stats-grid { grid-template-columns:1fr 1fr; }
    .footer-grid { grid-template-columns:1fr; }
    .services-grid { grid-template-columns:1fr; }
}
