/* ============================================================
   Chatton System — Styles personnalisés (CSS pur, sans @apply)
   Palette : navy #001524 · cyan #00E5FF · blanc
   ============================================================ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    overflow-x: hidden;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #001524; }
::-webkit-scrollbar-thumb { background: #013249; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #00b8cc; }

/* ---------- Boutons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: #00E5FF;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #001524;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.5);
    cursor: pointer;
}
.btn-primary:hover {
    box-shadow: 0 0 30px 0 rgba(0, 229, 255, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    border-color: rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.08);
    transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
#navbar.scrolled {
    background: rgba(0, 21, 36, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0;
    background: #00E5FF;
    transition: width 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.mobile-link {
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.2s ease;
}
.mobile-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Sélecteur de langue */
.lang-btn { color: #94a3b8; cursor: pointer; }
.lang-btn.lang-active {
    background: #00E5FF;
    color: #001524;
}

/* ---------- Tags de section ---------- */
.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #00E5FF;
}

/* ---------- Cartes services ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.75rem;
    transition: all 0.5s ease;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom right, rgba(0, 229, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 229, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.3);
}
.card:hover::before,
.card:hover::after { opacity: 1; }

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.1);
    color: #00E5FF;
    transition: all 0.5s ease;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.card:hover .card-icon {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.card-title {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.card-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94a3b8;
}
.card-list {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}
.card-list li {
    position: relative;
    padding-left: 1.25rem;
}
.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: #00E5FF;
}

/* ---------- Étapes (approche) ---------- */
.step {
    position: relative;
    padding-left: 4rem;
}
.step-num {
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    transition: color 0.5s ease;
    line-height: 1;
}
.step:hover .step-num { color: rgba(0, 229, 255, 0.25); }
.step-title {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.step-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94a3b8;
}

/* ---------- Chips & valeurs ---------- */
.chip {
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
}
.chip:hover {
    border-color: rgba(0, 229, 255, 0.4);
    color: #7df0ff;
}

/* ---------- Carte identité (À propos) ---------- */
.id-card {
    transition: all 0.5s ease;
}
.id-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.08);
}

/* ---------- Cartes faits marquants (highlights) ---------- */
.highlight-card {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    transition: all 0.5s ease;
    transition-delay: var(--delay, 0s);
}
.highlight-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.04);
    transform: translateY(-4px);
}
.highlight-emoji {
    margin-bottom: 0.75rem;
    font-size: 1.875rem;
}
.highlight-title {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}
.highlight-desc {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ---------- Timeline (Parcours) ---------- */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 0.5rem;
    border-left: 2px solid rgba(0, 229, 255, 0.2);
    transition: border-color 0.3s ease;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: #001524;
    border: 2px solid #00E5FF;
    transition: all 0.3s ease;
}
.timeline-item:hover { border-color: rgba(0, 229, 255, 0.5); }
.timeline-item:hover::before {
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
    transform: scale(1.2);
}
.timeline-period {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #00E5FF;
    letter-spacing: 0.05em;
}
.timeline-title {
    margin-top: 0.25rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}
.timeline-company {
    margin-top: 0.125rem;
    font-size: 0.875rem;
    font-style: italic;
    color: #7df0ff;
}
.timeline-desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94a3b8;
}

/* ---------- Formulaire ---------- */
.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}
.form-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    color: #fff;
    outline: none;
    transition: all 0.2s ease;
}
.form-input::placeholder { color: #64748b; }
.form-input:focus {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}
.form-input option {
    background: #001524;
    color: #fff;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    transition: color 0.2s ease;
}
a.contact-line:hover { color: #fff; }
.contact-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    font-size: 1rem;
}

/* ---------- Section produit Minute : maquette ---------- */
.minute-logo {
    line-height: 1;
    letter-spacing: -0.02em;
}

.minute-mockup {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(0, 229, 255, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.minute-mockup:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(0, 229, 255, 0.2);
}

.minute-window-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #012a3d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.minute-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}
.minute-url {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
    font-family: monospace;
}

.minute-window-body {
    padding: 1.25rem;
    background: #001a28;
}

.minute-app-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.minute-pill {
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    font-size: 0.875rem;
    font-weight: 600;
    color: #7df0ff;
}
.minute-week-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
}
.minute-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.minute-arrow:hover {
    border-color: rgba(0, 229, 255, 0.4);
    color: #7df0ff;
}

/* Tableau de saisie */
.minute-table {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
}
.minute-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr) 0.8fr;
    align-items: center;
}
.minute-row > div {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.minute-row > div:first-child {
    text-align: left;
    padding-left: 1rem;
}
.minute-row-head {
    background: rgba(0, 229, 255, 0.06);
}
.minute-row-head > div {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    border-bottom: none;
}
.minute-row-foot {
    background: rgba(255, 255, 255, 0.03);
}
.minute-row-foot > div {
    font-weight: 700;
    color: #fff;
}
.minute-site {
    color: #cbd5e1;
    font-weight: 500;
}
.minute-cell {
    color: #fff;
    font-weight: 600;
}
.minute-weekend {
    background: rgba(255, 255, 255, 0.02);
    color: #475569;
}
.minute-total-cell,
.minute-total {
    color: #00E5FF !important;
    font-weight: 700;
}
.minute-save {
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
}

/* Cartes fonctionnalités Minute */
.minute-feature {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.75rem;
    transition: all 0.5s ease;
    transition-delay: var(--delay, 0s);
}
.minute-feature:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.04);
    transform: translateY(-4px);
}
.minute-feature-ico {
    margin-bottom: 1rem;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
}
.minute-feature h3 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}
.minute-feature p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94a3b8;
}

/* Responsive tableau maquette */
@media (max-width: 640px) {
    .minute-row {
        grid-template-columns: 1.5fr repeat(4, 1fr) 0.7fr;
    }
    .minute-row > div {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    .minute-row > div:first-child {
        padding-left: 0.5rem;
    }
}

/* ---------- Animations reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Keyframes ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- Responsive nav-links ---------- */
@media (max-width: 1023px) {
    .nav-link { display: none; }
}

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
