
/*
 * D0CR1PT — Design system
 * Fichier : docript-theme.css
 *
 * Thème clair par défaut.
 * Thème sombre : data-theme="dark"
 */

/* =========================================================
   1. POLICES ET VARIABLES
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Manrope:wght@700&display=swap');

:root {
    color-scheme: light;

    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #fafafa;
    --border: #eeeeee;
    --accent: #000000;
    --text: #000000;
    --text-muted: #888888;
    --text-soft: #666666;
    --maintenance: #ff9800;
    --success: #28a745;

    --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.10);
    --shadow-card: 0 15px 30px rgba(0, 0, 0, 0.05);
    --nav-background: rgba(255, 255, 255, 0.90);
    --backdrop-blur: 10px;

    --content-width: 1200px;
    --download-width: 1000px;
    --radius: 3px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s ease;
}

:root[data-theme="dark"],
[data-theme="dark"] {
    color-scheme: dark;

    --bg: #101010;
    --surface: #181818;
    --surface-alt: #141414;
    --border: #303030;
    --accent: #f5f5f5;
    --text: #f5f5f5;
    --text-muted: #a0a0a0;
    --text-soft: #c0c0c0;
    --nav-background: rgba(16, 16, 16, 0.90);
    --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.30);
    --shadow-card: 0 15px 30px rgba(0, 0, 0, 0.22);
}

/* =========================================================
   2. RESET ET BASE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    transition:
        background-color var(--transition-normal),
        color var(--transition-normal);
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

/* =========================================================
   3. NAVIGATION COMMUNE
   Hauteur identique sur toutes les pages : 60px
   ========================================================= */

nav {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--nav-background);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-bottom: 1px solid var(--border);
    transition:
        top var(--transition-normal),
        background-color var(--transition-normal);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    min-height: 60px;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-logo {
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent);
}

