/* Index - Page d'accueil */

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: url('../images/piscine/piscine 4.avif') center/cover no-repeat;
    background-attachment: fixed;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin: 0.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary {
    background: #5a67d8;
    color: #fff;
}

.btn-primary:hover {
    background: #434190;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 103, 216, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #5a67d8;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #5a67d8;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #5a67d8;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* Features Detail Section */
.features-detail {
    padding: 5rem 0;
    background: #f8f9fa;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-detail-item {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-detail-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
}

.feature-detail-content h3 {
    color: #5a67d8;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-detail-content ul {
    list-style: none;
    padding-left: 0;
}

.feature-detail-content li {
    padding: 0.5rem 0;
    color: #666;
    line-height: 1.6;
}

.feature-detail-content li::before {
    content: '✓ ';
    color: #5a67d8;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* About Story Section */
.about-story {
    padding: 5rem 0;
    background: #fff;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-image {
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.story-text h2 {
    color: #5a67d8;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.story-text p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.testimonial-rating {
    color: #ffc107;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #666;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.testimonial-author {
    color: #5a67d8;
    font-weight: 600;
    text-align: right;
    font-size: 0.95rem;
}

/* Map Section */
.map-section {
    padding: 5rem 0;
    background: #fff;
}

.map-container {
    margin-top: 2rem;
}

.map-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
}

.map-info p {
    margin: 0.5rem 0;
}

.map-info strong {
    color: #5a67d8;
    font-size: 1.2rem;
}

.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #5a67d8 0%, #434190 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: #fff;
    color: #5a67d8;
}

.cta-section .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        background-image: url('../images/piscine/piscine 4.avif');
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .hero-overlay {
        background: rgba(0,0,0,0.5);
    }

    .hero-content {
        padding: 1.5rem;
        width: 95%;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image {
        height: 300px;
        order: -1;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-detail-item {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-wrapper {
        height: 300px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        background-image: url('../images/piscine/piscine 4.avif');
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .hero-overlay {
        background: rgba(0,0,0,0.5);
    }

    .hero-content {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        display: block;
        margin: 0.5rem auto;
        width: 85%;
        max-width: 280px;
    }

    .features,
    .features-detail,
    .about-story,
    .testimonials,
    .map-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        gap: 1.25rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .story-content {
        gap: 1.5rem;
    }

    .story-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .story-text p {
        font-size: 1rem;
    }

    .story-image {
        height: 250px;
        order: -1;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-detail-item {
        padding: 2rem;
        flex-direction: column;
        text-align: center;
    }

    .feature-detail-icon {
        margin-bottom: 1rem;
    }

    .feature-detail-content h3 {
        font-size: 1.3rem;
    }

    .testimonials-grid {
        gap: 1.25rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .map-wrapper {
        height: 250px;
    }

    .map-info {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .map-info strong {
        font-size: 1.1rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
}

/* Très petits écrans (portrait mobile) */
@media (max-width: 360px) {
    .hero {
        background-image: url('../images/piscine/piscine 4.avif');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 90%;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Mode paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        background-image: url('../images/piscine/piscine 4.avif');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
        margin: 0.3rem;
        display: inline-block;
        width: auto;
    }
}

