/* ══════════════════════════════════════════════════════════
   CSGI Consulting SA — Stylesheet
   Palette : bleu (#1a5276, #2980b9), blanc, gris clair
   ══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    line-height: 1.65;
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ── Utility ──────────────────────────────────── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section--gray {
    background: #f5f7fa;
}

.section-header {
    margin-bottom: 56px;
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a5276;
    margin-bottom: 14px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 680px;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    padding: 15px 34px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn--primary {
    background: #2980b9;
    color: #fff;
    box-shadow: 0 4px 16px rgba(41, 128, 185, .3);
}

.btn--primary:hover {
    background: #1a6da0;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(41, 128, 185, .4);
}

.btn--outline {
    border: 2px solid rgba(255, 255, 255, .7);
    color: #fff;
    background: transparent;
}

.btn--outline:hover {
    background: rgba(255, 255, 255, .15);
    border-color: #fff;
}

.btn--full {
    width: 100%;
}

/* ── Header ───────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow .3s;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo img {
    height: 44px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 36px;
}

.header__nav a {
    font-size: .92rem;
    font-weight: 500;
    color: #333;
    transition: color .25s;
    position: relative;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2980b9;
    transition: width .25s;
}

.header__nav a:hover {
    color: #2980b9;
}

.header__nav a:hover::after {
    width: 100%;
}

.header__burger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.header__burger span {
    width: 26px;
    height: 2.5px;
    background: #1a5276;
    border-radius: 2px;
    transition: .3s;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(155deg, #0d2f4f 0%, #1a5276 35%, #2980b9 100%);
    color: #fff;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(41, 128, 185, .25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, .06) 0%, transparent 40%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding-top: 72px;
}

.hero__tag {
    display: inline-block;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .12);
    padding: 8px 20px;
    border-radius: 24px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, .15);
}

.hero__title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -.02em;
}

.hero__text {
    font-size: 1.15rem;
    opacity: .88;
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Decorative shapes */
.hero__shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
}

.hero__shape--1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero__shape--2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: 20%;
    animation: float 15s ease-in-out infinite reverse;
}

.hero__shape--3 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 10%;
    background: rgba(255, 255, 255, .03);
    animation: float 18s ease-in-out infinite 5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* ── Pillars (Arguments clés) ────────────────── */
.pillars {
    padding: 80px 0;
    background: #fff;
    margin-top: -1px;
}

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.pillar-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8edf2;
    transition: all .3s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26, 82, 118, .1);
    border-color: #2980b9;
}

.pillar-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5fb;
    border-radius: 14px;
    color: #2980b9;
}

.pillar-card__icon svg {
    width: 28px;
    height: 28px;
}

.pillar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 10px;
    line-height: 1.35;
}

.pillar-card p {
    font-size: .9rem;
    color: #666;
    line-height: 1.6;
}

/* ── Services ─────────────────────────────────── */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px 28px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2980b9;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(26, 82, 118, .1);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5fb;
    border-radius: 12px;
    color: #2980b9;
    margin-bottom: 20px;
    transition: all .3s ease;
}

.service-card:hover .service-card__icon {
    background: #2980b9;
    color: #fff;
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 10px;
    line-height: 1.35;
}

.service-card p {
    font-size: .92rem;
    color: #555;
    line-height: 1.65;
}

/* ── Projects / Réalisations ─────────────────── */
.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid #e8edf2;
}

.project:last-child {
    border-bottom: none;
}

.project--reverse .project__content {
    order: 2;
}

.project--reverse .project__gallery {
    order: 1;
}

.project__tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2980b9;
    background: #eef5fb;
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.project__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a5276;
    margin-bottom: 8px;
}

.project__client {
    font-size: .9rem;
    color: #888;
    font-style: italic;
    margin-bottom: 16px;
}

.project__desc {
    font-size: .98rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project__highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .92rem;
    color: #333;
}

.project__highlights li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #27ae60;
    margin-top: 2px;
}

/* Project gallery */
.project__gallery-grid {
    display: grid;
    gap: 12px;
}

.project__gallery-grid--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.project__gallery-grid--3 .project__img:first-child {
    grid-column: 1 / -1;
}

.project__gallery-grid--2x2 {
    grid-template-columns: 1fr 1fr;
}

.project__img {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transition: transform .3s ease;
    width: 100%;
    object-fit: cover;
}

.project__img:hover {
    transform: scale(1.02);
}

/* Placeholder for projects without images */
.project__gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 280px;
    background: linear-gradient(135deg, #eef5fb 0%, #dce8f2 100%);
    border-radius: 16px;
    color: #2980b9;
}

.project__gallery-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: .5;
}

.project__gallery-placeholder span {
    font-size: .9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: .5;
}

/* ── Normes ───────────────────────────────────── */
.norms__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.norm-card {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    transition: all .3s ease;
}

.norm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(26, 82, 118, .1);
    border-color: #2980b9;
}

.norm-card__code {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2980b9;
    margin-bottom: 10px;
}

.norm-card p {
    font-size: .85rem;
    color: #666;
    line-height: 1.5;
}

/* ── Contact ──────────────────────────────────── */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact__detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5fb;
    border-radius: 10px;
    color: #2980b9;
}

.contact__detail-icon svg {
    width: 22px;
    height: 22px;
}

.contact__detail div {
    font-size: .95rem;
    color: #444;
    line-height: 1.6;
}

.contact__detail a {
    color: #2980b9;
    font-weight: 500;
    transition: color .2s;
}

.contact__detail a:hover {
    color: #1a5276;
}

.contact__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef5fb;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: #1a5276;
}

.contact__badge svg {
    width: 18px;
    height: 18px;
    color: #2980b9;
}

/* Form */
.contact__form-wrap {
    background: #f5f7fa;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e8edf2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: inherit;
    font-size: .95rem;
    border: 1.5px solid #d4dbe3;
    border-radius: 8px;
    background: #fff;
    color: #222;
    transition: border-color .25s, box-shadow .25s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, .12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ── Footer ───────────────────────────────────── */
.footer {
    background: #0d2f4f;
    color: rgba(255, 255, 255, .8);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo img {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(10);
}

.footer__company {
    font-size: .9rem;
    line-height: 1.7;
}

.footer h4 {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.footer ul li {
    margin-bottom: 10px;
    font-size: .88rem;
}

.footer ul a {
    transition: color .2s;
}

.footer ul a:hover {
    color: #fff;
}

.footer__bar {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .8rem;
    opacity: .6;
}

/* ── Scroll Reveal Animation ─────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
    .pillars__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project--reverse .project__content,
    .project--reverse .project__gallery {
        order: unset;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__nav--open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(12px);
        padding: 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
        gap: 16px;
        animation: slideDown .3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero {
        min-height: 85vh;
        padding: 0 0 40px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__text {
        font-size: 1rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .pillars__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pillar-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 20px 24px;
    }

    .pillar-card__icon {
        margin: 0;
        flex-shrink: 0;
    }

    .pillar-card h3 {
        margin-bottom: 4px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .project__gallery-grid--2x2,
    .project__gallery-grid--3 {
        grid-template-columns: 1fr;
    }

    .project__gallery-grid--3 .project__img:first-child {
        grid-column: auto;
    }

    .norms__grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact__form-wrap {
        padding: 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__bar {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .norms__grid {
        grid-template-columns: 1fr;
    }

    .contact__badges {
        flex-direction: column;
    }
}