/**
 * CSS pour le formulaire de demande de partenariat - Design moderne 2 colonnes
 * Inspiré du design Ready To Eat
 */

:root {
    --primary-color: #e42125;
    --secondary-color: #1a3a5c;
    --accent-color: #60a5fa;
    --dark-bg: #0a0e1a;
    --card-bg: rgba(26, 58, 92, 0.3);
}

/* ===== SECTION PRINCIPALE ===== */
.partner-form-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #0a0e1a 50%, #1a1a2e 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.partner-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(228, 33, 37, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(26, 58, 92, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.partner-form-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 4rem;
}

/* Logo central à cheval sur les 2 colonnes */
.partner-logo-overlay {
    position: absolute;
    top: 0;
    left: 35%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.partner-logo-center {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(228, 33, 37, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== PARTIE GAUCHE - BRANDING ===== */
.partner-form-left {
    padding: 2rem;
}

.partner-branding {
    max-width: 600px;
}

.partner-logo-container {
    margin-bottom: 3rem;
}

.partner-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(228, 33, 37, 0.3));
}

.partner-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
	text-align:left;
    letter-spacing: -1px;
}

.partner-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.partner-cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.partner-btn-primary {
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, #d62828 0%, #ff6a2b 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(228, 33, 37, 0.4);
    display: inline-block;
}

.partner-btn-primary:hover {
    transform: translateY(-3px);
	 color: white;
    box-shadow: 0 15px 40px rgba(228, 33, 37, 0.6);
}

.partner-btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.partner-btn-secondary:hover {
    border-color: #e42125;
    background: rgba(228, 33, 37, 0.1);
}

/* ===== PARTIE DROITE - FORMULAIRE ===== */
.partner-form-right {
    padding: 2rem;
	  background-image: url("../img/forms.jpg");
    background-size: cover;        /* l'image couvre toute la zone */
    background-position: center;   /* centrage de l'image */
    background-repeat: no-repeat;  /* ne pas répéter l'image */
}

/* Logo dans le formulaire - visible uniquement sur mobile */
.partner-form-logo {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
    display: none; /* Caché par défaut sur desktop */
}

.partner-form-logo .form-logo-image {
    max-width: 200px;
    height: auto;
    display: inline-block;
}

/* Branding mobile - caché par défaut sur desktop */
.partner-branding-mobile {
    display: none;
}

.partner-branding-mobile .partner-main-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

.partner-branding-mobile .partner-description {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.partner-form-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
}

/* Picto chef en bas à droite */
.partner-chef-picto {
    position: absolute;
    bottom: -60px;
    right: -70px;
    z-index: 5;
    pointer-events: none;
}

.chef-image {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: chefFloat 4s ease-in-out infinite;
}

@keyframes chefFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

.partner-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-form-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== FORMULAIRE MODERNE ===== */
.modern-partner-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modern-form-group {
    width: 100%;
}

.modern-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modern-form-half {
    width: 100%;
}

.modern-input-wrapper {
    position: relative;
    width: 100%;
}

.modern-input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(96, 165, 250, 0.6);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.modern-form-input,
.modern-form-select {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

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

.modern-form-input:focus,
.modern-form-select:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.modern-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2360a5fa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 3rem;
}

.modern-form-select option {
    background: #0a0e1a;
    color: #ffffff;
    padding: 0.5rem;
}

.modern-form-textarea {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100px;
    resize: vertical;
    box-sizing: border-box;
}

.modern-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modern-form-textarea:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* File Input */
.modern-file-input {
    display: none;
}

.modern-file-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(96, 165, 250, 0.3);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-file-label:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.modern-file-label i {
    font-size: 1.5rem;
    color: #60a5fa;
}

/* Submit Button */
.modern-form-submit {
    margin-top: 1rem;
}

.modern-submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
  background: linear-gradient(90deg, #d62828 0%, #ff6a2b 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(228, 33, 37, 0.4);
}

.modern-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(228, 33, 37, 0.6);
}

.modern-submit-btn i {
    font-size: 1.2rem;
}

/* Messages d'alerte */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    animation: fadeInUp 0.5s ease-out;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #4ade80;
}

.alert-danger {
    background: rgba(228, 33, 37, 0.15);
    border: 1px solid rgba(228, 33, 37, 0.4);
    color: #ff6b6b;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
    flex: 1;
}

.alert ul li {
    margin: 5px 0;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .partner-form-wrapper {
        gap: 3rem;
    }
    
    .partner-main-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .partner-form-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 2rem;
    }
    
    .partner-form-left {
        display: none; /* Cacher la section branding desktop sur mobile */
    }
    
    .partner-logo-overlay {
        max-width: 400px;
    }
    
    .partner-logo-center {
        max-width: 400px;
    }
    
    .partner-form-left {
        text-align: center;
    }
    
    .partner-branding {
        max-width: 100%;
    }
    
    .partner-cta-buttons {
        justify-content: center;
    }
    
    .partner-main-title {
        font-size: 2.5rem;
    }
    
    .partner-chef-picto {
        bottom: -40px;
        right: -20px;
    }
    
    .chef-image {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .partner-form-section {
        padding: 3rem 1.5rem;
    }
    
    .partner-form-wrapper {
        padding-top: 8rem;
    }
    
    .partner-logo-overlay {
        max-width: 300px;
    }
    
    .partner-logo-center {
        max-width: 300px;
    }
    
    .partner-form-card {
        padding: 2rem 1.5rem;
    }
    
    .modern-form-row {
        grid-template-columns: 1fr;
    }
    
    .partner-main-title {
        font-size: 2rem;
    }
    
    .partner-description {
        font-size: 1rem;
    }
    
    .partner-cta-buttons {
        flex-direction: column;
    }
    
    .partner-btn-primary,
    .partner-btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .partner-chef-picto {
        bottom: -30px;
        right: -10px;
    }
    
    .chef-image {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .partner-form-section {
        padding: 2rem 1rem;
    }
    
    .partner-form-wrapper {
        padding-top: 0rem;
    }
    
    .partner-logo-overlay {
        display: none; /* Cacher le logo overlay sur mobile */
    }
    
    .partner-logo-center {
        max-width: 250px;
    }
    
    .partner-form-logo {
        display: block; /* Afficher le logo dans le formulaire sur mobile */
    }
    
    .partner-branding-mobile {
        display: block; /* Afficher le branding mobile */
    }
    
    .partner-form-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .partner-form-title {
        font-size: 1.5rem;
    }
    
    .modern-form-input,
    .modern-form-select,
    .modern-form-textarea {
        padding: 0.9rem 1rem 0.9rem 2.8rem;
        font-size: 0.95rem;
    }
    
    .modern-input-icon {
        left: 1rem;
        font-size: 1rem;
    }
    
    .modern-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .partner-chef-picto {
        display: block;
        position: fixed;
        bottom: -25px;
        right: 0px;
        z-index: 10;
    }
    
    .partner-chef-picto .chef-image {
        width: 80px;
        height: auto;
    }
}

