/* ================================================= */
/* 1. STYLES GLOBAUX                                */
/* ================================================= */

* {
    font-family: 'Alexandria', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #F8F6FC; /* Fond blanc très légèrement teinté de lavande */
    margin: 0;
    padding: 32px 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2D233D; /* Texte général harmonisé */
}

header, aside, section, footer, #map {
    width: 100%;
}

section, footer {
    border: 2px solid #E2D1F0; /* Bordure douce dans les ton violets */
    border-radius: 8px;
    padding: 15px;
    margin: 20px;
    background-color: #F0E5F7; /* Violet pastel très clair et professionnel */
}

footer a {
    text-decoration: none;
    color: #8D0DD9;
    font-weight: bold;
}

/* Bouton retour en haut stylisé */
#btn-retour-haut {
    display: inline-block;
    padding: 10px 20px;
    background-color: #EADDF5;
    color: #40126E;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

#btn-retour-haut:hover {
    color: #ffffff;
    background-color: #CC8DF2; /* Utilisation de ton violet de base */
}

h3 {
    color: #40126E; /* Violet profond pour les titres */
    text-align: center;
}

span {
    font-weight: bold;
}

/* --- EFFET DE ZOOM AU SURVOL SUR LES IMAGES --- */
.images-flex img, 
.job-image-box img,
.logo {
    transition: transform 0.3s ease;
}

.images-flex img:hover, 
.job-image-box img:hover {
    transform: scale(1.05);
}

.logo:hover {
    transform: scale(1.15); /* Légèrement réduit à 1.15 pour éviter qu'il ne devienne trop grand */
}

/* ================================================= */
/* 2. NAVIGATION ET LIENS                            */
/* ================================================= */

header nav ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    gap: 20px;
    border-radius: 6px;
}

#menu-principale a,
.menu-secondaire a {
    color: #40126E;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    background-color: #EADDF5;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#menu-principale a:hover,
.menu-secondaire a:hover {
    color: #ffffff;
    background-color: #CC8DF2; /* Violet de base au survol */
}


/* ================================================= */
/* 3. PAGE D'ACCUEIL & CV                            */
/* ================================================= */

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

header .photo-cv {
    width: 180px;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
}

.contenu-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

#subtitle {
    color: #A290B0;
    font-size: 1em;
    font-weight: 800;
}

#description {
    text-align: left;
    font-style: italic;
}

/* Images du CV centrées */
.competence {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.logo {
    display: inline;
    width: 70px;
    height: auto;
    margin: 0 auto;
}

/* Vidéo pitch mise à la bonne taille */
#pitch {
    width: 100%;
    max-width: 800px;
    height: 450px; /* Donne une vraie hauteur correcte au lecteur */
    border: 0;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* ================================================= */
/* 3. PAGE DU PORTFOLIO (Flexbox 2 colonnes)         */
/* ================================================= */

div h1 {
    color: #40126E;
}

#map {
    width: 100%;
    max-width: 800px;
    margin: auto;
    border-radius: 8px;
}

#image-cliquable {
    height: auto;
    margin: auto;
}

#dessins, #design, #logos {
    display: flex;
    flex-direction: column;
}

#robot {
    background-color: white;
}

/* Le groupe d'images passe en Flexbox sur 2 colonnes */
.images-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Taille de chaque image : 2 par ligne, hauteur propre de 500px */
.images-flex img {
    flex: 0 0 calc(50% - 10px);
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}


/* ================================================= */
/* 4. PAGE DES MÉTIERS (Jobs Page - Hauteurs égales) */
/* ================================================= */

.video-container {
    width: 100%;
    max-width: 800px; /* Adapte la largeur max selon ton design */
    margin: 20px auto;
}

.video-container video {
    width: 100%;       /* Prend toute la largeur du conteneur aux normes CSS3 */
    height: auto;      /* Conserve les proportions d'origine de la vidéo */
    border-radius: 8px;
    display: block;
}

iframe {
    border-radius: 8px; /* Bords arrondis pour le style */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ================================================= */
/* 5. PAGE DES MÉTIERS (Jobs Page - Hauteurs égales) */
/* ================================================= */

.jobs-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.job-card {
    display: flex;
    flex: 0 0 31%;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #E2D1F0;
    border-radius: 12px;
    padding: 20px;
    background: rgba(204, 141, 242, 0.12); /* Utilisation subtile de ton violet de base en fond transparent */
}

.job-image-box {
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.job-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-card h2 {
    text-align: center;
    margin: 10px 0;
    color: #40126E;
}

.job-box {
    margin-bottom: 15px;
}

.job-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-box li {
    margin-bottom: 6px;
}

#story {
    background-color: white;
}

/* ================================================= */
/* 6. PAGE CONTACT (Colonnes équilibrées)            */
/* ================================================= */

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

.contact-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #40126E;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.contact-form-section,
.contact-info-section {
    flex: 1;
    min-width: 0;
}

.separator {
    width: 2px;
    background-color: #CC8DF2; /* Rappel de ton violet de base pour le trait de séparation */
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #40126E;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #D1BCE3;
    background-color: #FAFAFD;
    width: 100%;
}

form button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #EADDF5;
    color: #40126E;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover {
    color: #ffffff;
    background-color: #CC8DF2; /* Violet de base au survol */
}

.info-item {
    font-weight: bold;
    color: #8D0DD9;
    gap: 5px;
    margin-bottom: 15px;
}