/* 
* Splashy Website - Main Stylesheet
* Couleurs principales: 
* - Bleu turquoise: #1BBFE9
* - Blanc: #FFFFFF
* - Jaune vif: #FFD800
*/

/* ===== BASE STYLES ===== */
:root {
    --primary-color: #1BBFE9;
    --secondary-color: #FFD800;
    --text-color: #333333;
    --light-color: #FFFFFF;
    --dark-color: #0A6E8A;
    --grey-color: #F5F5F5;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e6c300;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #1BBFE9 0%, #0A6E8A 100%);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

/* Bubbles Animation */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: bubble 15s infinite ease-in;
    opacity: 0.5;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 80px;
    height: 80px;
    left: 50%;
    animation-duration: 11s;
    animation-delay: 0s;
}

.bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 55%;
    animation-duration: 6s;
    animation-delay: 1s;
}

.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 65%;
    animation-duration: 8s;
    animation-delay: 3s;
}

.bubble:nth-child(7) {
    width: 25px;
    height: 25px;
    left: 75%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    width: 80px;
    height: 80px;
    left: 80%;
    animation-duration: 10s;
    animation-delay: 4s;
}

@keyframes bubble {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
    100% {
        bottom: 1080px;
        transform: translateX(-20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PRODUCTS SECTION ===== */
.products {
    background-color: var(--grey-color);
    padding: 100px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
}

.product-image.blue {
    background: linear-gradient(135deg, #1BBFE9 0%, #0A6E8A 100%);
}

.product-image.green {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.product-image.orange {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.product-image.purple {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.product-image.yellow {
    background: linear-gradient(135deg, #FFD800 0%, #FFA000 100%);
}

.product-icon {
    font-size: 4rem;
}

.product-img {
    max-width: 80%;
    max-height: 150px;
    object-fit: contain;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-info p {
    margin-bottom: 20px;
    color: var(--text-color);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    box-shadow: var(--shadow);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--grey-color);
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    color: var(--light-color);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.social-media {
    display: flex;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--light-color);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #ff3860;
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: var(--light-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-links ul {
    display: flex;
}

.footer-links li {
    margin-right: 20px;
}

.footer-links a {
    color: var(--light-color);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-page {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: var(--grey-color);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.product-detail-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 100%;
    max-width: 300px;
    height: 300px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.image-container.orange {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.image-container.yellow {
    background: linear-gradient(135deg, #FFD800 0%, #FFA000 100%);
}

.detail-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail-info h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.product-tagline {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.product-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-specs {
    margin: 30px 0;
}

.product-specs h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.specs-list {
    list-style: none;
    padding: 0;
}

.specs-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.specs-list li:last-child {
    border-bottom: none;
}

@media screen and (min-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr 1fr;
        padding: 40px;
    }
    
    .product-detail-image {
        align-items: flex-start;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-links ul {
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}
