/* 
  MARA-Éducation - Design System 
  Couleurs basées sur le site original (Bleu marine et Or)
*/
:root {
    --brand-blue-900: #0a192f;
    --brand-blue-800: #112240;
    --brand-blue-500: #1d4ed8;
    --brand-gold-400: #fcd34d;
    --brand-gold-500: #d4af37;
    --brand-gold-600: #b49126;
    
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    
    --font-family: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.header-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

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

.logo img {
    height: 115px;
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-blue-900);
    text-align: center;
    padding: 160px 20px 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.95)), url('Entree_mara.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.badge {
    display: inline-block;
    color: var(--brand-gold-500);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 8px;
    margin-bottom: 24px;
}

.hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    font-weight: 500;
    color: var(--brand-gold-400);
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    position: relative;
    margin-top: -60px;
    z-index: 20;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    background: white;
    box-shadow: 0 25px 50px -12px rgba(10, 25, 47, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

/* Contact Info (Left) */
.contact-info {
    background-color: var(--brand-gold-500);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-content h3 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin-bottom: 30px;
}

.info-content h3 span {
    font-weight: 500;
}

.divider {
    width: 48px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-block {
    display: flex;
    flex-direction: column;
}

.info-label {
    color: var(--brand-blue-900);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

.info-value {
    color: white;
    font-size: 1.1rem;
    font-weight: 300;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value:hover {
    color: var(--brand-blue-900);
}

.info-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 300;
}

.info-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Form (Right) */
.contact-form-container {
    padding: 60px;
    background-color: white;
}

.form-header {
    margin-bottom: 40px;
}

.form-label {
    display: block;
    color: var(--brand-gold-500);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

.form-header h2 {
    color: var(--brand-blue-900);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    color: var(--brand-blue-900);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #cbd5e1;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--brand-gold-500);
}

.form-submit {
    margin-top: 10px;
}

.form-submit button {
    background-color: var(--brand-blue-900);
    color: white;
    border: none;
    padding: 16px 40px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-submit button:hover {
    background-color: var(--brand-gold-500);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--brand-blue-900);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Values Section */
.values-section {
    padding: 100px 20px;
    background-color: var(--bg-main);
    position: relative;
    z-index: 10;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
}

.values-header {
    text-align: center;
    margin-bottom: 80px;
}

.values-header h2 {
    font-size: 2.5rem;
    color: var(--brand-blue-900);
    font-weight: 300;
    margin-top: 10px;
    letter-spacing: 0.05em;
}

.rosette-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.rosette {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rosette-bg {
    position: absolute;
    inset: 40px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    /* Dodecagon clip path */
    clip-path: polygon(50% 0%, 75% 6.7%, 93.3% 25%, 100% 50%, 93.3% 75%, 75% 93.3%, 50% 100%, 25% 93.3%, 6.7% 75%, 0% 50%, 6.7% 25%, 25% 6.7%);
    transition: all 0.5s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.value-item {
    position: absolute;
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* distribute items in circle: 360 / 12 = 30deg */
    transform: rotate(calc(var(--i) * 30deg)) translate(220px) rotate(calc(var(--i) * -30deg));
    z-index: 2;
    border: 2px solid transparent;
}

.value-item:hover {
    transform: rotate(calc(var(--i) * 30deg)) translate(220px) rotate(calc(var(--i) * -30deg)) scale(1.15);
    border-color: var(--brand-gold-500);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.value-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-blue-900);
    padding: 5px;
    word-break: break-word;
}

.rosette-center {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--brand-blue-900);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 5;
    box-shadow: 0 0 30px rgba(10, 25, 47, 0.2);
    border: 4px solid var(--brand-gold-500);
    transition: all 0.3s ease;
}

.rosette-center h4 {
    color: var(--brand-gold-500);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.rosette-center p {
    color: white;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        margin-top: -40px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 40px 20px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .rosette {
        width: 300px;
        height: 300px;
    }
    .rosette-bg {
        inset: 20px;
    }
    .value-item {
        width: 70px;
        height: 70px;
        transform: rotate(calc(var(--i) * 30deg)) translate(150px) rotate(calc(var(--i) * -30deg));
    }
    .value-item:hover {
        transform: rotate(calc(var(--i) * 30deg)) translate(150px) rotate(calc(var(--i) * -30deg)) scale(1.15);
    }
    .value-item span {
        font-size: 0.65rem;
    }
    .rosette-center {
        width: 150px;
        height: 150px;
    }
    .rosette-center h4 {
        font-size: 1rem;
    }
    .rosette-center p {
        font-size: 0.75rem;
    }
}
