/* ══ LOGIMAAX TECHNOLOGIES — expertise.css ══
   À propos & Expertise
   ══════════════════════════════════════════════════ */

:root {
    --primary-dark: #0a1929;
    --primary-blue: #1e3a5f;
    --accent-blue: #2196F3;
    --light-blue: #4FC3F7;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-light: #e0e6ed;
    --m-color: #1565C0;
    --a-color: #6a1b9a;
    --g-color: #2e7d32;
    --i-color: #e65100;
    --c-color: #880e4f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* ══ HEADER ══ */
.header {
    position: fixed; top: 0; width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}
.header-container {
    max-width: 1400px; margin: 0 auto;
    padding: 1rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
}
.badge {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    padding: 7px 12px; border-radius: 999px; font-size: 12px;
}
.nav-menu {
    display: flex; gap: 3rem; list-style: none; align-items: center;
}
.nav-menu a {
    color: var(--text-dark); text-decoration: none;
    font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active-page { color: var(--accent-blue); }
.lang-switcher {
    display: flex; gap: 0.3rem;
    margin-left: 2rem; padding-left: 2rem;
    border-left: 1px solid var(--border-light);
}
.lang-btn {
    padding: 0.4rem 0.9rem; border: 1px solid var(--border-light);
    background: transparent; cursor: pointer; font-weight: 600;
    font-size: 0.85rem; transition: all 0.3s ease; border-radius: 4px;
    color: var(--text-light);
}
.lang-btn.active { background: var(--accent-blue); color: white; border-color: var(--accent-blue); }

/* ══ HERO — vidéo ══ */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 73px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        linear-gradient(to right, rgba(5,10,20,0.65), rgba(5,10,20,0.25)),
        url("../images/img-architectue-affaires-soir.png") center center / cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
    width: 100%;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(33,150,243,.22); border: 1px solid rgba(33,150,243,.38);
    color: var(--light-blue); padding: .35rem 1rem; border-radius: 20px;
    font-size: .8rem; font-weight: 700; letter-spacing: .5px; margin-bottom: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.2rem;
    max-width: 800px;
    line-height: 1.15;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--accent-blue), var(--light-blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,.85);
    max-width: 650px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.2rem; border: none; cursor: pointer;
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    display: inline-block; border-radius: 6px; transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}
.btn-primary { background: var(--accent-blue); color: white; }
.btn-primary:hover { background: #1976D2; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: white; border: 2px solid rgba(255,255,255,.4); }
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: white; }

/* ══ STATS BAR ══ */
.stats-bar {
    background: var(--primary-dark);
    border-bottom: 2px solid var(--accent-blue);
}
.stats-container {
    max-width: 1400px; margin: 0 auto;
    padding: 2.5rem 3rem;
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    padding: 0 3rem;
}
.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem; font-weight: 700;
    color: var(--light-blue); line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-lbl { font-size: 0.85rem; color: rgba(255,255,255,.65); }
.stat-divider {
    width: 1px; height: 48px;
    background: rgba(255,255,255,.15);
    flex-shrink: 0;
}

/* ══ SECTION HEADER COMMUN ══ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-label {
    display: inline-block; font-size: .75rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: var(--accent-blue);
    margin-bottom: .8rem; font-family: 'Montserrat', sans-serif;
}
.section-header h2 {
    font-size: 2.4rem; color: var(--primary-dark); margin-bottom: .8rem;
}
.section-header p {
    font-size: 1.05rem; color: var(--text-light);
    max-width: 660px; margin: 0 auto;
}

/* ══ CONVICTION ══ */
.conviction-section {
    padding: 7rem 3rem;
    background: var(--bg-white);
}
.conviction-inner {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: start;
}
.conviction-text .section-label { display: inline-block; margin-bottom: .8rem; }
.conviction-text h2 {
    font-size: 2.2rem; color: var(--primary-dark);
    margin-bottom: 1.5rem; line-height: 1.3;
}
.conviction-text p {
    font-size: 1.0rem; color: var(--text-light);
    line-height: 1.9; margin-bottom: 1rem;
}
.conviction-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.conv-card {
    background: var(--bg-light); border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 1.6rem; transition: all .3s;
}
.conv-card:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-color: var(--accent-blue);
}
.conv-icon { font-size: 1.6rem; margin-bottom: .7rem; }
.conv-title {
    font-family: 'Montserrat', sans-serif; font-size: .95rem;
    font-weight: 700; color: var(--primary-dark); margin-bottom: .4rem;
}
.conv-desc { font-size: .84rem; color: var(--text-light); line-height: 1.6; }

