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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;  /* Au lieu de #f5f5f5 */
    padding: 0;  /* Au lieu de 15px */
    display: flex;
    justify-content: center;
}


.container {
    width: 1065px;
    max-width: 100%;
}

/* Section formulaire */
#form-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

/* Layout 2 colonnes pour le formulaire */
.form-row {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 20px;
    margin-bottom: 12px;
}

.form-column-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

/* Formulaire */
.form-group {
    position: relative;
}

.label-with-examples {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
    margin: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    padding-right: 50px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[readonly],
.form-group textarea[readonly] {
    background-color: #f8f8f8;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Exemples discrets */
.examples {
    font-size: 0.85em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.examples-label {
    white-space: nowrap;
}

.example-btn {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin: 0 5px;
    font-size: 0.85em;
}

.example-btn:hover {
    color: #5568d3;
}

/* Boutons */
.button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

#submit-btn {
    width: 100%;
}

#submit-btn-results {
    width: 35%;
    min-width: 200px;
}

.submit-btn, .secondary-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn {
    background: #667eea;
    color: white;
}

.submit-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.secondary-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    margin-top: 20px;
}

.secondary-btn:hover {
    background: #f8f9ff;
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Section résultats */
#result-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Flash de confirmation en pleine largeur */
#result-section > .flash-success {
    margin-bottom: 12px;
}

/* Grid 3 colonnes pour les résultats */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

/* Flash boxes */
.flash-box {
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flash-title {
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flash-text {
    font-size: 0.9em;
    line-height: 1.5;
}

/* Couleurs des flash boxes */
.flash-success {
    background: #d4edda;
    color: #155724;
}

.flash-success .flash-title {
    color: #0d3d18;
}

.flash-email {
    background: #d1ecf1;
    color: #0c5460;
}

.flash-email .flash-title {
    color: #073642;
}

.flash-sms {
    background: #f8d7da;
    color: #721c24;
}

.flash-sms .flash-title {
    color: #491217;
}

.flash-crm {
    background: #cce5ff;
    color: #004085;
}

.flash-crm .flash-title {
    color: #002752;
}

/* Email details */
.flash-subtitle {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.flash-body {
    white-space: pre-wrap;
    font-size: 0.85em;
}

/* CRM liste */
.crm-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crm-list li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 64, 133, 0.15);
    font-size: 0.85em;
}

.crm-list li:last-child {
    border-bottom: none;
}

.crm-list strong {
    margin-right: 6px;
    display: inline-block;
    min-width: 90px;
}

/* Responsive fallback (au cas où) */
@media (max-width: 1065px) {
    .container {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.6em;
    }
    
    #form-section {
        padding: 20px;
    }
    
    .flash-box {
        padding: 15px;
    }
}