/* ============================================
   infraCloud.css - Landing Page RDS Infrastructure Cloud
   ============================================
   CSS externalisé pour la landing page infraCloud.html.twig
   Design system séparé (rouge) pour page marketing
*/

/* Reset et base */
.rds-section * {
    box-sizing: border-box;
}

.rds-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.rds-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.rds-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    text-align: center;
}

.rds-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.rds-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.1;
}

.rds-hero .highlight {
    color: #dc2626;
}

.rds-hero .subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 32px;
    font-weight: 400;
}

.rds-hero-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.rds-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #059669;
    font-weight: 600;
}

.rds-benefit-item::before {
    content: "✓";
    background: #10b981;
    color: #1e293b;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* CTA Buttons */
.rds-cta-primary {
    background: #dc2626;
    color: #1e293b;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    margin-right: 20px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.rds-cta-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    color: #1e293b;
    text-decoration: none;
}

.rds-cta-secondary {
    background: transparent;
    color: #2563eb;
    padding: 16px 32px;
    border: 2px solid #2563eb;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.rds-cta-secondary:hover {
    background: #2563eb;
    color: #1e293b;
    text-decoration: none;
}

/* Form Section */
.rds-form-section {
    background: white;
    padding: 80px 0;
    border-top: 1px solid #e5e5e5;
}

.rds-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rds-form-content h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 24px;
    font-weight: 700;
}

.rds-form-content p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 32px;
}

.rds-form-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.rds-form-card h3 {
    color: #1e293b;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.rds-form-group {
    margin-bottom: 20px;
}

.rds-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
}

.rds-form-group input,
.rds-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.rds-form-group input:focus,
.rds-form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rds-form-submit {
    background: #dc2626;
    color: #1e293b;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rds-form-submit:hover {
    background: #b91c1c;
}

.rds-form-note {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 12px;
    text-align: center;
}

/* Personnalisation du formulaire HubSpot */
.rds-form-card .hbspt-form {
    font-family: inherit;
}

.rds-form-card .hs-form fieldset {
    max-width: none !important;
}

.rds-form-card .hs-form .hs-form-field {
    margin-bottom: 15px;
}

.rds-form-card .hs-form .hs-form-field label {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
}

.rds-form-card .hs-form .hs-input {
    width: 100% !important;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: white;
}

.rds-form-card .hs-form .hs-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.rds-form-card .hs-form .hs-button {
    background: #dc2626 !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.rds-form-card .hs-form .hs-button:hover {
    background: #b91c1c !important;
}

.rds-form-card .hs-form .hs-error-msgs {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
}

.rds-form-card .hs-form .hs-form-required {
    color: #dc2626;
}

/* Benefits Section */
.rds-benefits {
    background: #f8fafc;
    padding: 80px 0;
}

.rds-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.rds-benefit-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.rds-benefit-card:hover {
    transform: translateY(-4px);
}

.rds-benefit-icon {
    width: 60px;
    height: 60px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
}

.rds-benefit-card h3 {
    color: #1e293b;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.rds-benefit-card p {
    color: #64748b;
}

/* Calculator */
.rds-calculator {
    background: white;
    padding: 80px 0;
}

.rds-calculator-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.rds-calculator h3 {
    color: #1e293b;
    margin-bottom: 24px;
    text-align: center;
}

.rds-calc-result {
    background: #10b981;
    color: #1e293b;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
}

.rds-calc-label {
    font-size: 1.2rem;
}

.rds-calc-amount {
    font-size: 2rem;
    margin: 10px 0;
}

/* Trust Section */
.rds-trust {
    background: white;
    padding: 80px 0;
    text-align: center;
}

.rds-trust h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 48px;
}

.rds-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.rds-trust-item {
    padding: 24px;
}

.rds-trust-number {
    font-size: 3rem;
    font-weight: 700;
    color: #dc2626;
    display: block;
}

.rds-trust-text {
    color: #64748b;
    margin-top: 8px;
}

/* Security Section */
.rds-security {
    background: #f8fafc;
    color: #1e293b;
    padding: 80px 0;
    text-align: center;
}

.rds-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.rds-security-item {
    padding: 24px;
}

.rds-security-icon {
    width: 50px;
    height: 50px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #dc2626;
    font-size: 20px;
}

/* Final CTA */
.rds-final-cta {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #1e293b;
    padding: 80px 0;
    text-align: center;
}

.rds-final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.rds-final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.rds-urgency {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin: 32px 0;
    border-left: 4px solid #fbbf24;
}

.rds-urgency-highlight {
    color: #fbbf24;
}

.rds-cta-primary-white {
    background: white;
    color: #dc2626;
    margin-right: 20px;
}

.rds-cta-primary-white:hover {
    background: #f8f8f8;
    color: #dc2626;
}

.rds-cta-secondary-dark {
    border-color: #1e293b;
    color: white;
}

.rds-cta-secondary-dark:hover {
    background: #1e293b;
    color: white;
}

/* Helper classes for inline elements */
.rds-hero-cta-wrapper {
    margin-top: 40px;
}

.rds-certification-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    margin: 32px 0;
}

.rds-certification-box h4 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.rds-certification-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rds-certification-item:last-child {
    margin-bottom: 0;
}

.rds-check-icon {
    color: #10b981;
    margin-right: 10px;
    font-weight: bold;
}

.rds-check-text {
    font-size: 0.9rem;
    color: #374151;
}

.rds-security-notice {
    background: #e0f2fe;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0288d1;
}

.rds-security-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #01579b;
}

.rds-form-card-intro {
    margin-bottom: 25px;
    color: #374151;
    font-size: 0.95rem;
}

.rds-form-footer-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #374151;
}

.rds-benefits-intro {
    text-align: center;
}

.rds-benefits-title {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 24px;
}

.rds-benefits-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.rds-calculator-intro {
    text-align: center;
    margin-bottom: 40px;
}

.rds-calculator-title {
    font-size: 2.5rem;
    color: #1e293b;
}

.rds-calculator-description {
    color: #64748b;
}

.rds-trust-intro p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.rds-testimonial-box {
    margin-top: 60px;
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.rds-testimonial-box h3 {
    color: #1e293b;
    margin-bottom: 16px;
}

.rds-testimonial-quote {
    font-style: italic;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.rds-testimonial-author {
    color: #1e293b;
    font-weight: 600;
}

.rds-security-intro {
    margin-bottom: 24px;
}

.rds-security-intro h2 {
    margin-bottom: 24px;
}

.rds-security-intro p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.rds-security-item h4 {
    margin-top: 12px;
    margin-bottom: 8px;
    color: #1e293b;
}

.rds-security-item p {
    color: #64748b;
    font-size: 0.95rem;
}

.rds-final-benefits {
    margin-top: 32px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .rds-hero h1 {
        font-size: 2.5rem;
    }

    .rds-hero-benefits {
        flex-direction: column;
        gap: 20px;
    }

    .rds-form-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rds-cta-primary,
    .rds-cta-secondary {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

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

.rds-fade-in {
    animation: fadeInUp 0.6s ease-out;
}
