/* Variables */
:root {
    --primary-color: #2C5282;
    --primary-dark: #1A365D;
    --primary-light: #4299E1;
    --accent-color: #48BB78;
    --background-dark: #1A202C;
    --background-light: #F7FAFC;
    --text-dark: #2D3748;
    --text-light: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --red: #FF0000;
    --orange: #FF7F00;
    --yellow: #FFDD00;
    --green: #00AA00;
    --blue: #0088FF;
    --brown: #8B4513;
    --black: #000000;
    --white: #FFFFFF;
    --primary-gradient: linear-gradient(135deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue));
    --text-color: #2D3748;
    --background-color: #F7FAFC;
    --gray-100: #F7FAFC;
    --gray-200: #EDF2F7;
    --gray-300: #E2E8F0;
    --gray-400: #CBD5E0;
    --gray-500: #A0AEC0;
    --gray-600: #718096;
    --gray-700: #4A5568;
    --gray-800: #2D3748;
    --gray-900: #1A202C;
}

.back-button {
    position: absolute;
    top: 15px;    /* ajuster la hauteur */
    left: 15px;   /* collé à gauche */
    background-color: #6366f1; /* Indigo 600 */
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.back-button:hover {
    background-color: #4f46e5; /* Indigo 700 */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Reset & Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: white;
    background-color: black;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.header {
    background-color: black;
    box-shadow: 0 2px 15px rgba(172, 172, 172, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    height: 50px;
}

.nav__list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav__list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    overflow: hidden;
}

.nav__list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.nav__list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: skewY(-5deg);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease-out;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: scaleIn 0.8s ease-out;
    transform-origin: center;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

.stat-item::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
}

.stat-item p {
    color: var(--text-light);
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

/* Values Grid */
.values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: rgba(218, 218, 218, 0.1);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(134, 134, 134, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: width 0.4s ease;
    width: 0;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.value-card:hover::before {
    width: 100%;
}

.value-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Companies Grid */
.companies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.company-card {
    background: rgba(218, 218, 218, 0.1);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(168, 168, 168, 0.1);
    border-left: 4px solid rgba(218, 218, 218, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.company-card:nth-child(2) {
    border-left: 4px solid var(--accent-color);
}

.company-card:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: -10px 10px 20px rgba(175, 175, 175, 0.1);
}

.company-card h3 {
    color: rgba(218, 218, 218, 0.1);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.company-card p {
    color: rgba(218, 218, 218, 0.1);
    margin-bottom: 1.5rem;
}

.discover-btn {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.discover-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: var(--primary-dark);
}

/* Careers Section */
.careers__grid {
    max-width: 800px;
    margin: 0 auto;
}

.job-card {
    background: rgba(218, 218, 218, 0.1);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(165, 165, 165, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: width 0.4s ease;
    width: 0;
}

.job-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(83, 83, 83, 0.1);
}

.job-card:hover::before {
    width: 100%;
}

.job-list {
    list-style: none;
    margin: 1.5rem 0;
}

.job-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.job-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.job-list li:hover {
    padding-left: 2rem;
    color: var(--primary-color);
}

.job-list li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.job-list li:last-child {
    border-bottom: none;
}

/* Button */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: rgba(209, 209, 209, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: var(--gradient-primary);
    transition: transform 0.6s ease;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    z-index: -1;
}

.button:hover {
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer__links ul {
    list-style: none;
}

.footer__links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--white);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }

    .hero h1,
    .hero__subtitle {
        animation: fadeInUp 0.6s ease-out;
    }

    .stats {
        background: rgba(255, 255, 255, 0.1);
        padding: 1.5rem;
    }

    .stat-item {
        animation-duration: 0.4s;
    }

    .value-card:hover,
    .company-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .section__title {
        font-size: 2rem;
    }

    .button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .job-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .job-list li:hover {
        padding-left: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 60px 0;
    }
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Job Selection */
.job-selection {
    margin-bottom: 2rem;
}

.job-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-select:hover {
    border-color: var(--primary-color);
}

.job-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.job-item {
    cursor: pointer;
}

.job-item.selected {
    color: var(--primary-color);
    font-weight: 500;
    padding-left: 2rem;
}

.job-item.selected::before {
    opacity: 1;
    transform: translateX(0);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Job Options */
.job-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.job-option {
    position: relative;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.job-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.job-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-dark);
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.job-radio:checked + .job-label {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.job-radio:checked + .job-label .checkmark {
    border-color: var(--text-light);
}

.job-radio:checked + .job-label .checkmark::after {
    transform: translate(-50%, -50%) scale(1);
    background: var(--text-light);
}

.job-label:hover {
    transform: translateX(5px);
    background: var(--gray-100);
}

.job-radio:focus + .job-label {
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

@media (max-width: 768px) {
    .job-label {
        padding: 0.8rem 1.2rem;
    }

    .checkmark {
        width: 20px;
        height: 20px;
    }

    .checkmark::after {
        width: 10px;
        height: 10px;
    }
} 