/* ==========================================================================
   ab medica Maroc — Landing page
   CSS pur, responsive, LTR (fr) & RTL (ar)
   Palette : Bleu #18376f · Fluo #c9ed08 · Bleu ciel #f3f8fd
   Police  : Abadi MT Pro (titres & textes)
   ========================================================================== */
:root {
    --navy-950: #0f2854;
    --navy-900: #18376f;
    --navy-800: #1f4589;
    --navy-700: #2955a3;
    --teal-700: #18376f;
    --lime-500: #c9ed08;
    --lime-600: #b3d000;
    --bg-soft: #f3f8fd;
    --bg-soft-2: #e6f1fb;
    --ink: #10233b;
    --ink-soft: #52657c;
    --white: #ffffff;
    --line: #dde6ef;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-card: 0 20px 45px -25px rgba(11, 34, 63, 0.35);
    --shadow-soft: 0 10px 30px -18px rgba(11, 34, 63, 0.25);
    --font-display: "Abadi MT Pro", "Montserrat", "Poppins", sans-serif;
    --font-body: "Abadi MT Pro", "Open Sans", "Inter", sans-serif;
    --container: 1580px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* img { max-width: 100%; display: block; } */
a {
    color: inherit;
    text-decoration: none;
}
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--navy-900);
    margin: 0 0 0.6em;
    line-height: 1.2;
}
p {
    margin: 0 0 1em;
    color: var(--ink-soft);
    line-height: 1.7;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
button {
    font-family: inherit;
    cursor: pointer;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 82px;
    width: auto;
    display: block;
}
body.lang-ar {
    font-family: var(--font-body);
}
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4 {
    font-family: "Abadi MT Pro", "Cairo", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
    white-space: nowrap;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-dark {
    background: var(--navy-900);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--navy-800);
    box-shadow: var(--shadow-soft);
}
.btn-accent {
    background: var(--lime-500);
    color: var(--navy-950);
}
.btn-accent:hover {
    background: var(--lime-600);
    box-shadow: var(--shadow-soft);
}
.btn-primary {
    background: var(--navy-900);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--navy-800);
}
.btn-sm {
    padding: 10px 22px;
    font-size: 0.82rem;
}
.btn-lg {
    padding: 17px 40px;
    font-size: 1rem;
}

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: 14px;
}
.eyebrow--light {
    color: var(--lime-500);
}
.eyebrow--accent {
    color: var(--lime-500);
}

.section-head {
    width: 1200px;
    margin-bottom: 48px;
}
.section-head h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}
.section-head--center {
    margin-inline: auto;
    text-align: center;
}

section {
    padding-block: 96px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 16px;
}
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-mark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--navy-900);
    letter-spacing: -0.01em;
}
.logo-mark span {
    color: var(--teal-700);
}
.logo-mark--light {
    color: var(--white);
    font-size: 1.6rem;
}
.logo-mark--light span {
    color: var(--lime-500);
}
.logo-sub {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.main-nav a {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy-900);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    padding-block: 4px;
}
.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--lime-500);
    transition: width 0.25s ease;
}
.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lang-switch {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy-900);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}
.lang-switch:hover {
    border-color: var(--teal-700);
    color: var(--teal-700);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}
.burger span {
    width: 24px;
    height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}
.burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
    opacity: 0;
}
.burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    padding-block: 20px 40px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}
.hero-lead {
    color: #18376f;
    font-size: 1.05rem;
    max-width: 66ch;
    margin-bottom: 15%;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}
.hero-visual {
    position: relative;
}
.hero-visual-glow {
    position: absolute;
    inset: 8% 5%;
    filter: blur(20px);
    z-index: 0;
}
[dir="rtl"] .hero-visual img {
    margin-left: 0 !important;
    margin-right: -40% !important;
}
.hero-visual img {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    width: 200% !important;
    margin-left: -50% !important;
    margin-top: -25%;
}
.hero {
    padding-block: 20px 60px;
    border-bottom-left-radius: 68px;
    border-bottom-right-radius: 68px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}
/* ==========================================================================
   PRESENTATION + CHIFFRES CLES
   ========================================================================== */
.presentation-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
    padding-top: 12px;
}
.presentation-text h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.stats-panel {
    border-radius: var(--radius-lg);
    padding: 30px;
}
.stats-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 16px;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 50px 70px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-soft);
}
.stat-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    background: var(--white);
    padding: 20px 20px;
}
[dir="rtl"] .stat-value {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}valeurs-grid
/* À supprimer */

.stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--navy-900);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--navy-900);
}

.anniversary-banner {
    position: relative;
    margin-top: 72px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 380px;
}
.anniversary-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.anniversary-badge {
    position: absolute;
    inset-inline-start: 6%;
    bottom: -30px;
    background: var(--navy-950);
    color: var(--white);
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
    padding: 40px 60px 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    gap: 2px;
    min-width: 220px;
}
.anniversary-badge-line {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--lime-500);
}
.anniversary-badge-line sup {
    font-size: 0.9rem;
    margin-inline-start: 3px;
}

/* ==========================================================================
   SOLUTIONS (hero image + overlay card + feature columns)
   ========================================================================== */
.solutions-hero-section {
    margin-top: -160px;
}

.solutions-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}
.solutions-hero img {
    width: 100%;
    height: auto;
    display: block;

    /* Top corners only */
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    box-shadow: var(--shadow-card);
}

.solutions-overlay {
    position: absolute;
    inset-inline-start: 24px;
    bottom: -70px;
    width: 300px;
    background: var(--navy-950);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 32px;
    box-shadow: var(--shadow-card);
    z-index: 2;
}
.solutions-overlay h2 {
    color: var(--lime-500);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 12px;
}
.solutions-overlay p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.solutions-features {
    display: flex;
    gap: 64px;
    margin-top: 40px;
}
.solutions-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.solutions-col:first-child {
    padding-top: 110px; /* clears the overlay card that hangs below the image */
}
.solutions-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0 0 10px;
}
.solutions-item p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.7;
}

/* RTL */
/* RTL — solutions */
[dir="rtl"] .solutions-features {
    flex-direction: row-reverse;
}
[dir="rtl"] .solutions-item {
    margin-top:50px ;
    text-align: right;
}
[dir="rtl"] .solutions-col:first-child {
    padding-top: 110px; /* devient la colonne visuellement à droite, sous la carte */
}
[dir="rtl"] .solutions-col:last-child {
    padding-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .solutions-overlay {
        width: 260px;
        padding: 24px 26px;
        bottom: -60px;
    }
    .solutions-col:first-child {
        padding-top: 90px;
    }
}
@media (max-width: 720px) {
    .solutions-hero {
        overflow: hidden;
    }
    .solutions-overlay {
        position: static;
        width: auto;
        border-radius: 0;
    }
    .solutions-features {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }
    .solutions-col:first-child {
        padding-top: 0;
    }
}

/* ==========================================================================
   SOLUTIONS
   ========================================================================== */
.solutions {
    background: var(--navy-950);
    color: var(--white);
    margin-top: 40px;
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.solutions-feature,
.solution-item {
    background: var(--navy-950);
    padding: 40px;
}
.solutions-feature {
    background: linear-gradient(150deg, var(--teal-700), #0a2148);
}
.solutions-feature h2 {
    color: var(--white);
    font-size: 1.4rem;
    margin: 0;
}
.solution-item h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.solution-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
}
.solution-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    color: var(--lime-500);
    margin-bottom: 16px;
}
.solution-icon svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   MISSION
   ========================================================================== */
.mission {
    position: relative;
    border-bottom-left-radius: 68px;
    border-bottom-right-radius: 68px;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}
.mission-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.mission-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mission-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.7) 35%,
        rgba(255, 255, 255, 0) 65%
    );
}
.mission-overlay h1 {
    width: 100%;
}
.mission-overlay {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding: 80px 40px 80px 60px;
}
.mission-block {
    margin-top: 26px;
}
.mission-block h3 {
    font-size: 1.05rem;
    color: var(--teal-700);
}

@media (max-width: 1024px) {
    .mission {
        min-height: 420px;
    }
    .mission-overlay {
        max-width: 100%;
        padding: 60px 32px;
    }
    .mission-bg::after {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.75) 40%,
            rgba(255, 255, 255, 0.1) 75%
        );
    }
}
/* RTL — mission */
[dir="rtl"] .mission-bg::after {
}
[dir="rtl"] .mission-overlay {
    padding: 80px 60px 80px 40px;
    margin-inline-start: auto;
    text-align: right;
}

