/* Variables CSS pour la gestion des réseaux sociaux */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-color: #6b7280;
    --border-color: #e5e7eb;
    --social-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

.btn-contact {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-checkpoints {
    margin-bottom: 40px;
}

.checkpoint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.checkpoint i {
    color: var(--success-color);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkpoint span {
    color: var(--gray-color);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Contrôle Parental Section */
.parental-control-section {
    padding: 80px 0;
    background: white;
}

.control-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.control-info p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.7;
}

.control-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 5px;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin: 0;
}

.help-section {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.help-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.help-section p {
    color: var(--dark-color);
    margin-bottom: 8px;
}

.help-subtitle {
    font-weight: 600;
    margin-bottom: 20px !important;
}

.security-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.security-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.security-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    color: white;
}

.security-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Section Sécurisation des Comptes */
.account-security-section {
    padding: 80px 0;
    background: var(--light-color);
}

.account-security-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 60px;
    text-align: center;
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.security-visual-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.security-visual-main img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.security-overlay-main {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(59, 130, 246, 0.9), transparent);
    padding: 30px 20px 20px;
    color: white;
}

.security-overlay-main h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.warning-box {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.warning-box i {
    color: var(--danger-color);
    font-size: 20px;
    margin-top: 2px;
}

.warning-box p {
    color: var(--dark-color);
    margin: 0;
    line-height: 1.6;
}

.security-content > p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.security-features {
    margin: 30px 0 40px;
}

.security-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.security-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.security-item i {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 5px;
}

.security-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.security-item p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin: 0;
}

.doubt-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
}

.doubt-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.doubt-section p {
    margin-bottom: 25px;
}

.doubt-section .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.doubt-section .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Test de Sécurité Section */
.security-test-section {
    padding: 80px 0;
    background: var(--social-gradient);
    color: white;
    text-align: center;
}

.test-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.test-header p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.test-container {
    max-width: 800px;
    margin: 0 auto;
}

#test-questions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    margin-top: 40px;
}

.test-question {
    margin-bottom: 30px;
}

.test-question h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.test-options {
    margin-top: 15px;
}

.test-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.test-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.test-option.selected {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.test-result {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid #10b981;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: white;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-content > p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.service-features li {
    color: var(--gray-color);
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.service-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Cyberharcèlement Section */
.cyberbullying-section {
    padding: 80px 0;
    background: #fef9e7;
}

.cyberbullying-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cyberbullying-content h3 i {
    color: var(--warning-color);
}

.cyberbullying-content > p {
    font-size: 1.1rem;
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 30px;
}

.emergency-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 25px;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.emergency-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.emergency-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--danger-color), #f87171);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.emergency-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.emergency-item p {
    color: var(--gray-color);
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--social-gradient);
    color: white;
    text-align: center;
}

.contact-header {
    margin-bottom: 60px;
}

.contact-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.option-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.contact-option h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-option p {
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li i {
    margin-right: 8px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.emergency-item,
.contact-option {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.emergency-item:nth-child(2) {
    animation-delay: 0.1s;
}

.emergency-item:nth-child(3) {
    animation-delay: 0.2s;
}

.contact-option:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-option:nth-child(3) {
    animation-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .control-content,
    .security-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .service-card,
    .contact-option {
        padding: 30px 20px;
    }
    
    .emergency-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .service-card,
    .emergency-item {
        background: #374151;
        color: white;
        border-color: #4b5563;
    }
    
    .service-content h3 {
        color: white;
    }
    
    .emergency-item h5 {
        color: white;
    }
    
    .feature-item,
    .security-item {
        background: #374151;
    }
    
    .feature-item h4,
    .security-item h4 {
        color: white;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .emergency-item,
    .contact-option,
    .hero-image img {
        animation: none;
        transition: none;
    }
    
    .service-card:hover,
    .contact-option:hover {
        transform: none;
    }
}