/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #000;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
header, main, footer {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container .home-link {
    display: block;
}

.logo-container .logo {
    width: 280px;
    height: auto;
    animation: logoAnimation 3s ease-in-out infinite alternate;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.logo-container .home-link:hover .logo {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

@keyframes logoAnimation {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
    }
    100% {
        transform: scale(1.03);
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    }
}

.slogan {
    text-align: right;
}

.slogan h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: #555;
}

/* Hero section */
.hero {
    margin: 1rem 0 4rem;
}

.app-name {
    font-size: 1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.app-status {
    font-size: 0.7rem;
    color: #666;
    margin: 0.25rem 0 0;
    font-style: italic;
}

.app-status.available {
    color: #2ecc71;
    font-style: normal;
}

.app-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Phones container for 3D effect */
.phones-container {
    width: 100%;
    height: 600px;
    perspective: 1200px;
    margin: 2rem auto 1rem;
    max-width: 900px;
    padding: 4rem 0;
}

/* Phone carousel styles */
.phone-carousel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    user-select: none;
    touch-action: pan-y;
    transition: transform 0.2s ease;
}

.phone-container {
    position: absolute;
    width: 280px;
    height: 580px;
    top: 50%;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s ease;
    opacity: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(0) scale(0);
}

.phone-container.active {
    opacity: 1;
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(300px) scale(1);
    z-index: 10;
}

.phone-container.prev {
    opacity: 0.7;
    transform: translate(-50%, -50%) rotateY(45deg) translateZ(150px) scale(0.85);
    z-index: 5;
}

.phone-container.next {
    opacity: 0.7;
    transform: translate(-50%, -50%) rotateY(-45deg) translateZ(150px) scale(0.85);
    z-index: 5;
}

.phone-image {
    height: 100%;
    width: auto;
    max-height: 580px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.phone-container.active .phone-image:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 20;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot.active {
    background-color: #000;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background-color: #aaa;
}

/* Features section */
.features {
    display: grid;
    padding-top: 4rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature {
    padding: 1.5rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature p {
    margin-bottom: 1.5rem;
}

.feature .app-status {
    font-size: 0.8rem;
    color: #666;
    margin: 0.25rem 0;
    font-style: italic;
}

/* Download section */
.download {
    text-align: center;
    margin: 2rem 0;
    padding-top: 1rem;
}

.download-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #000;
    color: #fff;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.download-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Review section */
.review-section {
    max-width: 650px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.review-section:hover {
    transform: translateY(-5px);
}

.stars {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.star {
    color: #ffb700;
    font-size: 1.5rem;
    margin: 0 2px;
}

.review h4 {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.review-meta {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    text-align: center;
}

/* Video section */
.video-section {
    margin: 4rem auto 2rem;
    max-width: 900px;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #555;
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #555;
    position: relative;
    transition: color 0.2s ease;
}

.footer-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #000;
}

.footer-links a:hover:after {
    width: 100%;
}

/* Policy pages styles */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.policy-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 1rem;
}

.policy-container h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.policy-container p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.policy-container ul {
    margin: 1rem 0 1rem 2rem;
}

.policy-container li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #555;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #000;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 0.8rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Visible class for animations */
.visible {
    opacity: 1 !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
    
    .logo-container .logo {
        width: 240px;
        margin-bottom: 0;
    }
    
    .slogan {
        display: none;
    }
    
    .slogan h2 {
        font-size: 1.1rem;
    }
    
    .app-name {
        font-size: 3.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .phones-container {
        height: 380px;
        padding: 0.5rem 0;
        margin: 0.5rem auto;
    }
    
    .phone-container {
        width: 220px;
        height: 440px;
    }
    
    .phone-image {
        max-height: 440px;
    }
    
    .video-section {
        margin: 3rem 1rem;
    }
    
    .video-container {
        border-radius: 8px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .apps-showcase {
        margin: 0.25rem auto 1rem;
        padding: 0;
        height: auto;
    }
    
    .apps-scroll {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 1rem;
        padding: 0.5rem;
        height: auto;
        min-height: 180px;
    }
    
    .app-item {
        width: 100% !important;
        height: auto;
        padding: 0.25rem;
        animation: float 3s ease-in-out infinite !important;
        transform: none !important;
        flex: none !important;
        scroll-snap-align: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        margin-bottom: 0.25rem;
    }
    
    .app-name {
        font-size: 0.7rem;
        text-align: center;
        line-height: 1.2;
    }
    
    /* Suppression des gradients sur mobile */
    .apps-showcase::before,
    .apps-showcase::after {
        display: none;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-1.5rem) scale(1);
        }
    }
    
    .carousel-controls {
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .download {
        margin: 0.5rem 0;
    }
    
    .download-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .app-status {
        font-size: 0.6rem;
        margin: 0.15rem 0 0;
    }
    
    .app-status.available {
        color: #2ecc71;
    }
    
    .feature .app-status {
        font-size: 0.7rem;
    }
}

/* Apps showcase */
.apps-showcase {
    margin: 0 auto 4rem;
    padding: 0 1rem;
    max-width: 1200px;
    position: relative;
}

.apps-showcase::before,
.apps-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 2;
}

.apps-showcase::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.apps-showcase::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.apps-scroll {
    display: flex;
    overflow-x: auto;
    gap: 3rem;
    padding: 2rem 4rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    position: relative;
}

.apps-scroll::-webkit-scrollbar {
    height: 0;
    width: 0;
    display: none;
}

.app-item {
    flex: 0 0 auto;
    width: 140px;
    text-align: center;
    scroll-snap-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 1rem;
    animation: float 3s ease-in-out infinite;
}

/* Animation de flottement */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-1.5rem) scale(1);
    }
}

/* Délais d'animation pour chaque icône */
.app-item:nth-child(1) { animation-delay: 0s; }
.app-item:nth-child(2) { animation-delay: 0.5s; }
.app-item:nth-child(3) { animation-delay: 1s; }
.app-item:nth-child(4) { animation-delay: 1.5s; }

.app-item:hover {
    transform: translateY(-8px) scale(1.05);
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
}

.app-item:hover .app-icon {
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    transform: scale(1.08);
}

.app-name {
    font-size: 1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.app-item:hover .app-name {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .apps-showcase::before,
    .apps-showcase::after {
        width: 50px;
    }

    .apps-scroll {
        gap: 2rem;
        padding: 1.5rem 2rem;
    }

    .app-item {
        width: 120px;
    }

    .app-icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .app-name {
        font-size: 0.9rem;
    }
}

/* Animations au défilement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Classes pour les animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out forwards;
}

.app-icon {
    animation: float 3s ease-in-out infinite;
}

/* Effet de parallaxe */
.parallax {
    transition: transform 0.3s ease-out;
}

/* Transitions de section */
section {
    transition: opacity 0.5s ease-out;
}

/* Animation des points du carrousel */
.carousel-dot {
    transition: transform 0.3s ease-out;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

/* Documentation Styles */
.documentation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
}

.doc-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

.doc-header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #000;
}

.doc-header p {
    margin: 0.5rem 0 0;
    color: #000;
    font-size: 1.1rem;
}

.doc-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.doc-section h2 {
    color: #000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #000;
}

.doc-section h3 {
    color: #000;
    margin: 1.5rem 0 1rem;
}

.doc-toc {
    list-style-type: none;
    padding: 0;
    margin: 1.5rem 0;
}

.doc-toc li {
    margin: 0.5rem 0;
}

.doc-toc a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.doc-toc a:hover {
    color: #333;
    text-decoration: underline;
}

.doc-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #000;
}

.doc-section ul, .doc-section ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.doc-section li {
    margin: 0.5rem 0;
    line-height: 1.5;
    color: #000;
}

.feature-request {
    background-color: #f8f8f8;
    border-left: 4px solid #000;
}

.feature-request h2 {
    color: #000;
    border-bottom: none;
}

.feature-request li {
    margin: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

.feature-request li::before {
    content: "→";
    position: absolute;
    left: -0.5rem;
    color: #000;
}

/* Styles pour les liens de documentation */
.doc-link {
    display: inline-block;
    margin-top: auto;
    padding: 0.8rem 1.5rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid #000;
    text-align: center;
}

.doc-link:hover {
    background-color: #fff;
    color: #000;
    text-decoration: none;
}

.app-status.available {
    color: #000;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
    .documentation-container {
        padding: 1rem;
    }

    .doc-section {
        padding: 1rem;
    }

    .doc-section h2 {
        font-size: 1.5rem;
    }

    .doc-section h3 {
        font-size: 1.2rem;
    }
} 