/* ══ EXPERTISE DOMAINS ══ */
.expertise-section {
    padding: 7rem 3rem;
    background: var(--bg-light);
}
.expertise-inner { max-width: 1400px; margin: 0 auto; }
.expertise-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.exp-card {
    background: white; border-radius: 14px;
    border: 1px solid var(--border-light);
    padding: 2rem 1.8rem; transition: all .3s;
}
.exp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(33,150,243,.10);
    border-color: var(--accent-blue);
}
.exp-icon { font-size: 2rem; margin-bottom: 1rem; }
.exp-card h3 {
    font-size: 1.15rem; color: var(--primary-dark);
    margin-bottom: .7rem;
}
.exp-card p {
    font-size: .9rem; color: var(--text-light);
    line-height: 1.75; margin-bottom: 1rem;
}
.exp-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.exp-tag {
    padding: .22rem .65rem; border-radius: 4px;
    background: var(--bg-light); border: 1px solid var(--border-light);
    font-size: .75rem; color: var(--text-light);
    font-family: 'Montserrat', sans-serif; font-weight: 600;
}

/* ══ MAGIC ══ */
.magic-section {
    padding: 7rem 3rem;
    background: var(--primary-dark);
}
.magic-inner { max-width: 1400px; margin: 0 auto; }
.magic-section .section-header h2 { color: white; }
.magic-section .section-header p { color: rgba(255,255,255,.70); }
.magic-section .section-label { color: var(--light-blue); }