@media (max-width: 1024px) {
    [dir="rtl"] .mission-bg::after {
    }
}
/* ---------- VALEURS ---------- */
.valeurs {
    background: #fff;
}

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.valeur-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 50px 26px;
    box-shadow:
        0 18px 40px -12px rgba(11, 34, 63, 0.18),
        0 4px 12px -2px rgba(11, 34, 63, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.valeur-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 24px 50px -14px rgba(11, 34, 63, 0.24),
        0 6px 16px -2px rgba(11, 34, 63, 0.1);
}
.valeur-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.valeur-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.valeur-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-soft-2);
}
.valeur-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.valeur-head h3 {
    position: relative;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0;
    padding-bottom: 8px;
}
.valeur-head h3::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    background: var(--lime-500);
    border-radius: 2px;
}

.valeur-card p {
    font-size: 0.9rem;
    color: var(--navy-900);
    margin: 0;
    line-height: 1.65;
}

@media (max-width: 1024px) {
    .valeurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 720px) {
    .valeurs-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   EQUIPE
   ========================================================================== */
.equipe-groupes {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 40px;
    margin-top: 48px;
}

.equipe-groupe {
    flex: 1 1 300px;
}

.equipe-groupe--full {
    flex: 1 1 100%;
}

.equipe-groupe-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--teal-700);
    margin-bottom: 20px;
}

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

.equipe-groupe--full .equipe-grid {
    grid-template-columns: repeat(4, 1fr);
}

.membre-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 28px 18px 22px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.membre-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--navy-900);
}

.membre-card h4 {
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.membre-poste {
    position: relative;
    display: inline-block;
    font-size: 0.8rem;
    color: var(--teal-700);
    margin-bottom: 16px;
    padding-bottom: 8px;
}
.membre-poste::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--lime-500);
}

.membre-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.membre-contact svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.membre-contact:hover {
    color: var(--teal-700);
}

.equipe-signature {
    margin-top: 56px;
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.equipe-signature p {
    max-width: 86ch;
    font-size: 1rem;
    color: var(--navy-900);
    font-weight: 500;
    margin: 0;
}
.equipe-signature .btn {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .equipe-groupe--full .equipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .equipe-groupes {
        gap: 36px 24px;
    }
    .equipe-grid {
        grid-template-columns: 1fr;
    }
    .equipe-groupe--full .equipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .equipe-signature {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ==========================================================================
   ACTUALITES
   ========================================================================== */
.actualites {
    background: #fff;
}

.actu-columns {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-top: 12px;
}

.actu-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.actu-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.actu-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.actu-media {
    position: relative;
    height: 190px;
    flex-shrink: 0;
}
.actu-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.actu-media--collage {
    height: 190px;
}
.actu-media--collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actu-tag {
    position: absolute;
    bottom: 12px;
    inset-inline-start: 12px;
    background: var(--navy-950);
    color: var(--lime-500);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 6px 12px;
    border-radius: 999px;
}

.actu-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    min-height: 72px;
}
.actu-card-foot h3 {
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actu-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}
.actu-arrow svg {
    width: 15px;
    height: 15px;
}
.actu-arrow--accent {
    background: var(--lime-500);
    color: var(--navy-950);
}

.actu-card:hover .actu-arrow {
    transform: translateY(2px);
}

/* Expandable description — collapsed by default, opens on hover, for EVERY card */
.actu-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: var(--bg-soft-2);
    padding-inline: 20px;
    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        padding-block 0.3s ease;
}
.actu-desc p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--navy-900);
    text-align: center;
    font-weight: 500;
    line-height: 1.7;
}

.actu-card:hover .actu-desc {
    max-height: 280px;
    opacity: 1;
    padding-block: 22px;
}

@media (max-width: 1024px) {
    .actu-columns {
        flex-wrap: wrap;
    }
    .actu-col {
        flex: 1 1 calc(50% - 11px);
    }
}

@media (max-width: 720px) {
    .actu-columns {
        flex-direction: column;
    }
    .actu-col {
        flex: 1 1 auto;
    }
}
/* ==========================================================================
   PRESENCE SECTION - GLOBAL
   ========================================================================== */

.presence {
    background-color: #ffffff;
    padding: 70px 0;
    font-family: sans-serif;
}

.presence-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   TOP SECTION (Text Info, Map, and Local Building Photo)
   ========================================================================== */

