@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap');

:root {
    --primary-color: #e63946;
    --secondary-color: #a8dadc;
    --text-light: #f1faee;
    --text-secondary: #a8dadc;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #111;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #ff4d5d !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.nav-btn::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-toggle:hover .bar {
    background: #ff0000;
    transition: background 0.3s ease;
}



/* PDM Panel Hero Section */
.pdm-panel-hero {
    position: relative;
    width: 100vw;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
    padding-top: 70px;
}

.pdm-panel-panels {
    display: flex;
    gap: 2vw;
    width: 80vw;
    max-width: 1200px;
    justify-content: center;
    align-items: stretch;
    z-index: 3;
}

.pdm-panel {
    flex: 1 1 0;
    min-width: 180px;
    max-width: 400px;
    height: 68vh;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: #222;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Informations des patrons sur les panels - affichage au hover */
.pdm-panel.panel-1::after {
    content: 'Marcus Kurt\A Patron';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    white-space: pre-line;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    z-index: 10;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.pdm-panel.panel-3::after {
    content: 'Saint Honoré\A Co-Patron';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    white-space: pre-line;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    z-index: 10;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Affichage au hover */
.pdm-panel:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Affichage quand la classe active est ajoutée */
.pdm-panel.active::after {
    opacity: 1;
    transform: translateY(0);
}

.pdm-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    transition: filter 0.4s;
    position: relative;
    z-index: 2;
}

.pdm-panel:hover img,
.pdm-panel.active img {
    filter: grayscale(0) contrast(1.08) saturate(1.2);
}

.pdm-panel:hover,
.pdm-panel.active {
    transform: scale(1.06) translateY(-10px);
    z-index: 10;
    box-shadow: 0 8px 48px 0 rgba(230,57,70,0.18), 0 2px 12px 0 rgba(255,255,255,0.10);
}

.pdm-panel.panel-2 {
    background: linear-gradient(135deg, #e63946 60%, #ff4d5d 100%);
    box-shadow: 0 8px 48px 0 rgba(230,57,70,0.28), 0 2px 12px 0 rgba(255,255,255,0.10);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdm-panel.panel-2 img {
    filter: grayscale(0) contrast(1.08) saturate(1.2);
    opacity: 0.8;
}

.pdm-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230,57,70,0.85) 60%, rgba(255,77,93,0.7) 100%);
    z-index: 4;
}

.pdm-center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pdm-btn {
    background: #fff;
    color: #e63946;
    border: none;
    border-radius: 32px;
    padding: 1.1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 24px 0 rgba(230,57,70,0.18);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.pdm-btn i {
    font-size: 1.3rem;
}

.pdm-btn:hover {
    background: #e63946;
    color: #fff;
    transform: scale(1.06);
}

/* Tablettes et petits écrans */
@media (max-width: 1100px) {
    .pdm-panel-hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .pdm-panel-panels {
        gap: 1.5vw;
        width: 90vw;
    }
    
    .pdm-panel {
        min-width: 140px;
        height: 50vh;
        max-width: 280px;
    }
    
    .pdm-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Tablettes en mode portrait */
@media (max-width: 768px) {
    .pdm-panel-hero {
        min-height: 70vh;
        padding: 1.5rem 0;
    }
    
    .pdm-panel-panels {
        gap: 2vw;
        width: 95vw;
    }
    
    .pdm-panel {
        min-width: 120px;
        height: 45vh;
        max-width: 240px;
    }
    
    .pdm-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
    
    .pdm-btn i {
        font-size: 1.1rem;
    }
}

/* Téléphones en mode paysage */
@media (max-width: 600px) {
    .pdm-panel-hero {
        min-height: 60vh;
        padding: 1rem 0;
    }
    
    .pdm-panel-panels {
        gap: 1.5vw;
        width: 98vw;
    }
    
    .pdm-panel {
        min-width: 100px;
        height: 40vh;
        max-width: 200px;
    }
    
    .pdm-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .pdm-btn i {
        font-size: 1rem;
    }
}

/* Téléphones en mode portrait */
@media (max-width: 480px) {
    .pdm-panel-hero {
        min-height: 100vh;
        padding: 0.3rem 0 1rem 0;
    }
    
    .pdm-panel-panels {
        flex-direction: column;
        gap: 1.5rem;
        width: 95vw;
        align-items: center;
    }
    
    .pdm-panel {
        width: 90vw;
        max-width: 350px;
        height: 25vh;
        min-height: 200px;
    }
    
    .pdm-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .pdm-btn i {
        font-size: 1.1rem;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .pdm-panel-hero {
        min-height: 100vh;
        padding: 0.5rem 0;
    }
    
    .pdm-panel-panels {
        gap: 1rem;
        width: 98vw;
    }
    
    .pdm-panel {
        width: 95vw;
        max-width: 320px;
        height: 22vh;
        min-height: 180px;
    }
    
    .pdm-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }
    
    .pdm-btn i {
        font-size: 1rem;
    }
}

/* Navigation Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo img {
        height: 45px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(230, 57, 70, 0.1);
        color: var(--primary-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding-top: 2rem;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 360px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    .nav-menu {
        top: 55px;
        height: calc(100vh - 55px);
        padding-top: 1.5rem;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    
    .bar {
        width: 22px;
        height: 2.5px;
    }
}

/* Footer */
.footer {
    text-align: center;
    color: #888;
    font-size: 0.98rem;
    padding: 2.5rem 0 1.2rem 0;
    background: transparent;
}

/* Register */
.register-container {
    height: 100vh;
    display: flex;
    align-items: stretch;
    background: #111;
    overflow: hidden;
}

.register-image {
    flex: 1;
    height: 100vh;
    background: url('Assets/Img/form.png') center center/cover no-repeat, url('Assets/Img/Hero_form.jpg') center center/cover no-repeat;
    position: relative;
}

.register-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}

.register-form {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    overflow-y: auto;
    max-height: 100vh;
}

.register-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
}

.register-subtitle {
    font-size: 1rem;
    color: #888;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.register-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.register-btn:hover {
    background: #ff4d5d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.login-link {
    text-align: center;
    margin-top: 2rem;
    color: #888;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.message.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.back-btn:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .register-container {
        flex-direction: column;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
        padding-top: 60px;
    }
    .register-image {
        display: none;
    }
    .register-form {
        min-height: unset;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        padding: 2rem 1rem 2rem 1rem;
        box-shadow: 0 2px 16px rgba(0,0,0,0.15);
        background: #181818;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .register-container {
        min-height: 100vh;
        justify-content: center;
        align-items: center;
        padding-top: 40px;
    }
    .register-form {
        min-height: unset;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        box-shadow: 0 2px 16px rgba(0,0,0,0.15);
        background: #181818;
        border-radius: 12px;
    }
}

