/* Importation des polices spécifiées */
@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Variables CSS - Thème optimisé pour mobile et lisibilité */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #E74C3C;
    --accent-color: #3498DB;
    --success-color: #27AE60;
    --light-color: #FFFFFF;
    --light-bg: #F8F9FA;
    --dark-text: #2C3E50;
    --medium-text: #34495E;
    --light-text: #7F8C8D;
    --gradient-header: linear-gradient(90deg, #2C3E50, #3498DB, #E74C3C);
    --gradient-text: linear-gradient(90deg, #2C3E50, #3498DB, #E74C3C);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --container-padding: 20px;
}

/* Reset et styles de base optimisés pour mobile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'PT Serif', serif;
    background-color: #F5F7FA;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background avec image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/background.jpg') center/cover no-repeat fixed;
    opacity: 0.15;
    z-index: -2;
}

/* Overlay pour améliorer la lisibilité */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(245,247,250,0.95) 100%);
    z-index: -1;
}

/* Typographie optimisée pour mobile */
.text-header {
    font-family: 'Satisfy', cursive;
    font-size: 2.8rem;
    font-weight: 400;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.text-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-header);
    border-radius: 2px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--primary-color);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-header);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
    color: var(--medium-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

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

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

/* Navigation optimisée pour mobile */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rman-logo {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    padding: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'PT Serif', serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-text);
    transition: var(--transition);
}

.nav-link i {
    font-size: 1rem;
    color: var(--accent-color);
}

.nav-link:hover, .nav-item.active .nav-link {
    background: var(--gradient-header);
    color: var(--light-color);
    transform: translateY(-1px);
}

.nav-link:hover i, .nav-item.active .nav-link i {
    color: var(--light-color);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Hero Section optimisée pour mobile */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem var(--container-padding) 3rem;
    margin-top: 60px;
}

.hero-content {
    max-width: 100%;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-family: 'Satisfy', cursive;
    font-size: 3.2rem;
    font-weight: 400;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.hero-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.1rem;
    margin: 0 auto 2rem;
    color: var(--medium-text);
    max-width: 600px;
    line-height: 1.7;
}

/* Animation de texte qui s'écrit */
.typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--secondary-color);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--secondary-color) }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    background: var(--light-color);
    color: var(--accent-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--light-color);
}

.social-link.facebook:hover {
    background: #1877F2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #E1306C);
}

.social-link.youtube:hover {
    background: #FF0000;
}

/* Sections principales optimisées pour mobile */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem var(--container-padding);
}

.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'PT Serif', serif;
}

.section-title i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--light-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: var(--gradient-header);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    align-self: flex-start;
}

.view-all:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

/* Grille vidéos optimisée pour mobile */
.video-grid, .product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.video-card, .product-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-card:hover, .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 2.5rem;
    color: var(--light-color);
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-info, .product-info {
    padding: 1.5rem;
}

.video-title, .product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.video-meta, .product-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.video-meta span, .product-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-meta i, .product-meta i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.video-description, .product-description {
    color: var(--medium-text);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.watch-btn, .buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-header);
    color: var(--light-color);
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.watch-btn:hover, .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Grille produits */
.product-image {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image i {
    font-size: 3.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.product-card:hover .product-image i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Section À propos optimisée pour mobile */
.about-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color);
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-content h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(52, 152, 219, 0.08);
    border-radius: var(--border-radius);
    border: 1px solid rgba(52, 152, 219, 0.15);
}

.contact-info h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--medium-text);
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: var(--accent-color);
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--light-color), #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-header);
    z-index: -1;
    border-radius: 50%;
}

.image-placeholder i {
    font-size: 4rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Footer optimisé pour mobile */
.footer {
    background: linear-gradient(135deg, var(--primary-color), #1A252F);
    color: var(--light-color);
    padding: 3rem var(--container-padding) 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 55px;
    width: auto;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 2px solid var(--light-color);
    padding: 2px;
}

.footer-title {
    font-family: 'Satisfy', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--light-color);
}

.footer-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-style: italic;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--light-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--light-color);
    padding-left: 5px;
}

.footer-links a i {
    font-size: 1rem;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.footer-contact a {
    color: var(--light-color);
    font-weight: 600;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Placeholders */
.video-placeholder, .product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    border: 2px dashed var(--primary-color);
    text-align: center;
}

.placeholder-icon {
    font-size: 2.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design - Tablettes (768px et plus) */
@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
    
    .text-header {
        font-size: 3.2rem;
    }
    
    .hero-title {
        font-size: 3.8rem;
    }
    
    .hero-content {
        padding: 3rem 2.5rem;
    }
    
    .video-grid, .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .video-thumbnail, .product-image {
        height: 200px;
    }
    
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .about-container {
        flex-direction: row;
        gap: 3rem;
        align-items: center;
    }
    
    .about-content {
        flex: 2;
    }
    
    .about-image {
        flex: 1;
    }
    
    .image-placeholder {
        width: 220px;
        height: 220px;
    }
    
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3rem;
    }
    
    .footer-brand {
        flex: 1;
        min-width: 250px;
    }
    
    .footer-links {
        flex: 1;
        min-width: 180px;
    }
    
    .footer-social {
        flex: 1;
        min-width: 250px;
    }
}

/* Responsive Design - Desktop (1024px et plus) */
@media (min-width: 1024px) {
    :root {
        --container-padding: 40px;
    }
    
    .text-header {
        font-size: 3.5rem;
    }
    
    .hero-title {
        font-size: 4.2rem;
    }
    
    .hero-content {
        padding: 4rem;
        max-width: 900px;
    }
    
    .video-grid, .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .main-content {
        padding: 3rem var(--container-padding);
    }
    
    .section {
        padding: 2.5rem;
        margin-bottom: 4rem;
    }
    
    .about-section {
        padding: 3rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .image-placeholder i {
        font-size: 5rem;
    }
}

/* Optimisations pour très petits écrans (moins de 375px) */
@media (max-width: 374px) {
    html {
        font-size: 15px;
    }
    
    .text-header {
        font-size: 2.4rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-name {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .video-info, .product-info {
        padding: 1.2rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Correction de la visibilité du menu sur mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        padding: 1.5rem;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem;
        justify-content: center;
        border-radius: var(--border-radius);
        margin-bottom: 0.5rem;
        background: rgba(248, 249, 250, 0.8);
    }
    
    .nav-link:hover, .nav-item.active .nav-link {
        background: var(--gradient-header);
    }
}

/* Correction pour les problèmes de zoom sur iOS */
@media (max-width: 768px) {
    input, textarea, select, button {
        font-size: 16px !important;
    }
}

/* Amélioration de la lisibilité des textes */
.section-title, .video-title, .product-title, h1, h2, h3 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Amélioration du contraste pour les textes sur fond clair */
.hero-description, .video-description, .product-description, .about-content p {
    color: var(--medium-text);
    font-weight: 400;
}

/* Amélioration de la visibilité des liens */
.contact-info a, .footer-contact a {
    color: var(--accent-color);
    font-weight: 600;
}

/* Optimisation des performances pour les animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}