.magic-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem; margin-top: 3.5rem;
}
.magic-card {
    border-radius: 14px; padding: 1.8rem 1.4rem;
    border: 1.5px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    transition: all .3s; position: relative; overflow: hidden;
}
.magic-card:hover {
    background: rgba(255,255,255,.10);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.magic-letter {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem; font-weight: 700;
    color: white; margin-bottom: .6rem; line-height: 1;
}
.mc-m .magic-letter { color: #4FC3F7; }
.mc-a .magic-letter { color: #ce93d8; }
.mc-g .magic-letter { color: #a5d6a7; }
.mc-i .magic-letter { color: #ffb74d; }
.mc-c .magic-letter { color: #f48fb1; }

.magic-name {
    font-family: 'Montserrat', sans-serif; font-size: 1rem;
    font-weight: 700; color: white; margin-bottom: .3rem;
}
.magic-sub {
    font-size: .76rem; color: rgba(255,255,255,.55);
    text-transform: uppercase; letter-spacing: .5px;
    font-weight: 600; font-family: 'Montserrat', sans-serif;
    margin-bottom: .9rem;
}
.magic-desc {
    font-size: .82rem; color: rgba(255,255,255,.70); line-height: 1.65;
}
.magic-cta {
    text-align: center; margin-top: 3rem;
}
.btn-magic {
    display: inline-block;
    padding: .9rem 2rem; background: var(--accent-blue); color: white;
    border-radius: 6px; font-weight: 700; font-size: .95rem;
    text-decoration: none; font-family: 'Montserrat', sans-serif;
    transition: all .3s;
}
.btn-magic:hover { background: #1976D2; transform: translateY(-2px); }

/* ══ APPROCHE 5 ÉTAPES ══ */
.approche-section {
    padding: 7rem 3rem;
    background: var(--bg-white);
}
.approche-inner { max-width: 1400px; margin: 0 auto; }

.steps-timeline {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 0; position: relative; margin-top: 3.5rem;
}
.steps-timeline::before {
    content: '';
    position: absolute; top: 35px; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--light-blue));
    z-index: 0;
}
.step-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 0 .8rem; position: relative; z-index: 1;
}
.step-num-wrap { margin-bottom: 1.2rem; }
.step-circle {
    width: 70px; height: 70px; border-radius: 50%;
    background: white; border: 3px solid var(--accent-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(33,150,243,.18);
    position: relative; transition: all .3s;
}
.step-item:hover .step-circle {
    background: var(--accent-blue);
    filter: brightness(0) invert(1);
}
.step-badge {
    position: absolute; top: -8px; right: -8px;
    background: var(--accent-blue); color: white;
    width: 22px; height: 22px; border-radius: 50%;
    font-size: .72rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif;
}
.step-title {
    font-family: 'Montserrat', sans-serif; font-size: .95rem;
    font-weight: 700; color: var(--primary-dark); margin-bottom: .5rem;
}
.step-desc { font-size: .83rem; color: var(--text-light); line-height: 1.6; }

/* ══ CADRES DE RÉFÉRENCE ══ */
.cadres-section {
    padding: 6rem 3rem;
    background: var(--bg-light);
}
.cadres-inner { max-width: 1400px; margin: 0 auto; }
.cadres-grid {
    display: flex; flex-wrap: wrap; gap: .6rem;
    justify-content: center; margin-top: 2.5rem;
}
.cadre-badge-item {
    padding: .45rem 1.1rem; border-radius: 6px;
    font-size: .88rem; font-weight: 700;
    font-family: 'Montserrat', sans-serif; border: 2px solid;
    transition: transform .2s;
}
.cadre-badge-item:hover { transform: translateY(-2px); }
.cb-blue   { color: #1565C0; border-color: #90caf9; background: #e3f2fd; }
.cb-purple { color: #6a1b9a; border-color: #ce93d8; background: #f3e5f5; }
.cb-green  { color: #2e7d32; border-color: #a5d6a7; background: #e8f5e9; }
.cb-orange { color: #e65100; border-color: #ffb74d; background: #fff3e0; }
.cb-crimson{ color: #880e4f; border-color: #f48fb1; background: #fce4ec; }

/* ══ CTA ══ */
.cta-section {
    padding: 6rem 3rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    text-align: center;
}
.cta-inner { max-width: 800px; margin: 0 auto; }
.cta-inner h2 { font-size: 2.2rem; color: white; margin-bottom: 1rem; }
.cta-inner p {
    font-size: 1.05rem; color: rgba(255,255,255,.80);
    margin-bottom: 2.5rem; line-height: 1.85;
}
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-cta-main {
    background: var(--accent-blue); color: white;
    padding: 1rem 2.5rem; border-radius: 6px; font-weight: 700;
    font-size: 1rem; text-decoration: none; transition: all .3s;
    display: inline-block; font-family: 'Montserrat', sans-serif;
}
.btn-cta-main:hover { background: #1976D2; transform: translateY(-2px); }
.btn-cta-sec {
    background: transparent; color: var(--light-blue);
    padding: 1rem 2.5rem; border-radius: 6px; font-weight: 700;
    font-size: 1rem; text-decoration: none; transition: all .3s;
    display: inline-block; font-family: 'Montserrat', sans-serif;
    border: 2px solid rgba(79,195,247,.5);
}
.btn-cta-sec:hover { background: rgba(79,195,247,.08); }

/* ══ FOOTER ══ */
.footer {
    background: var(--primary-dark); color: white; padding: 5rem 3rem 2rem;
    background:
        linear-gradient(rgba(10,25,41,0.92), rgba(10,25,41,0.95)),
        url("../images/footer_img.png");
    background-position: center, bottom center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
}
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-main {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem; margin-bottom: 3rem; padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { display: block; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,.7); line-height: 1.8; font-size: .9rem; }
.footer-section h4 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .8rem; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--accent-blue); }
.footer-bottom {
    display: flex; align-items: center; padding-top: 2rem;
    color: rgba(255,255,255,.5); font-size: .85rem;
}
.newsletter-form { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter-input {
    flex: 1; padding: .9rem 1.2rem;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05); border-radius: 6px; color: white;
}
.newsletter-btn {
    padding: .9rem 1.5rem; background: var(--accent-blue);
    border: none; border-radius: 6px; color: white; font-weight: 600; cursor: pointer;
}
.nl-confirm { color: var(--light-blue); font-size: .85rem; margin: .5rem 0 0; }

/* ══ BANNIÈRE COOKIES ══ */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--primary-dark);
    border-top: 2px solid var(--accent-blue);
    padding: 1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    visibility: hidden;
}
#cookie-banner.visible { transform: translateY(0); visibility: visible; }
.cookie-text {
    flex: 1; font-family: 'Open Sans', sans-serif;
    font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.55;
}
.cookie-text a { color: var(--light-blue); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
#cookie-accept, #cookie-refuse {
    font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 600;
    padding: .5rem 1.1rem; border-radius: 4px; border: none; cursor: pointer; transition: opacity .2s;
}
#cookie-accept { background: var(--accent-blue); color: #fff; }
#cookie-refuse { background: transparent; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.2); }
#cookie-accept:hover { opacity: .85; }
#cookie-refuse:hover { opacity: .75; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
    .magic-grid { grid-template-columns: repeat(3, 1fr); }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .hero h1 { font-size: 2.4rem; }
    .conviction-inner { grid-template-columns: 1fr; gap: 3rem; }
    .conviction-cards { grid-template-columns: 1fr 1fr; }
    .steps-timeline { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .steps-timeline::before { display: none; }
    .magic-grid { grid-template-columns: 1fr 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .stats-container { gap: 2rem; }
    .stat-divider { display: none; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .expertise-grid { grid-template-columns: 1fr; }
    .steps-timeline { grid-template-columns: 1fr; }
    .magic-grid { grid-template-columns: 1fr; }
    .conviction-cards { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    #cookie-banner { flex-direction: column; align-items: flex-start; }
}

/* ══ LANGUE HELPERS — toujours en dernière position ══════════════════════════
   Principe : position finale → prime sur tous les display de composant
   ══════════════════════════════════════════════════════════════════════════ */
.lang-content        { display: none; }
.lang-content.active { display: block; }
.lang-inline         { display: none; }
.lang-inline.active  { display: inline; }

/* Surcharges display pour éléments actifs dont le display n'est pas block */
.btn-cta-main.lang-content.active  { display: inline-block; }
.btn-cta-sec.lang-content.active   { display: inline-block; }
.btn-magic.lang-content.active     { display: inline-block; }
.hero-eyebrow.lang-content.active  { display: inline-block; }
