@charset "UTF-8";

:root {
    --blue: #1e2d3d;
    --green: #87a178;
    --cream: #f8f7f2;
    --text: #4a5568;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--cream);
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Background Blobs */
body::before {
    content: "";
    position: fixed;
    width: 520px;
    height: 520px;
    background: linear-gradient(135deg, #87a178, #cfe1b7);
    border-radius: 50%;
    top: -180px;
    left: -140px;
    filter: blur(90px);
    opacity: 0.40;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    width: 540px;
    height: 540px;
    background: linear-gradient(135deg, #7ba0cf, #87a178);
    border-radius: 50%;
    right: -180px;
    bottom: -180px;
    filter: blur(100px);
    opacity: 0.35;
    z-index: -2;
}

/* Paw Pattern */
.pattern {
    position: fixed;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 100 100'%3E%3Cg fill='%2387a178'%3E%3Cellipse cx='50' cy='62' rx='18' ry='14'/%3E%3Ccircle cx='32' cy='34' r='8'/%3E%3Ccircle cx='46' cy='24' r='8'/%3E%3Ccircle cx='62' cy='24' r='8'/%3E%3Ccircle cx='76' cy='34' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

/* Card Principal (820px Desktop) */
.card {
    width: 100%;
    max-width: 820px;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 36px;
    box-shadow: 
        0 25px 70px rgba(30, 45, 61, 0.15),
        inset 0 1px rgba(255, 255, 255, 0.65);
    padding: 40px;
    text-align: center;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

/* Layout 2 Colonnes Desktop */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
    transition: opacity 0.3s ease;
}

.card-grid.hidden {
    display: none !important;
}

.col-left, .col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo */
.logo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Titres & Textes */
h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h1 .cani { color: var(--blue); }
h1 .pattes { color: var(--green); }

.slogan {
    margin-top: 8px;
    color: var(--green);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
}

.description {
    margin-top: 14px;
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Tags / Badges */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0 0;
}

.tag {
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(135, 161, 120, 0.40);
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* ------------------------------------------------ */
/* CARROUSEL COVERFLOW */
/* ------------------------------------------------ */

.screenshots-wrapper {
    position: relative;
    width: 100%;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-viewport {
    width: 100%;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.screenshot-item {
    flex: 0 0 125px;
    width: 125px;
    height: 250px;
    margin: 0 10px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(30, 45, 61, 0.1);
    transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
    cursor: pointer;
    opacity: 0.4;
    transform: scale(0.8);
    filter: brightness(0.85);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.screenshot-item.active {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1);
    z-index: 5;
    box-shadow: 
        0 15px 35px rgba(30, 45, 61, 0.22),
        0 0 0 2px rgba(135, 161, 120, 0.6);
}

.screenshot-item.adjacent {
    opacity: 0.8;
    transform: scale(0.9);
    filter: brightness(0.95);
    z-index: 2;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(135, 161, 120, 0.5);
    color: var(--blue);
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--blue);
    color: #fff;
}

.carousel-btn.prev { left: 0px; }
.carousel-btn.next { right: 0px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(135, 161, 120, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    width: 22px;
    border-radius: 999px;
    background: var(--green);
}

.more-info-link {
    margin-top: 10px;
    display: inline-block;
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.more-info-link:hover {
    color: var(--green);
    transform: translateY(-1px);
}

/* ------------------------------------------------ */
/* VUES DÉTAILLÉE & CONTACT */
/* ------------------------------------------------ */

.app-details-view {
    display: none;
    text-align: left;
    position: relative;
    padding: 10px;
    max-height: 520px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: fadeIn 0.3s ease;
}

.app-details-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(135, 161, 120, 0.2);
}

.details-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue);
}

.details-close-btn {
    background: rgba(30, 45, 61, 0.08);
    border: none;
    color: var(--blue);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.details-close-btn:hover {
    background: var(--blue);
    color: #fff;
}

.details-content {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.details-content p {
    margin-bottom: 14px;
}

.app-details-view::-webkit-scrollbar {
    width: 6px;
}

.app-details-view::-webkit-scrollbar-track {
    background: rgba(135, 161, 120, 0.15);
    border-radius: 999px;
}

.app-details-view::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 999px;
}

/* ------------------------------------------------ */
/* STYLES FORMULAIRE DE CONTACT */
/* ------------------------------------------------ */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(135, 161, 120, 0.50);
    outline: none;
    font-size: 0.90rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(135, 161, 120, 0.2);
}

.submit-contact-btn {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 5px;
    box-shadow: 0 8px 20px rgba(30, 45, 61, 0.15);
}

.submit-contact-btn:hover {
    background: var(--green);
    transform: translateY(-2px);
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.alert.success {
    background: rgba(135, 161, 120, 0.2);
    color: #3b522e;
    border: 1px solid var(--green);
}

.alert.error {
    background: #fed7d7;
    color: #9b2c2c;
    border: 1px solid #feb2b2;
}

.footer-links {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px dashed rgba(135, 161, 120, 0.3);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 9px;
    color: rgba(74, 85, 104, 0.62);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer-links a {
    color: rgba(30, 45, 61, 0.82);
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
    color: var(--green);
    transform: translateY(-1px);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(30, 45, 61, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close, .lb-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.lightbox-close:hover, .lb-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.lightbox-close { top: 20px; right: 20px; }
.lb-btn.prev { left: 20px; }
.lb-btn.next { right: 20px; }

/* Stores */
.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #1e2d3d;
    color: white;
    text-decoration: none;
    position: relative;
    transition: 0.35s;
    box-shadow: 0 10px 25px rgba(30, 45, 61, 0.15);
}

.playstore:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(30, 45, 61, 0.25);
}

.store-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-text .small {
    font-size: 0.68rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.store-text .big {
    font-size: 1.1rem;
    font-weight: 700;
}

.disabled {
    background: #bfc6cc;
    filter: grayscale(100%);
    opacity: 0.75;
    cursor: not-allowed;
}

.soon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #555;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Réseaux sociaux : icônes rondes discrètes */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(30, 45, 61, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-icon.facebook {
    background: #1877F2;
}

.social-icon.facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(24, 119, 242, 0.35);
}

.social-icon.instagram {
    background: #9aa3ad;
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.client-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Footer & Formulaire */
.footer {
    margin-top: 20px;
    color: #6b7280;
    font-size: 0.82rem;
}

.newsletter-form {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(135, 161, 120, 0.50);
    outline: none;
    font-size: 0.85rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-form button {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.newsletter-form button:hover {
    background: #738c64;
}

/* ------------------------------------------------ */
/* ESPACE CLIENT */
/* ------------------------------------------------ */

.client-body {
    align-items: flex-start;
}

.client-shell {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.client-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.client-back,
.link-button {
    color: var(--blue);
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(135, 161, 120, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    padding: 10px 14px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 45, 61, 0.08);
}

.client-hero,
.client-panel {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    box-shadow: 0 20px 55px rgba(30, 45, 61, 0.13);
}

.client-hero {
    padding: 32px;
    text-align: left;
}

.client-hero h1 {
    font-size: 2.6rem;
}

.client-hero p,
.client-panel p {
    color: var(--text);
    line-height: 1.55;
}

.eyebrow {
    color: var(--green) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.client-panel {
    padding: 26px;
    text-align: left;
}

.client-panel h2 {
    color: var(--blue);
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.client-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 18px;
}

.big-status {
    color: var(--green) !important;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 14px 0 4px;
}

.muted {
    color: #718096 !important;
    font-size: 0.88rem;
    margin-top: 12px;
}

.client-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.client-form label {
    color: var(--blue);
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.client-form input,
.client-form select,
.client-form textarea {
    width: 100%;
    border: 1px solid rgba(135, 161, 120, 0.45);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
    font: inherit;
    padding: 13px 14px;
    outline: none;
}

.client-form textarea {
    resize: vertical;
}

.primary-action {
    border: none;
    border-radius: 16px;
    background: var(--green);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 14px 18px;
    box-shadow: 0 12px 25px rgba(135, 161, 120, 0.28);
}

.plan-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.plan-card {
    min-height: 128px;
    border: 1px solid rgba(135, 161, 120, 0.35);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    text-decoration: none;
}

.plan-card strong {
    color: var(--green);
    font-size: 1.05rem;
}

.plan-card em {
    color: #fff;
    background: var(--green);
    border-radius: 999px;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    padding: 5px 8px;
    width: fit-content;
}

.plan-card.highlighted {
    border-color: var(--green);
    box-shadow: 0 12px 30px rgba(135, 161, 120, 0.2);
}

.notice {
    border-radius: 18px;
    font-weight: 800;
    padding: 14px 16px;
}

.notice.success {
    color: #2f6b39;
    background: rgba(199, 230, 184, 0.72);
    border: 1px solid rgba(135, 161, 120, 0.5);
}

.notice.error {
    color: #9b2c2c;
    background: rgba(255, 230, 230, 0.85);
    border: 1px solid rgba(229, 62, 62, 0.25);
}

.auth-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 26px;
    align-items: start;
}

/* Responsive Tablette & Mobile */
@media (max-width: 768px) {
    body { 
        padding: 20px 12px; 
    }
    
    .card { 
        width: calc(100% - 8px);
        max-width: 410px; 
        padding: 24px 14px; 
        border-radius: 26px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo-wrapper { width: 150px; height: 150px; }
    h1 { font-size: 2.2rem; }
    
    .screenshots-wrapper { 
        width: 100%;
        margin: 0;
    }

    .screenshot-item { flex: 0 0 115px; width: 115px; height: 230px; margin: 0 6px; }
    .lb-btn.prev { left: 10px; }
    .lb-btn.next { right: 10px; }

    .app-details-view {
        max-height: 60vh;
        padding: 0 4px 10px 4px;
    }

    .details-title {
        font-size: 1.3rem;
    }

    .details-content {
        font-size: 0.88rem;
    }

    .client-hero,
    .client-panel {
        border-radius: 24px;
        padding: 22px;
    }

    .client-grid,
    .auth-panel,
    .plan-list {
        grid-template-columns: 1fr;
    }

    .client-hero h1 {
        font-size: 2.1rem;
    }
}
