/* ===========================
   COMMANDE PAGE STYLES
   =========================== */

.commande-section {
    min-height: 100vh;
    padding: 120px 20px 120px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
}

.commande-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===========================
   COLONNE GAUCHE - CARTE
   =========================== */

.commande-left {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    min-height: 250px;
}

.preview-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.05);
}

/* ===========================
   MOCKUP CARTE GÉNÉRIQUE
   =========================== */

.card-mockup {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1.586;
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.card-mockup:hover {
    transform: scale(1.05);
}

.card-mockup .card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 8px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.card-mockup .card-logo {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 18px;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
    opacity: 0.8;
}

.card-mockup .card-number {
    font-size: 22px;
    color: white;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    opacity: 0.9;
}

.card-mockup .card-name {
    font-size: 16px;
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.card-info {
    color: var(--white);
}

.card-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--yellow);
}

.card-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-light);
}

.card-benefits {
    list-style: none;
    padding: 0;
}

.card-benefits li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-benefits li:last-child {
    border-bottom: none;
}

/* ===========================
   COLONNE DROITE - FORMULAIRE
   =========================== */

.commande-right {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.commande-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667EEA;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select:focus {
    outline: none;
    border-color: #667EEA;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Options de tous les selects */
.form-group select option {
    padding: 10px;
    font-size: 14px;
}

.btn-submit-commande {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit-commande:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ===========================
   STYLES POUR LE MESSAGE VIREMENT
   À ajouter à la fin de commande.css
   =========================== */

.info-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 10px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.info-message:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.35);
}

/* ✅ STYLES POUR L'IMAGE SVG */
.info-message img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    /* ✅ Filtre CSS pour changer la couleur en bleu #667EEA */
    filter: brightness(0) saturate(100%) invert(46%) sepia(72%) saturate(1200%) hue-rotate(207deg) brightness(95%) contrast(92%);
    transition: transform 0.3s ease;
}

.info-message:hover img {
    transform: scale(1.1);
}

.info-message p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    flex: 1;
}

.info-message p strong {
    color: #333;
    font-weight: 600;
}

.info-message a {
    color: #667EEA;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.info-message a:hover {
    color: #5568c9;
    border-bottom-color: #5568c9;
}

.form-footer {
    text-align: center;
    margin-top: 10px;
}

.form-footer a {
    color: #667EEA;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #5568c9;
    text-decoration: underline;
}

.footer {
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    padding: 30px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Brand */
.footer-brand {
    text-align: center;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Footer Columns */
.footer-col {
    text-align: center;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--yellow);
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-copyright a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--white);
    text-decoration: underline;
}



/* ===========================
   MEDIA QUERIES
   =========================== */

/* Mobile Screens - 320px */
@media (max-width: 320px) {
    .commande-left {
        padding: 10px;
    }

    .card-preview {
        margin-bottom: 10px;
        max-height: 155px;
    }

    .form-group select {
        font-size: 13px;
        padding: 10px 35px 10px 12px;
    }
    
    .form-group select option {
        font-size: 12px;
    }

    .info-message {
        padding: 10px;
        gap: 8px;
        border-radius: 8px;
    }
    
    .info-message img {
        width: 16px;
        height: 16px;
    }
    
    .info-message p {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-logo {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .footer-tagline {
        font-size: 13px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .footer-links {
        gap: 5px;
    }

    .footer-links li a {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 10px;
    }

    .footer-copyright {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

/* Mobile Screens - up to 767px */
@media (max-width: 767px) {
    .commande-left {
        padding: 15px;
    }

    .card-preview {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
        min-height: 180px;
    }

    .commande-section {
        padding: 100px 15px 40px;
    }

    .commande-right {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group select {
        font-size: 14px;
        padding: 12px 40px 12px 14px;
    }
    
    .form-group select option {
        font-size: 13px;
    }

    .card-info h3 {
        font-size: 24px;
    }

    .card-info p {
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .preview-image {
        max-width: 300px;
    }

    .card-mockup {
        max-width: 300px;
    }

    .info-message {
        padding: 12px;
        gap: 10px;
    }
    
    .info-message img {
        width: 18px;
        height: 18px;
    }
    
    .info-message p {
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-logo {
        font-size: 32px;
        margin-bottom: 5px;
    }

    .footer-title {
        margin-bottom: 5px;
    }

    .footer-links {
        gap: 5px;
    }
}

/* Tablet Portrait - 768px exact (MOBILE STYLE) */
@media (min-width: 768px) and (max-width: 768px) {
    .commande-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* ✅ FIX: Correction du débordement des selects */
    .form-group select {
        font-size: 14px;
        padding: 12px 40px 12px 14px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group select option {
        font-size: 13px;
    }

    .info-message {
        padding: 14px;
    }
    
    .info-message img {
        width: 20px;
        height: 20px;
    }
    
    .info-message p {
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-col {
        text-align: left;
    }

    .footer-logo {
        font-size: 36px;
    }

    .footer-tagline {
        font-size: 18px;
    }
}

/* Tablet - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .commande-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* ✅ FIX: Correction du débordement des selects */
    .form-group select {
        font-size: 14px;
        padding: 12px 40px 12px 14px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group select option {
        font-size: 13px;
        max-width: 100%;
    }

    .info-message {
        padding: 15px;
    }
    
    .info-message img {
        width: 22px;
        height: 22px;
    }

    .footer {
        padding: 80px 0 40px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 60px;
        align-items: start;
    }

    .footer-brand {
        grid-column: auto;
        text-align: left;
    }

    .footer-col {
        text-align: left;
    }

    .footer-logo {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .footer-tagline {
        font-size: 16px;
        max-width: 350px;
    }

    .footer-links li a:hover {
        transform: translateX(10px);
    }
}

/* Desktop - 1025px and up */
@media (min-width: 1025px) {
    .commande-wrapper {
        grid-template-columns: 500px 1fr;
        gap: 40px;
    }

    .commande-left {
        position: sticky;
        top: 100px;
        height: fit-content;
    }

    /* ✅ FIX: Correction du débordement des selects */
    .form-group select {
        font-size: 15px;
        padding: 14px 45px 14px 16px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group select option {
        font-size: 14px;
        max-width: 100%;
    }

    .info-message {
        padding: 18px;
    }
    
    .info-message img {
        width: 24px;
        height: 24px;
    }
    
    .info-message p {
        font-size: 15px;
    }

    .footer {
        padding: 80px 0 40px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 60px;
        align-items: start;
    }

    .footer-brand {
        grid-column: auto;
        text-align: left;
    }

    .footer-col {
        text-align: left;
    }

    .footer-logo {
        font-size: 40px;
    }

    .footer-tagline {
        font-size: 18px;
        max-width: 350px;
    }

    .footer-links li a:hover {
        transform: translateX(10px);
    }
}