* {
    box-sizing: border-box;
}

:root {
    --blue-900: #02133f;
    --blue-800: #052c78;
    --blue-700: #0b4ea6;
    --blue-600: #1e69c4;
    --ink: #1f2d45;
    --muted: #5f6d80;
    --surface: #ffffff;
    --soft: #f1f3f7;
    --line: #d5deea;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background: #edf1f7;
    scroll-behavior: smooth;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.main-nav {
    background: linear-gradient(90deg, #031645, #05337d 58%, #083c8d);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.95rem 0;
}

.nav-main-links {
    justify-content: flex-end;
}

.brand-mark {
    margin-right: auto;
    color: #eef4ff;
    font-weight: 700;
    letter-spacing: 0.24em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-main-links a {
    text-decoration: none;
    color: #eef4ff;
    font-weight: 700;
    font-size: 1.04rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
}

.nav-main-links a:hover {
    border-bottom-color: #c8dcff;
}

#accueil,
#qui-sommes-nous,
#qualite,
#telecharger,
#contact {
    scroll-margin-top: 76px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: url('imgs/background.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 18, 62, 0.7);
}

.hero-grid {
    position: relative;
    min-height: 540px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-ar {
    margin: 0.55rem 0 1rem;
    font-size: 1.05rem;
}

.hero-copy p {
    margin: 0;
    max-width: 640px;
    line-height: 1.75;
    font-weight: 700;
}

.hero-btn {
    display: inline-block;
    margin-top: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-btn-dark {
    color: #0a2f71;
    border-color: #0a2f71;
    background: transparent;
}

.hero-btn-dark:hover {
    background: rgba(10, 47, 113, 0.08);
}

.hero-visual {
    display: grid;
    justify-items: center;
}

.hero-photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    display: block;
}

.main-content {
    display: grid;
    gap: 0;
}

.about-band {
    padding: 4rem 0 4.2rem;
    background: #f3f3f3;
}

.contact-anchor-band {
    padding-top: 3rem;
}

.contact-anchor-wrap {
    max-width: 760px;
}

.section-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.section-title::after {
    content: "";
    display: block;
    margin: 0.9rem auto 0;
    width: 190px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0 15%, #0b58b3 15% 85%, transparent 85%);
}

.section-title-light {
    color: #fff;
}

.section-title-light::after {
    background: linear-gradient(90deg, transparent 0 15%, #e8f1ff 15% 85%, transparent 85%);
}

.section-intro {
    margin: 1rem auto 0;
    max-width: 760px;
    text-align: center;
    line-height: 1.7;
}

.about-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.about-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 1.2rem;
    text-align: center;
}

.about-card h3 {
    margin-top: 0.2rem;
    margin-bottom: 0.8rem;
    font-size: 1.55rem;
    color: #13376c;
}

.about-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.quality-band,
.downloads-band {
    padding: 4rem 0;
    background: linear-gradient(120deg, #011f63, #0a4fa9 68%, #1166c0);
    color: #fff;
    position: relative;

}

.downloads-band {
    padding: 4rem 0;
    background: url('imgs/back_2.jpeg') center/cover no-repeat;
    color: #fff;
}

.downloads-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(1, 31, 99, 0.75);
    z-index: 0;
}

.downloads-band > .container {
    position: relative;
    z-index: 1;
}

.quality-layout {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 320px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.quality-col {
    display: grid;
    gap: 1rem;
}

.quality-item {
    background: rgba(8, 47, 110, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.quality-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.9rem;
}

.quality-item p {
    margin: 0;
    line-height: 1.5;
}

.quality-visual {
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.quality-visual img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: contain;
}

.downloads-intro {
    text-align: center;
    max-width: 820px;
    margin: 1.2rem auto 1.8rem;
    line-height: 1.6;
}

.price-line {
    color: #8eff9f;
    font-weight: 700;
}

.warning-line {
    color: #ff6f6f;
    font-weight: 700;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-head h3 {
    margin: 0;
}

.section-head-light {
    color: #fff;
}

.empty-light {
    color: #e3eeff;
}

.file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.download-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.download-list li {
    background: #e9eaec;
    border: 1px solid #d0d4da;
    border-radius: 8px;
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    overflow: hidden;
    min-width: 0;
}

.software-card-media {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 6px;
    background: linear-gradient(140deg, #fbfbfc, #dfe5f0);
    border: 1px solid #ccd5e4;
    position: relative;
    overflow: hidden;
}

.software-card-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    border: 2px solid #1f2530;
    background: linear-gradient(135deg, #8ea6c8, #dae3ef);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.software-card-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.software-preview-icon {
    width: 100%;
    height: 420px;
    border-radius: 24px;
    box-shadow: 0 18px 26px rgba(0, 0, 0, 0.28);
    object-fit: contain;
    display: relative;
}

.software-card-body {
    text-align: center;
    width: 100%;
    min-width: 0;
}

.software-card-body h3 {
    margin: 0.1rem 0 0.25rem;
    font-size: clamp(0.78rem, 1.4vw, 0.95rem);
    color: #131722;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.software-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.software-card-body p {
    margin: 0;
    color: #5f6a7d;
    line-height: 1.35;
    font-size: 0.72rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.software-card-meta {
    margin-top: 0.55rem;
    display: grid;
    justify-items: center;
    gap: 0.35rem;
}

.software-card-meta small {
    color: #4f5a70;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.software-card-actions {
    margin-top: auto;
    padding-top: 0.4rem;
    justify-content: center;
}

.software-card-btn {
    background: linear-gradient(90deg, #7a2df4, #4d15d0);
    padding: 0.4rem 1.1rem;
    border-radius: 8px;
    font-size: 0.78rem;
}

.software-card-btn:hover {
    background: linear-gradient(90deg, #6920df, #3e0fb6);
}

.download-btn,
button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #042866, #1668c1);
    color: #fff;
    padding: 0.45rem 0.95rem;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}

.software-ghost:hover {
    background: linear-gradient(90deg, #ffffff);
}

.software-cta:hover {
    background: linear-gradient(90deg,  #271ddc, #3e0fb6);
}

.badge {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    background: #dceaff;
    color: #13458a;
    font-size: 0.75rem;
}

.license-cta {
    text-align: center;
    margin: 1.5rem 0 0;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.2rem;
}

.upload-form {
    display: grid;
    gap: 0.6rem;
    background: #f3f7fd;
    border: 1px solid #d5deea;
    color: black;
    padding: 0.9rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.upload-form label {
    display: grid;
    gap: 0.35rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #b9c9df;
    border-radius: 8px;
    padding: 0.55rem;
    font: inherit;
}

.contact-page {
    padding: 2rem 0 3rem;
}

.contact-panel {
    background: #f3f3f3;
}

.license-form {
    margin-top: 1.3rem;
    display: grid;
    gap: 0.8rem;
}

.form-grid {
    display: grid;
    gap: 0.8rem;
}

.form-grid.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid label,
.license-form > label {
    color: #5d697d;
    font-size: 0.95rem;
}

.contact-side {
    margin-top: 1.2rem;
    color: #48576d;
}

.software-page {
    padding: 2rem 0 3rem;
    display: grid;
    gap: 1rem;
}

.software-showcase {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.5rem;
    align-items: center;
    background: #efefef;
}

.software-showcase-copy {
    padding: 0.4rem 0.2rem;
}

.software-kicker {
    margin: 0 0 0.9rem;
    font-weight: 700;
    color: #151f2d;
    position: relative;
    padding-left: 0.9rem;
}

.software-kicker::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1rem;
    bottom: 0.1rem;
    width: 2px;
    background: #ff335a;
}

.software-showcase-copy h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;
    overflow-wrap: break-word;
    word-break: break-word;
}

.software-lead {
    margin: 1rem 0;
    color: #536178;
    line-height: 1.6;
    font-size: 1.25rem;
}

.software-meta-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: #24344f;
    margin-bottom: 1rem;
}

.software-preview-screen {
    width: min(680px, 100%);
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    background: #121925;
    box-shadow: 0 18px 26px rgba(0, 0, 0, 0.28);
    padding: 0.65rem;
    border: 4px solid #242c39;
}

.software-preview-topbar {
    height: 12%;
    border-radius: 10px;
    background: linear-gradient(90deg, #dbdee3, #f0f1f4);
    margin-bottom: 0.55rem;
}

.software-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    height: calc(88% - 0.55rem);
}

.software-preview-grid span {
    border-radius: 8px;
    background: linear-gradient(135deg, #d6dde8, #becde2);
}

.software-hero-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.software-cta {
    background: linear-gradient(90deg, #0b46a3, #196ed0);
}

.software-ghost {
    background: transparent;
    color: #0a3f91;
    border: 1px solid #0a3f91;
}

.software-content-card h2,
.software-form-card h2 {
    margin-top: 0;
}

.software-content-card h3 {
    margin-bottom: 0.4rem;
}

.software-rich-text {
    line-height: 1.65;
    color: #2d3f59;
}

.software-customize-card h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.customize-field {
    border-bottom: 1px solid #e8ecf2;
    padding: 0.7rem 0;
}

.customize-field:last-of-type {
    border-bottom: none;
}

.customize-field-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #3d4d66;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.customize-field .editable-content {
    margin-top: 0.3rem;
    color: #1f2d45;
    line-height: 1.55;
    min-height: 1.4em;
}

.customize-field .empty-field {
    color: #a0aab8;
}

.field-placeholder {
    font-style: italic;
    color: #a0aab8;
}

.youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-top: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.software-preview {
    display: grid;
    justify-items: center;
}

.preview-image-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.preview-upload-btn {
    color:white;
    cursor: pointer;
}

/* ── Screenshots section ── */
.screenshots-section {
    background: #fff;
}

.screenshots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.screenshots-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.screenshots-nav {
    display: flex;
    gap: 0.35rem;
}

.ss-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #ccd3de;
    background: #f5f7fa;
    color: #1a2a42;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s, border-color 0.15s;
}

.ss-nav-btn:hover {
    background: #e8ecf2;
    border-color: #a8b4c4;
}

.screenshots-track-wrap {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.screenshots-track {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.4s ease;
}

.screenshot-card {
    flex: 0 0 calc(50% - 0.375rem);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dde2ea;
    background: #f8f9fb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.screenshot-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-delete-form {
    position: absolute;
    top: 6px;
    right: 6px;
}

.gallery-delete-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(180, 30, 30, 0.85);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.gallery-delete-btn:hover {
    background: #a42c2c;
}

.gallery-upload-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-upload-form label {
    font-weight: 600;
    font-size: 0.85rem;
}

.gallery-upload-form button {
    background: #0b46a3;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.9rem;
    font: inherit;
    cursor: pointer;
    font-size: 0.85rem;
}

.gallery-upload-form button:hover {
    background: #093a87;
}

.software-buy-form {
    display: grid;
    gap: 0.7rem;
}

.site-footer {
    background: #eef0f3;
    color: #243047;
    padding-top: 1.2rem;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.footer-info-card {
    background: #f5f6f8;
    border: 1px solid #dde2ea;
    border-radius: 8px;
    padding: 1.25rem;
}

.footer-info-card h3 {
    margin: 0 0 0.8rem;
    font-size: 2rem;
}

.footer-info-card p {
    margin: 0.45rem 0;
    color: #5b6679;
    line-height: 1.45;
}

.footer-info-card p strong {
    color: #161f2d;
}

.footer-meta {
    background: #1f2733;
    color: #fff;
    padding: 1rem 0;
}

.footer-meta-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-meta-inner p {
    margin: 0;
    font-weight: 700;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.footer-social span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #2d5ba8;
    font-weight: 700;
}

.footer-bottom-text {
    padding: 0.7rem 0 1rem;
}

.footer-bottom-text p {
    margin: 0;
    text-align: center;
    color: #33445f;
}

.rich-content img,
.rich-content iframe,
.rich-content video {
    max-width: 100%;
}

.hidden {
    display: none;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.login-card,
.settings-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 1.2rem;
}

.login-card {
    width: min(420px, 100%);
}

.settings-page {
    width: min(900px, calc(100% - 2rem));
    margin: 5.5rem auto 2rem;
    display: grid;
    gap: 1rem;
}

.ok-box,
.error-box {
    border-radius: 8px;
    padding: 0.65rem;
}

.ok-box {
    background: #e9f7ef;
    color: #1b6f3f;
}

.error-box {
    background: #fdecec;
    color: #9d2a2a;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 3.8rem 0;
        min-height: 0;
    }

    .quality-layout {
        grid-template-columns: 1fr;
    }

    .download-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .form-grid.three-cols {
        grid-template-columns: 1fr;
    }

    .software-showcase {
        grid-template-columns: 1fr;
    }

    .footer-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-main-links {
        justify-content: center;
        gap: 0.8rem 1rem;
    }

    .brand-mark {
        width: 100%;
        text-align: center;
        margin-right: 0;
        font-size: 0.84rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .download-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
