/* Bouton App Web */
.btn-appweb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}
.btn-appweb:hover, .btn-appweb:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.5);
    color: white;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    max-width: 100%;
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Règle globale pour empêcher le débordement */
section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-brand:hover {
    color: #3730a3;
    transform: translateY(-1px);
}

.nav-brand:visited,
.nav-brand:focus {
    color: #4f46e5;
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4f46e5;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    min-width: 280px;
    justify-content: center;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

/* Uniformisation de la largeur pour btn-appweb */
.btn-appweb {
    min-width: 280px;
    justify-content: center;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 35px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1f2937;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

/* Animation d'ouverture d'application */
.app-loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: appOpeningSequence 6s ease-in-out infinite;
}

.app-icon-opening {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    animation: iconScale 6s ease-in-out infinite;
}

@keyframes appOpeningSequence {
    0%, 15% {
        opacity: 1;
        transform: scale(1);
    }
    25%, 100% {
        opacity: 0;
        transform: scale(1.2);
        pointer-events: none;
    }
}

@keyframes iconScale {
    0%, 10% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.1);
    }
    25% {
        transform: scale(20);
        opacity: 0;
    }
    26%, 100% {
        transform: scale(20);
        opacity: 0;
    }
}

/* Screenshots rotation après ouverture */
.phone-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/app-screenshot.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: rotateScreenshots 12s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes rotateScreenshots {
    0%, 25% { 
        background-image: url('images/app-screenshot.png');
        opacity: 1;
    }
    33%, 58% { 
        background-image: url('images/app-screenshot-2.png');
        opacity: 1;
    }
    66%, 91% { 
        background-image: url('images/app-screenshot-3.png');
        opacity: 1;
    }
    100% { 
        background-image: url('images/app-screenshot.png');
        opacity: 1;
    }
}

.app-preview {
    background: transparent;
    height: 100%;
    padding: 0;
    color: white;
    position: relative;
    display: none; /* Cache le contenu HTML car on utilise maintenant l'image SVG */
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.indicators {
    display: flex;
    gap: 5px;
}

.app-header {
    text-align: center;
    margin-bottom: 40px;
}

.app-header h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-indicator.safe {
    background: rgba(16, 185, 129, 0.3);
    border: 2px solid #10b981;
}

.tide-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.current-tide, .next-tide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.timer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.time-left {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.label {
    opacity: 0.8;
    font-size: 0.9rem;
}

.value {
    font-weight: 600;
}

/* Hero Waves */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.hero-waves svg {
    width: 100%;
    height: 100%;
    animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-50px); }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f9fafb;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* About Gois Section */
.about-gois {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
}

.download-content {
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.download-btn {
    display: flex;
    align-items: center;
    background: #000;
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #333;
}

.download-btn:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-content i {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.large {
    font-size: 1.125rem;
    font-weight: 600;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.info-item i {
    color: #fbbf24;
}

/* Web App Alternative Section */
.web-app-alternative {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.alternative-text {
    margin-bottom: 2rem;
}

.alternative-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.web-app-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.web-app-btn:hover {
    background: linear-gradient(135deg, #0891b2, #4338ca);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    color: white;
}

.web-app-btn .btn-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.web-app-btn .btn-content i {
    font-size: 2rem;
}

.web-app-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.web-app-btn .small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.web-app-btn .large {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-brand i {
    color: #06b6d4;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #374151;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 6rem 1rem 2rem 1rem; /* Augmente le padding-top pour éviter le chevauchement avec l'header */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    /* Masquer l'icône décorative sur mobile pour éviter le débordement */
    .app-icon-decoration {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .download-info {
        gap: 1.5rem;
    }
    
    .web-app-alternative {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .alternative-text p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .web-app-btn {
        padding: 0.875rem 1.5rem;
    }
    
    .web-app-btn .btn-content i {
        font-size: 1.5rem;
    }
    
    .web-app-btn .large {
        font-size: 1rem;
    }
}

/* Breakpoint spécifique pour les écrans de ~412px */
@media (max-width: 420px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    /* Navigation optimisée pour écrans très étroits */
    .nav {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }
    
    .nav-brand {
        font-size: 1.1rem;
        gap: 0.3rem;
    }
    
    .nav-brand span {
        display: none; /* Masquer le texte sur très petits écrans */
    }
    
    .nav-brand i {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .nav-links a:first-child {
        display: none; /* Masquer "Fonctionnalités" sur très petits écrans */
    }
    
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        border-radius: 25px;
        white-space: nowrap;
        min-width: auto;
    }
    
    .hero-content {
        padding: 6rem 0.5rem 2rem 0.5rem;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .btn-download, .btn-secondary, .btn-appweb {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    /* Styles spécifiques pour la section about-gois sur écrans très étroits */
    .about-gois {
        padding: 2.5rem 0;
        overflow-x: hidden;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .about-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .image-placeholder {
        width: 100%;
        max-width: 300px;
        height: 200px;
        font-size: 1rem;
    }
    
    .image-placeholder i {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Footer optimisé pour écrans très étroits */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-brand {
        font-size: 1.1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .footer-links a {
        padding: 0.25rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    /* Navigation pour écrans mobiles */
    .nav {
        padding: 0.75rem 1rem;
    }
    
    .nav-brand {
        font-size: 1.15rem;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-links a:first-child {
        font-size: 0.9rem; /* Réduire la taille de "Fonctionnalités" */
    }
    
    .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .hero-content {
        padding: 7rem 0.5rem 2rem 0.5rem; /* Encore plus de padding-top sur très petit écran */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-download, .btn-secondary, .btn-appweb {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-gois {
        padding: 3rem 0;
    }
    
    .about-text h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .about-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .image-placeholder {
        width: 100%;
        max-width: 320px;
        height: 240px;
        margin-top: 2rem;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Footer pour écrans mobiles */
    .footer {
        padding: 2rem 0 1.5rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-brand {
        font-size: 1.15rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.95rem;
        padding: 0.25rem 0.5rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }
}
