/* home.css - Styles spécifiques à la page d'accueil */

/* Section Hero */
.hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero-content {
    background: rgba(0, 48, 87, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(74, 144, 200, 0.5);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: clamp(2em, 4.5vw, 2.8em);
    color: white;
    border: none;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: clamp(1em, 2vw, 1.4em);
    color: #e8f4ff;
    margin-bottom: 20px;
    font-weight: 400;
}

.rotating-banner {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 8px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(74, 144, 200, 0.3);
}

.rotating-text {
    font-size: clamp(1em, 2vw, 1.3em);
    font-weight: 600;
    text-align: center;
    white-space: normal;
    max-width: 90%;
    padding: 0 10px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
}

/* Section Produits */
.products-section {
    margin-bottom: 40px;
    scroll-margin-top: 110px;
}

.products-section-content {
    background: rgba(0, 48, 87, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(74, 144, 200, 0.5);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.products-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.product-card {
    background: rgba(0, 48, 87, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(74, 144, 200, 0.4);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.product-card:hover:not(.coming-soon) {
    transform: translateY(-8px);
    border-color: rgba(74, 144, 200, 0.7);
    box-shadow: 0 12px 40px rgba(0, 48, 87, 0.6);
}

.product-card.coming-soon {
    opacity: 0.7;
    position: relative;
}

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a5490, #003057);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(0, 48, 87, 0.5);
}

.product-icon .icon {
    font-size: 2em;
}

/* MODIFICATION 1: Texte du nom du produit plus grand */
.product-card h3 {
    text-align: center;
    color: #e8f4ff;
    margin-bottom: 12px;
    font-size: 1.8em; /* Augmenté de 1.5em à 1.8em */
    font-weight: 700;
}

.product-description {
    color: #d8e8f5;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
    font-size: 1.05em; /* Augmenté de 0.95em à 1.05em */
}

.product-features {
    margin: 15px 0;
    padding: 12px;
    background: rgba(0, 48, 87, 0.4);
    border-radius: 8px;
}

/* MODIFICATION 2: Description des avantages plus grande */
.product-features li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    color: #e8f4ff;
    font-size: 1.05em; /* Augmenté de 0.9em à 1.05em */
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00f260;
    font-weight: bold;
}

.btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    background: linear-gradient(135deg, #2a6aa0, #1a5490);
    font-size: 0.95em;
    padding: 12px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a7ab5, #2a6aa0);
    box-shadow: 0 6px 20px rgba(42, 106, 160, 0.5);
}

.coming-soon-badge {
    background: linear-gradient(135deg, #d4a34a, #b8892e);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.85em;
}

/* Footer Links */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-right p {
    color: #e8f4ff;
    margin: 0;
}

.footer-link {
    color: #e8f4ff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4a90c8;
}

/* Le style .btn-contact est défini dans global.css pour uniformité sur toutes les pages */

/* Modal de contact */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    padding: 35px;
    border-radius: 8px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal h2 {
    color: #003057;
    margin-bottom: 25px;
    border-bottom: 2px solid #003057;
    padding-bottom: 12px;
}

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

.form-group label {
    display: block;
    color: #003057;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.form-group label.required:after {
    content: " *";
    color: #d32f2f;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #1a5490;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003057;
    box-shadow: 0 0 0 3px rgba(0, 48, 87, 0.1);
}

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

.form-group input.error,
.form-group textarea.error {
    border-color: #d32f2f;
}

.error-message {
    color: #d32f2f;
    font-size: 0.85em;
    margin-top: 5px;
    min-height: 18px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.modal-buttons button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.send-btn {
    background: #2a6aa0;
    color: white;
}

.send-btn:hover {
    background: #3a7ab5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 106, 160, 0.3);
}

.cancel-btn {
    background: #f0f4f8;
    color: #003057;
    border: 2px solid #003057;
}

.cancel-btn:hover {
    background: #e0e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero {
        padding: 40px 15px;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 10px;
    }
}