.presence-top {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 46% 54%; /* Balanced split layout */
    background: #f5f7fb;
    border-radius: 40px 40px 0 0;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.presence-text-box {
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.presence-text-box h2 {
    color: #143a73;
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.presence-text-box p {
    color: #50617d;
    line-height: 1.7;
    font-size: 15px;
    margin: 0 0 30px 0;
}

/* Map positioning with custom localized Pin */
.presence-map {
    position: relative;
    width: 310px;
    align-self: flex-start;
    margin-top: auto;
        margin: 10px auto 0; /* centers horizontally */

}

.presence-map img {
    width: 130%;
    display: block;
}

.presence-pin {
    position: absolute;
    top: 31%;
    left: 48%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.presence-dot {
    width: 10px;
    height: 10px;
    background: #163d7a;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(22, 61, 122, 0.15);
}

.presence-city {
    margin-top: 6px;
    font-size: 9px;
    font-weight: 800;
    color: #163d7a;
    letter-spacing: 0.5px;
}

/* Office building photo wrapper */
.presence-building img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   BOTTOM SECTION (Robot Banner Image & Right-Aligned Floating Blue Card)
   ========================================================================== */

.presence-banner {
    margin-top: -2%;
    position: relative;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    display: flex;
    align-items: center; /* Keeps the card centered top-to-bottom on desktop images */
}

.presence-banner img {
    width: 100%;
    display: block;
}
.presence-card {
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 32%;
    max-width: 430px;
    padding: 40px 48px;
    text-align: center;
    z-index: 2;
}

.presence-card h3 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0;
    letter-spacing: 0.5px;
}

.presence-card .presence-line {
    width: 70px;
    height: 2px;
    background: #ffffff;
    margin: 20px auto;
    display: block;
}

.presence-card p {
    color: #d2e320; /* Highly legible high-vis neon green text */
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (Mobile and Tablet Adaptive Layer)
   ========================================================================== */

@media (max-width: 991px) {
    .presence-top {
        grid-template-columns: 1fr; /* Stack layout on tablets */
    }

    .presence-text-box {
        padding: 40px 30px;
    }

    .presence-map {
        margin: 30px auto 10px auto;
        align-self: center;
    }

    .presence-building {
        height: 320px;
    }

    .presence-banner {
        overflow: visible;
        display: flex;
        flex-direction: column;
    }

    /* Pulls down card into layout stack on mobiles without squishing typography */
    .presence-card {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 90%;
        max-width: 420px;
        height: auto;
        border-radius: 40px 20px 20px 20px;
        margin: -60px auto 20px auto;
        padding: 40px 25px;
    }

    .presence-card h3 {
        font-size: 24px;
    }
}
/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
    margin-top: -170px;
    margin-bottom: -170px;
}
.contact-cta {
    background: var(--navy-950);
    padding-bottom: 90px;
    margin-top: -1px;
}
.contact-cta-inner {
    background: var(--navy-800);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.contact-cta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}
.contact-cta-text {
    padding: 44px 48px;
    align-self: center;
}
.contact-cta-text h2 {
    color: var(--white);
    font-size: 1.5rem;
}
.contact-cta-text p {
    color: rgba(255, 255, 255, 0.75);
}

/* -- Form panel: sidebar + form -- */
.contact-form-panel {
    padding-block: 90px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    align-items: stretch;
}

.contact-form-side {
    color: #0f2854;

    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.contact-form-side-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f2854;
    margin-bottom: 22px;
}
.contact-form-side-title {
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--white);
    margin: 0 0 18px;
}
.contact-form-side-divider {
    display: block;
    width: 36px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin-bottom: 18px;
}
.contact-form-side-text {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.contact-form-main {
    background: var(--white);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 44px 48px;
}

.form-alert {
    padding: 16px 22px;
    border-radius: var(--radius-sm);
    margin-bottom: 26px;
    font-size: 0.92rem;
    font-weight: 500;
}
.form-alert--success {
    background: #eaf7d4;
    color: #3c5b0a;
    border: 1px solid #d4ec8f;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.form-row {
    display: grid;
    gap: 20px;
}
.form-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy-900);
}

/* icon-prefixed inputs */
.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon svg {
    position: absolute;
    left: 14px;
    width: 17px;
    height: 17px;
    color: var(--teal-700);
    pointer-events: none;
}
.input-icon--textarea svg {
    top: 14px;
    left: 14px;
}
.input-icon input,
.input-icon textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 16px 13px 42px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--bg-soft);
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
    resize: vertical;
}
.input-icon input:focus,
.input-icon textarea:focus {
    outline: none;
    border-color: var(--teal-700);
    background: var(--white);
}
.input-icon input::placeholder,
.input-icon textarea::placeholder {
    color: #9aa5b1;
}