/* Bouton déconnexion : texte rouge par défaut, texte blanc au hover */
.user-dropdown-menu a[style*="color:#e63946"] {
    color: #e63946 !important;
    transition: color 0.2s;
}
.user-dropdown-menu a[style*="color:#e63946"]:hover {
    color: #fff !important;
    background: #e63946 !important;
}

.user-dropdown-menu .logout-link {
    color: #e63946 !important;
    transition: color 0.2s, background 0.2s;
}
.user-dropdown-menu .logout-link:hover {
    color: #fff !important;
    background: #e63946 !important;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.2em;
}
.form-checkbox input[type="checkbox"] {
    accent-color: #e63946;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    margin-right: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(230,57,70,0.08);
    outline: none;
    transition: box-shadow 0.2s;
}
.form-checkbox input[type="checkbox"]:focus {
    box-shadow: 0 0 0 2px #e6394644;
}
.form-checkbox label {
    cursor: pointer;
    font-size: 1.08rem;
    color: #fff;
    font-weight: 400;
    line-height: 1.5;
    user-select: none;
}
.form-checkbox a {
    color: #e63946;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.form-checkbox a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.form-checkbox a,
.login-policy a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.form-checkbox a:hover,
.login-policy a:hover {
    color: #e63946;
    text-decoration: underline;
}

.login-link a,
.register-link a {
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.login-link a:hover,
.register-link a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.policy-link {
    color: #e63946;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.policy-link:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* Bannière de recrutement compacte et centrée */
.recrutement-banner {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
    max-width: 480px;
    width: 90%;
}

/* Animation d'entrée */
@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Ajuster le contenu principal quand la bannière est visible */
.recrutement-banner:not([style*="display: none"]) ~ .pdm-panel-hero {
    padding-top: 130px !important;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    position: relative;
}

.banner-icon {
    background: rgba(239, 68, 68, 0.15);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(239, 68, 68, 0.3);
    flex-shrink: 0;
}

.banner-icon i {
    font-size: 1.1rem;
    color: #ef4444;
    display: block;
}

.banner-text {
    flex: 1;
    min-width: 0;
}

.banner-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: #94a3b8;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(239, 68, 68, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.banner-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
    color: #ef4444;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recrutement-banner {
        max-width: 450px;
        width: 95%;
        top: 80px;
    }
    
    .banner-content {
        padding: 0.7rem 1rem;
        gap: 0.8rem;
    }
    
    .banner-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .banner-icon i {
        font-size: 0.9rem;
    }
    
    .banner-title {
        font-size: 0.9rem;
    }
    
    .banner-subtitle {
        font-size: 0.75rem;
    }
    
    .banner-btn {
        padding: 0.35rem 0.9rem;
        font-size: 0.75rem;
    }
    
    .recrutement-banner:not([style*="display: none"]) ~ .pdm-panel-hero {
        padding-top: 125px !important;
    }
}

@media (max-width: 480px) {
    .recrutement-banner {
        max-width: 400px;
        width: 98%;
        top: 75px;
    }
    
    .banner-content {
        padding: 0.6rem 0.8rem;
        gap: 0.6rem;
    }
    
    .banner-icon {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .banner-icon i {
        font-size: 0.8rem;
    }
    
    .banner-title {
        font-size: 0.85rem;
    }
    
    .banner-subtitle {
        font-size: 0.7rem;
    }
    
    .banner-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .recrutement-banner:not([style*="display: none"]) ~ .pdm-panel-hero {
        padding-top: 115px !important;
    }
}