/* ========================================
   VARIABLES CSS ET CONFIGURATION GÉNÉRALE
   ======================================== */
:root {
    --primary-yellow: #F6C52F;
    --dark-blue: #061B2D;
    --darker-blue: #061B2D;
    --light-blue: #0f3460;
    --white: #ffffff;
    --light-gray: #e0e0e0;
    --font-primary: 'Verdana', sans-serif;
    --font-handwritten: 'Brush Script MT', cursive;
}

/* ========================================
   RESET ET STYLES DE BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-blue);
    color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================
   LAYOUT PRINCIPAL ET CONTAINERS
   ======================================== */
.login-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.intro-container {
    max-width: 1100px;
    margin: auto;
}

.card {
    width: 100%;
    background: rgba(30, 103, 166, 0.18);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.card-body {
    padding: 2rem;
}

.form-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    width: 100%;
    max-width: none;
}

/* ========================================
   HEADER ET NAVIGATION
   ======================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 20px 30px;
}

.header .logo-section {
    margin-bottom: 0;
}

.logo-section {
    margin-bottom: 3rem;
}

.logo-image {
    max-height: 150px;
    width: auto;
    margin-bottom: 0.5rem;
}

.logo-subtitle {
    font-family: var(--font-handwritten);
    font-size: 1.2rem;
    color: var(--white);
    font-style: italic;
    margin-top: -0.5rem;
}

/* Masquer la navigation Bootstrap par défaut */
.navbar {
    display: none;
}

/* Ajuster le main container */
main.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    align-items: center;
}

/* ========================================
   PROGRESS STEPS
   ======================================== */
.progress-steps {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    opacity: 0.5;
    gap: 8px;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.5;
}

.step-number {
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    color: var(--primary-yellow);
}

.step.completed .step-number {
    color: var(--primary-yellow);
}

.step-title {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 500;
    line-height: 1.2;
}

/* ========================================
   TYPOGRAPHIE ET TEXTES
   ======================================== */
.instruction-text {
    max-width: 850px;
    margin: 0 auto;
}

.instruction-text h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--primary-yellow);
    text-align: center;
}