.lang-btn,
.theme-toggle {
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   4. BANDEAU DE MAINTENANCE
   ========================================================= */

.maintenance-banner {
    position: fixed;
    z-index: 2000;
    top: 0;
    width: 100%;
    padding: 12px 20px;
    background: var(--maintenance);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

body.maintenance-active nav {
    top: 41px;
}

body.maintenance-active .hero {
    padding-top: 121px;
}

/* =========================================================
   5. TITRES ET SECTION HERO
   ========================================================= */

.hero {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.hero-subtitle {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-description {
    margin-bottom: 40px;
    color: var(--text);
    font-size: 24px;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s ease forwards;
}

.logo-container {
    display: flex;
    height: 150px;
    align-items: center;
    overflow: hidden;
}

.logoDoc {
    width: 100%;
    max-width: 650px;
    height: auto;
    margin-bottom: 10px;
    filter: grayscale(1);
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s ease forwards;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================================
   6. BOUTONS
   ========================================================= */

.hero-cta {
    padding: 15px 40px;
    border: 0;
    background: #191919;
    color: #ffffff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s ease forwards;
    transition: var(--transition-normal);
}

.hero-cta:hover {
    background: #000000;
    letter-spacing: 3px;
    box-shadow: var(--shadow-soft);
}

.btn-dl {
    display: inline-block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.btn-dl:hover {
    background: var(--accent);
    color: var(--bg);
}

button:disabled,
.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* =========================================================
   7. SECTIONS ET GRILLES
   ========================================================= */

.about-section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.download-section {
    padding: 80px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    text-align: center;
}

.section-alt {
    background: var(--surface-alt);
}

.about-grid,
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 40px auto 0;
}

.download-grid {
    max-width: var(--download-width);
    gap: 1px;
    border: 1px solid var(--border);
    background: var(--border);
}

/* =========================================================
   8. CARTES
   ========================================================= */

.about-card {
    position: relative;
    top: 0;
    padding: 40px 30px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: left;
    transition:
        border-color var(--transition-smooth),
        top var(--transition-smooth),
        box-shadow var(--transition-smooth),
        background-color var(--transition-normal);
}

.about-card:hover {
    top: -10px;
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
}

.about-card i {
    display: block;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 24px;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-card p {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: var(--surface);
    transition: background-color var(--transition-normal);
}

.download-card:hover {
    background: var(--surface-alt);
}

.download-card h4 {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.download-card p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 11px;
}

/* =========================================================
   9. CODE ET COPIE
   ========================================================= */

code {
    position: relative;
    display: block;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: var(--radius);
    background: var(--surface-alt);
    color: var(--text-soft);
    font-family: monospace;
    font-size: 10px;
}

.copy-icon {
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.copy-icon:hover {
    color: var(--accent);
}

/* =========================================================
   10. CONTACT ET PIED DE PAGE
   ========================================================= */

.contact-line {
    padding: 25px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
}

.contact-line p {
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-line a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

footer {
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

footer > div {
    margin-bottom: 20px;
}

/* =========================================================
   11. ANIMATIONS ET APPARITION AU SCROLL
   ========================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   12. SÉPARATEURS
   ========================================================= */

hr,
.separator {
    width: 90%;
    margin: 0 auto;
    border: 0;
    border-top: 1px solid var(--border);
}

/* =========================================================
   13. RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .download-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    body.maintenance-active nav {
        top: 58px;
    }

    .hero-description {
        font-size: 20px;
    }

    .about-section,
    .download-section {
        padding: 60px 20px;
    }
}

/* =========================================================
   14. D0CR1PT STUDIO
   ========================================================= */

.studio-page {
    min-height: 100vh;
    --studio-accent: #0078d4;
    --studio-hero-glow: rgba(0, 120, 212, 0.035);
}

:root[data-theme="dark"] .studio-page,
[data-theme="dark"] .studio-page {
    --studio-hero-glow: rgba(0, 120, 212, 0.10);
}

.studio-shell {
    min-height: 95vh;
}

.studio-page .nav-content {
    height: 60px;
    min-height: 60px;
    padding-top: 0;
    padding-bottom: 0;
}

.studio-page .nav-logo {
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.studio-page .nav-logo span {
    color: var(--studio-accent);
}

.studio-page .nav-right {
    gap: 15px;
}

.studio-page .lang-btn {
    color: var(--text);
    font-size: 14px;
}

.studio-page .nav-link {
    font-size: 10px;
    transition: color var(--transition-fast);
}

.studio-hero {
    display: flex;
    min-height: 50vh;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: radial-gradient(
        circle at center,
        var(--studio-hero-glow),
        var(--bg) 70%
    );
    text-align: center;
}

.studio-hero-content {
    width: 100%;
    max-width: 1000px;
}

.studio-logo-container {
    display: flex;
    height: 300px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.studio-logo {
    display: block;
    width: 600px;
    max-width: 90%;
    height: auto;
    margin: 0 auto;
    filter: none;
    opacity: 1;
    animation: none;
}

.studio-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.studio-subtitle {
    margin: 10px 20px 20px;
    color: var(--text-soft);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: normal;
    text-transform: none;
    opacity: 1;
    animation: none;
}

.studio-tools {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 120px;
}

.studio-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.studio-tool-card {
    display: block;
    padding: 35px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-align: left;
    text-decoration: none;
    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        transform var(--transition-normal),
        background-color var(--transition-normal);
}

.studio-tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--studio-accent);
    box-shadow: var(--shadow-card);
}

.studio-tool-icon {
    display: block;
    margin-bottom: 20px;
    color: var(--studio-accent);
    font-size: 28px;
}

.studio-tool-card h2 {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.studio-tool-card p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
}

.studio-page .animate {
    opacity: 0;
    animation: studioFadeUp 0.8s ease forwards;
}

.studio-page .delay-1 {
    animation-delay: 0.1s;
}

.studio-page .delay-2 {
    animation-delay: 0.2s;
}

.studio-page .delay-3 {
    animation-delay: 0.3s;
}

@keyframes studioFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.studio-page .lang-btn:focus-visible,
.studio-page .nav-link:focus-visible,
.studio-tool-card:focus-visible {
    outline: 2px solid var(--studio-accent);
    outline-offset: 4px;
}

.studio-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

/* =========================================================
   15. RESPONSIVE STUDIO
   ========================================================= */

@media (max-width: 768px) {
    .studio-tools-grid {
        grid-template-columns: 1fr;
    }

    .studio-logo-container {
        height: 150px;
    }

    .studio-logo {
        width: 300px;
    }

    .studio-subtitle {
        font-size: 18px;
    }

    .studio-tools {
        padding: 40px 20px 80px;
    }
}

/* =========================================================
   16. ACCESSIBILITÉ : MOUVEMENTS RÉDUITS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .studio-page .animate {
        animation: none;
        opacity: 1;
    }

    .studio-tool-card {
        transition: none;
    }
}

