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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-size: 25px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-align: center;
    flex-grow: 1;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.social-links a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
}

.social-links a:hover {
    color: #000;
    background: #f8f9fa;
}

.social-links .icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
}

.portfolio-btn:hover {
    background: #f8f9fa;
    border-color: #333;
}

.portfolio-btn::before {
    content: '←';
    margin-right: 8px;
    font-size: 16px;
}

.container {
    max-width: 800px;
    margin: 80px auto 0;
    background: white;
    padding: 40px;
    min-height: calc(100vh - 80px);
}

h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 400;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.message-form {
    background: #fafafa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    background-color: #333;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover {
    background-color: #000;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

.messages-container {
    margin-top: 40px;
}

.message {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.message:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f4;
}

.message-header strong {
    color: #2c3e50;
    font-size: 1.1em;
}

.message-date {
    color: #6c757d;
    font-size: 0.9em;
}

.message-content {
    color: #495057;
    line-height: 1.6;
}

.no-messages {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Menu burger pour réseaux sociaux mobile */
.social-burger-click-area {
    display: none;
    cursor: pointer;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.social-burger-click-area:hover {
    background-color: #e0e0e0;
}

.social-burger {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-burger::before {
    content: "≡";
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* Menu responsive réseaux sociaux */
.js-social-responsive-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.social-responsive-nav {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-responsive-nav__contents {
    text-align: center;
}

.close-social-responsive-click-area {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.close-responsive-button {
    width: 30px;
    height: 30px;
    position: relative;
}

.close-responsive-button::before,
.close-responsive-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: white;
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-responsive-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-social-menu ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
    list-style: none;
    padding: 0;
}

.mobile-social-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.mobile-social-menu a:hover {
    color: #ccc;
}

.mobile-social-menu .icon {
    width: 24px;
    height: 24px;
    fill: white;
}

.mobile-social-menu span {
    font-weight: 300;
    letter-spacing: 1px;
}

.js-social-responsive-nav.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-nav {
        padding: 15px;
        position: relative;
    }
    
    .header-title {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .social-links {
        display: none;
    }
    
    .social-burger-click-area {
        display: block !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 999 !important;
    }
    
    .container {
        margin-top: 70px;
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .message-form {
        padding: 20px;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
}

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

.message {
    animation: fadeIn 0.5s ease-out;
}

/* Styles pour iframe */
body.iframe-mode {
    padding: 0;
    background: transparent;
}

body.iframe-mode .container {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}