.intro-title {
    color: var(--primary-yellow);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.intro-text p, .welcome-message h4 {
    color: var(--white);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.intro-separator {
    border: none;
    border-top: 1px solid rgba(255, 215, 0, 0.4);
    margin: 1rem 0 1.2rem;
}

.intro-link {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.intro-continue {
    display: inline-block;
}

.form-title {
    font-weight: bold;
    color: var(--primary-yellow);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.form-subtitle {
    color: rgb(255 215 1);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.form-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ========================================
   BLOCS DE CONNEXION
   ======================================== */
.login-blocks-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 3rem;
    justify-content: center;
}

.login-block {
    flex: 0 1 calc(50% - 1rem);
    min-width: 400px;
    background: rgba(30, 103, 166, 0.18);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-blocks-container:has(.login-block:only-child) .login-block {
    flex: 0 1 500px;
    max-width: 500px;
}

.login-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.block-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
}

.block-instruction {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

/* ========================================
   FORMULAIRES ET CHAMPS DE SAISIE
   ======================================== */
.login-form {
    width: 100%;
}

.form-control {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--white);
    color: var(--dark-blue);
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.form-control::placeholder {
    color: #999;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.form-label {
    display: block;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-label.required::after {
    content: '*';
    color: #dc3545;
    margin-left: 2px;
}

/* Form Floating Styles */
.form-floating {
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #000;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    background: rgb(255, 255, 255);
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    color: #000;
}

.form-floating > .form-control::placeholder {
    color: transparent;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: rgba(0, 0, 0, 0.7);
}

.form-floating > .form-control[required] ~ label::after,
.form-floating > .form-select[required] ~ label::after {
    content: '*';
    color: #dc3545;
    margin-left: 0px;
}

.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-select ~ label::after {
    position: initial;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: rgba(0, 0, 0, 0.7);
}

.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

/* Textarea specific */
.form-floating > textarea.form-control {
    height: auto;
    min-height: calc(3.5rem + 2px);
}

.form-floating > textarea.form-control:focus,
.form-floating > textarea.form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

/* ========================================
   BOUTONS
   ======================================== */
.btn-login {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-login:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-continue {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-continue:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-back {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-back:hover {
    background: var(--white);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Personnaliser la couleur du bouton primary */
.btn-primary {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark-blue);
}

.btn-primary:hover {
    background-color: #E6B42A;
    border-color: #E6B42A;
    color: var(--dark-blue);
}

.btn-primary:focus {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark-blue);
    box-shadow: 0 0 0 0.25rem rgba(246, 197, 47, 0.25);
}

.btn-primary:active {
    background-color: #D4A326;
    border-color: #D4A326;
    color: var(--dark-blue);
}

/* Neutraliser le style Bootstrap pour .btn:first-child:active (boutons en groupe) */
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    box-shadow: none !important;
    transform: none !important;
}

/* Radius par défaut des boutons */
.btn,
.btn-sm,
.btn-lg {
    border-radius: 50px !important;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 0;
    gap: 1rem;
    max-width: 900px;
    padding: 0 1rem;
}

/* ========================================
   RADIOS ET CHECKBOXES
   ======================================== */
/* Radios custom */
.custom-radio {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    user-select: none;
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-radio .radio-ui {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.custom-radio .radio-ui::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.25s ease;
}

.custom-radio .radio-text {
    line-height: 1.5;
    color: var(--white);
    opacity: 0.9;
}

.custom-radio:hover .radio-ui {
    border-color: var(--primary-yellow);
}

.custom-radio input[type="radio"]:focus + .radio-ui {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
}

.custom-radio input[type="radio"]:checked + .radio-ui {
    border-color: var(--primary-yellow);
}

.custom-radio input[type="radio"]:checked + .radio-ui::after {
    background: var(--primary-yellow);
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.radio-label:hover {
    color: var(--primary-yellow);
}

.visually-hidden-input {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
  }
  

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-yellow);
    background: var(--primary-yellow);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--dark-blue);
    border-radius: 50%;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.checkbox-column {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.checkbox-label {
    color: var(--white);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.checkbox-custom::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid var(--dark-blue);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease;
    position: absolute;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    opacity: 1;
    transform: rotate(45deg) scale(1.1);
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
    border-color: var(--primary-yellow);
}

.checkbox-label span:not(.checkbox-custom) {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Animation de sélection */
.checkbox-label input[type="checkbox"]:checked ~ span:not(.checkbox-custom) {
    color: var(--primary-yellow);
    font-weight: 600;
}

/* ========================================
   UPLOAD DE FICHIERS
   ======================================== */
.file-upload {
    position: relative;
    display: flex;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(201, 201, 201, 0.1);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 200px;
    width: 200px;
}

.file-upload-label:hover {
    border-color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-yellow);
}

.file-upload-label i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.file-upload-label span {
    font-size: 1rem;
    font-weight: 500;
}

.file-upload.has-error .file-upload-label {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.file-upload .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* File preview */
.file-preview {
    position: relative;
    display: inline-block;
    text-align: center;
    width: 200px;
    height: 200px;
}

.preview-image {
    width: 100%;
    height: auto;
}

.preview-image-container {
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    align-items: center;
    overflow: hidden;
    display: flex
;
}

.btn-remove-preview {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
}


.btn-remove-preview:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Preview actions */
.preview-actions {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    gap: 4px;
}

.btn-crop-preview {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-crop-preview:hover {
    background: #ffed4e;
    transform: scale(1.1);
}

/* ========================================
   MODAL DE CROP
   ======================================== */
.crop-container {
    text-align: center;
    margin-bottom: 1rem;
}

#cropCanvas {
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.crop-controls {
    text-align: center;
}

.crop-controls .btn {
    margin: 0 0.5rem;
}

/* ========================================
   SOUHAITS DE RENDEZ-VOUS
   ======================================== */
.attention-message {
    background: rgba(30, 103, 166, 0.8);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.instructions {
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.instructions p {
    margin-bottom: 0.5rem;
}

.instructions a {
    color: var(--primary-yellow);
    text-decoration: none;
}

.instructions a:hover {
    text-decoration: underline;
}

.souhaits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.souhait-block {
    background: rgba(30, 103, 166, 0.3);
    border: none;
    border-radius: 12px;
    padding: 0.6rem;
    min-height: 200px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;

    display: flex;
    flex-direction: column;
}

.souhait-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* État sélectionné des souhaits: bordure jaune, assombrissement + check centré */
.souhait-block.selected {
    border: 2px solid var(--primary-yellow);
    background: rgba(4, 0, 52, 0.1);
}

.souhait-block.selected::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
}

.souhait-block.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--primary-yellow);
    color: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.souhait-block.empty {
    border: 2px dashed rgba(30, 103, 166, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Header regroupé pour les souhaits */
.souhait-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* Gros numéro de priorité */
.souhait-header .priority-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: var(--dark-blue);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -10px;
    top: -10px;
}

/* Regroupe photo + titres */
.souhait-header-main {
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: center;
    gap: 16px;
}

.souhait-photo-thumb {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    overflow: hidden;
}

.souhait-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.souhait-titles .entreprise-label {
    color: var(--primary-yellow);
    font-size: 1rem;
    font-weight: normal;
}

.souhait-titles .contact-name {
    color: var(--white);
    font-size: 1rem;
    font-weight: normal;
    line-height: 1;
}

.souhait-titles .fonction-label {
    color: rgba(255,255,255,.75);
    font-size: 0.9rem;
}

/* Actions à droite (3 points) */
.souhait-actions {
    color: rgba(255,255,255,.85);
    font-size: 1.5rem;
}

/* Textarea style grand comme la maquette */
.souhait-block .form-floating > .form-control {
    min-height: 150px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1;
}

.souhait-block .form-floating > label {
    font-size: 1rem;
}

/* Conteneur de la card plus aéré */
.souhait-block {
    padding: 1rem;
}

.souhait-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.priority-number {
    width: 35px;
    height: 35px;
    background: var(--primary-yellow);
    color: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: -10px;
    top: -10px;
}

.souhait-actions {
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}

.souhait-content {
    flex: 1;
    display: flex;
    align-items: flex-end;
}
.souhait-block.empty .souhait-content {
    align-items: center;
}

.entreprise-label {
    color: var(--primary-yellow);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-name {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.fonction-label {
    color: var(--white);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.add-wish {
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.add-wish i {
    font-size: 2rem;
    color: var(--primary-yellow);
}

.add-wish span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Photo dans les souhaits */
.souhait-photo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    height: 160px;
    margin-bottom: 0.75rem;
}

.souhait-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Assombrissement + check pour souhait selected (reuse des overlays) */
.souhait-block.selected .souhait-photo img {
    filter: brightness(0.3) saturate(0.5);
}

.souhait-block.selected .souhait-photo::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--primary-yellow);
    color: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* ========================================
   MODAL DE SÉLECTION DES SOUHAITS
   ======================================== */
.modal-content {
    background: var(--dark-blue);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

.modal-header {
    border-bottom: none;
}

.modal-title {
    color: var(--primary-yellow);
    font-weight: bold;
}

.modal-footer {
    border-top: none;
    justify-content: center;
    gap: 0.5rem;
}

.btn-close {
    filter: invert(1);
}

/* Grille des contacts dans la modal */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    padding: 1rem;
}

.contact-card {
    background: rgba(30, 103, 166, 0.3);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    user-select: none;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-yellow);
    cursor: pointer;
}

.contact-card:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-card.selected {
    border-color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
}

.contact-card.selected:hover {
    transform: none;
    box-shadow: none;
}

.contact-card.already-selected {
    border-color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
    opacity: 0.7;
}

.contact-card.already-selected:hover {
    transform: none;
    box-shadow: none;
}

.contact-card.modal-selected {
    border-color: var(--primary-yellow);
    background: rgba(4, 0, 52, 0.1);
}

.contact-card.modal-selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Style pour les cartes sélectionnées - image assombrie */
.contact-card.modal-selected .contact-photo img {
    filter: brightness(0.3) saturate(0.5);
}

.contact-photo {
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.check-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.check-overlay i {
    color: var(--primary-yellow);
    font-size: 44px;
    font-weight: bold;
}

.modal-check-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.modal-check-overlay i {
    color: var(--primary-yellow);
    font-size: 44px;
    font-weight: bold;
}

.contact-info {
    margin-bottom: 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info .entreprise-label {
    color: var(--primary-yellow);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info .contact-name {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.contact-info .fonction-label {
    color: var(--white);
    font-size: 0.7rem;
    opacity: 0.8;
}

.validate-btn {
    background: var(--white);
    color: var(--dark-blue);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.validate-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    transform: translateY(-1px);
}

/* Bouton désélectionner */
.validate-btn.btn-success {
    background: var(--primary-yellow);
}

.validate-btn.btn-success:hover {
    background: var(--primary-yellow);
    transform: translateY(-1px);
}

.validate-btn.btn-warning {
    background: #ffc107;
    color: var(--dark-blue);
}

.validate-btn.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

/* Boutons de la modal */
.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
    background: transparent;
}

.btn-outline-warning:hover {
    color: var(--dark-blue);
    background: #ffc107;
    border-color: #ffc107;
}

.btn-info {
    background: #0f4069;
    color: white;
    border: none;
    cursor: default;
}

.btn-info:hover {
    background: #0f4069;
    color: white;
}

/* Bouton Confirmer (selection) */
.btn-confirm-selection {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    border: none;
    border-radius: 50px;
}

.btn-confirm-selection:hover, .btn:first-child:active {
    background: #ffea7c;
    color: var(--dark-blue);
}

/* Focus/Active states */
.validate-btn:focus,
.btn-confirm-selection:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.35);
}

.validate-btn:active,
.btn-confirm-selection:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

/* ========================================
   DRAG AND DROP
   ======================================== */
.souhait-block[draggable="true"] {
    cursor: move;
}

.souhait-block[draggable="true"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.souhait-block.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.souhait-block.drag-over {
    border: 2px dashed var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
}

/* Amélioration des icônes de drag */
.souhait-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: absolute;
    right: 0;
    top: 0;
}

.souhait-actions i {
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.25rem;
    border-radius: 4px;
}

.souhait-actions i:hover {
    color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
}

.drag-handle {
    cursor: move !important;
}

.drag-handle:hover {
    color: var(--primary-yellow) !important;
}

/* ========================================
   RÉCAPITULATIF
   ======================================== */
.recap-souhaits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.recap-souhait-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(233, 236, 239, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.recap-souhait-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.recap-souhait-number {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.recap-souhait-photo-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recap-souhait-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.recap-souhait-info {
    flex: 1;
}

.recap-souhait-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-yellow);
    font-size: 1.1rem;
}

.recap-contact-info {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.recap-souhait-motivation {
    background: rgba(255, 255, 255, 0.039);
    padding: 0.75rem;
    border-radius: 6px;
}

.recap-souhait-motivation p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Styles pour les sous-sections du récapitulatif */
.recap-subsection {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.recap-subsection h4 {
    color: var(--primary-yellow);
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.recap-subsection p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Styles pour la photo de profil dans le récapitulatif */
.recap-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.recap-profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-yellow);
}

.recap-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recap-profile-info {
    flex: 1;
}

.recap-profile-info p {
    margin: 0.25rem 0;
}

/* Styles pour le logo de l'entreprise dans le récapitulatif */
.recap-company-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recap-company-logo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-yellow);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recap-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.recap-company-info {
    flex: 1;
}

.recap-company-info p {
    margin: 0.25rem 0;
}

/* ========================================
   MESSAGES ET ALERTES
   ======================================== */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message i {
    font-size: 4rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.6;
}

/* ========================================
   PAGES LÉGALES
   ======================================== */
.legal-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h3 {
    color: var(--primary-yellow);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.legal-section p {
    color: var(--white);
    line-height: 1.6;
    opacity: 0.9;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    margin-top: auto;
    padding: 20px 30px;
}

.footer-link {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.footer-link:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.separator {
    color: var(--light-gray);
    margin: 0 1rem;
}

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

.login-block {
    animation: fadeInUp 0.6s ease-out;
}

.login-block:nth-child(2) {
    animation-delay: 0.2s;
}

/* Effet de brillance sur les étoiles */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

body::before {
    animation: twinkle 4s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .logo-image {
        max-height: 60px;
    }
    
    .login-blocks-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .login-block {
        padding: 1.5rem;
    }
    
    .btn-login {
        width: 100%;
    }
    
    .instruction-text p {
        font-size: 1rem;
    }
    
    .header {
        gap: 1rem;
        padding: 16px 20px;
    }
    
    .progress-steps {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .step {
        gap: 6px;
    }
    
    .step-number {
        font-size: 3rem;
        margin-bottom: 0;
    }
    
    .step-title {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .progress-steps {
        flex-direction: row;
        gap: 0.75rem;
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .step {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        gap: 8px;
        justify-content: flex-start;
    }
    
    .step-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-title {
        text-align: left;
        max-width: none;
    }
    
    .card-body {
        padding: 2rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-continue,
    .btn-back {
        width: 100%;
        max-width: none;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-height: 50px;
    }
    
    .logo-subtitle {
        font-size: 1rem;
    }
    
    .login-block {
        padding: 1rem;
    }
    
    .block-title {
        font-size: 1rem;
    }
    
    .block-instruction {
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .step-title {
        font-size: 0.8rem;
    }
    
    .progress-steps {
        justify-content: space-between;
    }
    
    .step {
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }
    
    .step-number {
        font-size: 2rem;
    }
    
    .step-title {
        font-size: 0.75rem;
        text-align: left;
    }
    
    .step-title br { 
        display: none; 
    }
}