.form-field--message {
    position: relative;
}

.form-error {
    font-size: 0.78rem;
    color: #c0392b;
}

/* pill accent button, bottom-right of message field */
.btn-pill {
    border-radius: 999px;
    padding: 14px 30px;
    align-self: flex-end;
    margin-top: 16px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* -- responsive -- */
@media (max-width: 900px) {
    .contact-form-panel {
        grid-template-columns: 1fr;
    }
    .contact-form-side {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .contact-form-main {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    .form-row--3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.8);
    padding-block: 40px;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-bottom: 24px;
}

/* Logos */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-right: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-brand img {
    height: 100px;
    width: auto;
    display: block;
}
.footer-brand img.logo-davinci {
    height: 100px;
}

/* Nav columns */
.footer-nav-group {
    display: flex;
    gap: 40px;
    padding-inline: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.footer-nav a:hover {
    color: var(--lime-500);
}
.footer-nav .footer-lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 28px;
    margin-left: auto;
}
.footer-contact-title {
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.footer-contact p,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
}
.footer-contact a:hover {
    color: var(--lime-500);
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.footer-social a:hover {
    background: var(--lime-500);
}
.footer-social img {
    width: 16px;
    height: 16px;
}

/* Bottom bar (optional, keep if you still want a copyright line) */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
    .footer-top {
        flex-wrap: wrap;
        row-gap: 24px;
    }
    .footer-brand,
    .footer-nav-group {
        border-right: none;
        padding-right: 0;
    }
    .footer-contact {
        margin-left: 0;
        padding-left: 0;
    }
}
/* ==========================================================================
   RTL (arabe)
   ========================================================================== */
[dir="rtl"] .main-nav a::after {
    inset-inline-start: auto;
    inset-inline-end: 0;
}
[dir="rtl"] .anniversary-badge {
    clip-path: polygon(94% 0, 100% 100%, 0 100%, 6% 0);
}
[dir="rtl"] .form-error {
    text-align: right;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner,
    .presentation-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        order: -1;
    }
    .valeurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .equipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .actu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .actu-card--feature {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }
    .presence-grid {
        grid-template-columns: 1fr 1fr;
    }
    .presence-photo {
        grid-column: span 2;
    }
    .contact-cta-inner {
        grid-template-columns: 1fr;
    }
    .contact-cta-img {
        min-height: 220px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    section {
        padding-block: 64px;
    }
    .main-nav {
        position: fixed;
        inset: 72px 16px auto 16px;
        background: var(--white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-card);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 16px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition:
            opacity 0.25s ease,
            transform 0.25s ease;
    }
    .main-nav.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .burger {
        display: flex;
    }
    .header-actions .btn-sm {
        display: none;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    .valeurs-grid {
        grid-template-columns: 1fr;
    }
    .equipe-grid {
        grid-template-columns: 1fr 1fr;
    }
    .actu-grid {
        grid-template-columns: 1fr;
    }
    .actu-card--feature {
        grid-column: span 1;
    }
    .presence-grid {
        grid-template-columns: 1fr;
    }
    .presence-photo {
        grid-column: span 1;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .anniversary-badge {
        inset-inline-start: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        width: 100%;
    }
    .hero-actions {
        flex-direction: column;
    }
    .equipe-grid {
        grid-template-columns: 1fr;
    }
}
/* Layout for the mixed row */
.form-row--mixed {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px; /* Adjust gap to match your layout's default spacing */
    align-items: end; /* Aligns button with the bottom of the textarea */
}

/* Fallback/Spacing for the submit button wrapper */
.form-field--submit {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* Make sure the submit button matches the layout styling */
.btn-submit-layout {
    width: 100%;
    padding: 14px 24px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-align: center;
}

/* Responsive adjustments for mobile viewports */
@media (max-width: 768px) {
    .form-row--mixed {
        grid-template-columns: 1fr;
    }
}
.footer-lang-toggle {
    position: relative;
}
.footer-lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}
.footer-lang-current:hover {
    color: var(--lime-500);
}
.footer-lang-current .chevron {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}
.footer-lang-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: var(--navy-950);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    min-width: 60px;
    overflow: hidden;
    z-index: 10;
}
.footer-lang-menu.is-open {
    display: flex;
}
.footer-lang-menu a {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}
.footer-lang-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--lime-500);
}
.footer-lang-menu a.is-active {
    color: var(--lime-500);
    font-weight: 700;
}