/* Global Styles */
:root {
    --primary-color: #6B21A8;
    --primary-light: #9146FF;
    --secondary-color: #FF6B00;
    --background-dark: #220B38;
    --background-light: #F9F9F9;
    --text-color: #333;
    --text-light: #FFF;
    --border-radius: 25px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    --gradient-dark: #200433;
    --gradient-light: #3E0550;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

h1, h2, h3 {
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease, transform 0.2s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-orange {
    background-color: var(--secondary-color);
    color: white;
    padding: 14px 32px;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.btn-orange:hover {
    background-color: #FF8533;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.4);
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 15px 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-purple {
    background-color: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

.btn-purple:hover {
    background-color: #A15AFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Header */
header {
    padding: 15px 0;
    position: absolute;
    width: 100%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(34, 11, 56, 0.9);
    padding: 10px 0;
    position: fixed;
    top: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    z-index: 20;
}

.logo img {
    height: 30px;
    margin-right: 10px;
}

.logo span {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-light);
}

.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 20;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger-icon span:nth-child(1) {
    top: 0px;
}

.burger-icon span:nth-child(2) {
    top: 8px;
}

.burger-icon span:nth-child(3) {
    top: 16px;
}

.burger-menu.active .burger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.burger-menu.active .burger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.burger-menu.active .burger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.main-nav {
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a img {
    height: 20px;
    margin-right: 8px;
}

/* Hero Section */
.hero {
    background-image: url('../assets/images/hero-background.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 11, 56, 0.3);
    z-index: 1;
}

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

.hero-content {
    text-align: right;
    max-width: 700px;
    margin-left: auto;
    padding-top: 0;
    margin-right: 50px;
}

.subtitle {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.3s;
}

.hero .subtitle {
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.6s;
}

.hero .btn-white {
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.9s;
}

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

/* Features Intro - MISE À JOUR SELON DEMANDE */
.features-intro {
    padding: 40px 0;
    background: linear-gradient(180deg, var(--gradient-dark) 0%, var(--gradient-light) 100%);
    position: relative;
    overflow: visible;
    margin-top: -50px; /* Ajouté pour que la section soit plus haute et permette le débordement du logo */
}

.features-intro-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse; /* Inverse l'ordre: logo à droite, texte à gauche */
}

.features-intro-text {
    flex: 1;
    text-align: right; /* Texte aligné à droite */
    padding-right: 50px;
}

.features-intro-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gradient-dark) 0%, var(--gradient-light) 100%); /* Dégradé exact */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 0;
    /* Faire déborder l'icône verticalement */
    transform: translateY(-90px);
    z-index: 2;
}

.features-intro-logo img {
    width: 180px; /* Image qui remplit tout le cercle */
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
}

.features-intro h2 {
    margin-bottom: 15px;
    font-size: 2.2rem;
    text-align: right;
}

.features-intro p {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-align: right;
}

/* Experience */
.experience {
    padding: 60px 0 40px;
    text-align: center;
    background-color: var(--background-dark);
}

.experience h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.experience p {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.experience .btn {
    margin-top: 10px;
}

/* Features - MISE À JOUR SELON DEMANDE */
.features {
    padding: 40px 0 80px;
    background-color: var(--background-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: transparent; /* Pas de fond sur les cartes */
    padding: 20px 15px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background-color: transparent; /* Pas de fond circulaire */
    position: relative;
    z-index: 1;
}

.feature-icon img {
    width: 80px; /* Icônes plus grandes */
    height: 80px;
    object-fit: contain;
}

.feature-card h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* Join Community */
.join-community {
    padding: 100px 0;
    text-align: center;
    background-color: var(--background-dark);
}

.divider {
    width: 120px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 30px auto 40px;
}

.join-community p {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

.join-community .btn-purple {
    margin: 0 auto;
    padding: 15px 30px;
}

/* Community Partners - MISE À JOUR SELON DEMANDE */
.community-partners {
    padding: 120px 0;
    background-image: url('../assets/images/partners-background.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.community-partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 11, 56, 0.7);
    z-index: 1;
}

.partners-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.partners-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.partners-text {
    flex: 1;
    text-align: left; /* Texte aligné à gauche */
    max-width: 600px;
}

.partners-grid {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.partner-card {
    width: 120px;
}

.partner-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    animation: pulse 3s infinite ease-in-out;
}

.partner-image:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.7);
    transition: all 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 107, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 107, 0, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 107, 0, 0.4); }
}

.question-mark {
    font-size: 50px;
    color: var(--text-light);
}

/* Footer */
footer {
    padding: 20px 0;
    background-color: var(--background-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-left {
    flex: 0 0 100px;
}

.footer-logo {
    height: 30px;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-center ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-center ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-center ul li a:hover {
    opacity: 1;
}

.footer-right {
    flex: 0 0 200px;
    display: flex;
    justify-content: flex-end;
}

.partner-link {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.partner-link img {
    margin-right: 8px;
    height: 16px;
}

/* Message container pour les modales */
.message-container {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    text-align: center;
}

.message-container.error {
    display: block;
    background-color: rgba(255, 87, 87, 0.1);
    border: 1px solid #ff5757;
    color: #ff5757;
}

.message-container.success {
    display: block;
    background-color: rgba(75, 181, 67, 0.1);
    border: 1px solid #4bb543;
    color: #4bb543;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 450px;
    position: relative;
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 30px auto;
    max-height: 90vh;
    overflow-y: auto;
}

.close, .close-register, .close-invite, .close-profile {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 40px;
    text-align: center;
}

.modal-logo {
    margin-bottom: 15px;
}

.modal-logo img {
    width: 65px;
    height: auto;
}

.modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #222;
    font-weight: 600;
}

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

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    background-color: #F2F2F2;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333;
}

.form-link {
    text-align: left;
    margin-bottom: 20px;
}

.form-link a {
    color: var(--text-color);
    font-size: 0.9rem;
}

.btn-connect {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 10px;
    width: auto;
    min-width: 180px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.btn-create {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.social-login {
    margin-top: 25px;
}

.social-login p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.social-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.social-icon img {
    width: 25px;
    opacity: 0.7;
}

.register-link, .login-link {
    margin-top: 30px;
}

.register-link a, .login-link a {
    color: var(--secondary-color);
    font-weight: 500;
}

.terms-text {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    text-align: center;
}

.terms-text a {
    color: #333;
    text-decoration: underline;
    font-weight: 500;
}

#registerModal, #inviteModal, #profileModal {
    display: none;
}

/* Styles pour la modale d'invitation */
.invite-message {
    margin-bottom: 25px;
}

.invite-message p {
    color: #666;
}

#inviteForm .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 20px;
    border: none;
    background-color: #F2F2F2;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333;
    min-height: 100px;
    resize: vertical;
}

.btn-invite {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
}

.share-options {
    margin: 25px 0;
}

.share-options p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.referral-code {
    background-color: #f2f2f2;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.referral-code p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #333;
}

.btn-copy {
    background-color: var(--primary-light);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Styles pour la modale de profil */
.profile-icon {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    padding: 15px;
    background-color: #f0f0f0;
}

.profile-info {
    text-align: left;
    margin: 25px 0;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.info-group {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.info-group label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 0 0 140px;
}

.info-group span {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    flex: 1;
    text-align: right;
    word-break: break-word;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-edit {
    background-color: #9146FF;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    flex: 1;
}

.btn-edit:hover {
    background-color: #7E3CD6;
}

.btn-logout {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    flex: 1;
}

.btn-logout:hover {
    background-color: #d32f2f;
}

/* Mode édition du profil */
#edit-profile-form {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

#edit-profile-form .form-group {
    margin-bottom: 15px;
}

#edit-profile-form label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

#edit-profile-form input,
#edit-profile-form select,
#edit-profile-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

#edit-profile-form textarea {
    min-height: 80px;
    resize: vertical;
}

.edit-profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    flex: 1;
}

.btn-cancel:hover {
    background-color: #eeeeee;
}

.btn-save {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    flex: 1;
}

.btn-save:hover {
    background-color: #43A047;
}

/* Media Queries */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        margin-right: 30px;
    }
    
    .features-intro-text {
        padding-right: 30px;
    }
    
    .partners-wrapper {
        flex-direction: column;
    }
    
    .partners-text {
        margin-bottom: 50px;
        text-align: center;
    }
    
    .partners-grid {
        justify-content: center;
    }
    
    .burger-menu {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-dark);
        padding-top: 70px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: 10;
        transition: all 0.4s ease;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .modal-content {
        margin: 15px auto;
        max-width: 90%;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-center ul {
        justify-content: center;
    }
    
    .footer-right {
        justify-content: center;
    }
    
    .features-intro-wrapper {
        flex-direction: column;
    }
    
    .features-intro-text {
        text-align: center;
        padding-right: 0;
        margin-top: 30px;
        order: 2; /* Mettre le texte en-dessous sur mobile */
    }
    
    .features-intro h2, .features-intro p {
        text-align: center;
    }
    
    .features-intro-logo {
        margin: 0 auto;
        transform: translateY(-40px);
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
    
    .modal-body form {
        width: 100%;
    }
    
    .btn-create {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        text-align: center;
        margin-right: auto;
        padding-top: 100px;
    }
    
    .features-intro-logo {
        transform: translateY(-40px);
        width: 150px;
        height: 150px;
    }
    
    .features-intro-logo img {
        width: 150px;
        height: 150px;
    }
    
    .modal {
        align-items: flex-start;
        padding: 10px;
    }
    
    .modal-content {
        margin: 10px auto;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 25px 15px;
    }
    
    .form-group input {
        padding: 12px 15px;
    }
    
    .btn-connect, .btn-create {
        width: 100%;
    }
    
    .social-icons {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon img {
        width: 20px;
    }
    
    /* Ajuster le profil pour le mobile */
    .profile-info {
        max-height: 300px;
    }
    
    #edit-profile-form {
        max-height: 300px;
    }
}