/* Design professionnel pour la page contact - Palette: bleu (#1832ad), vert (#00ba2c), noir et blanc */

/* ---------- VARIABLES ET KEYFRAMES ---------- */
:root {
    --blue: #1832ad;
    --blue-light: #3952c9;
    --blue-dark: #122480;
    --green: #00ba2c;
    --green-light: #2dd654;
    --green-dark: #009c24;
    --black: #111111;
    --white: #ffffff;
    --grey-light: #f5f5f5;
    --grey: #e0e0e0;
    --grey-dark: #555555;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 50, 173, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(24, 50, 173, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(24, 50, 173, 0);
    }
}

/* ---------- STYLES GÉNÉRAUX ---------- */
body {
    color: var(--black);
    background-color: var(--white);
    font-family: 'Nunito', 'Segoe UI', sans-serif;
}

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

/* ---------- SECTION HERO ---------- */
.page-hero {
    position: relative;
    background-color: var(--blue);
    color: var(--white);
    padding: 120px 0;
    overflow: hidden;
}

.page-hero .shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.15;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    border: 40px solid var(--white);
    border-radius: 50%;
}

.shape-2 {
    bottom: -100px;
    right: 10%;
    width: 400px;
    height: 400px;
    border: 2px solid var(--white);
    border-radius: 50%;
}

.shape-3 {
    top: -80px;
    right: 30%;
    width: 200px;
    height: 200px;
    background-color: var(--white);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    animation: fadeInUp 1s ease-out;
}

.page-hero h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--green);
    transform: translateX(-50%);
    border-radius: 2px;
}

.page-hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-cta {
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.hero-cta .btn {
    padding: 14px 32px;
    background-color: var(--green);
    color: var(--white);
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 186, 44, 0.3);
}

.hero-cta .btn:hover {
    background-color: var(--green-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 186, 44, 0.4);
}

.hero-cta .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
}

.hero-cta .btn:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: ripple 0.6s linear;
}

.hero-cta .btn-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.hero-cta .btn:hover .btn-icon {
    transform: translateX(5px);
}

/* ---------- MAIN CONTENT ---------- */
.contact-main {
    padding: 100px 0;
    position: relative;
    background-color: var(--white);
}

/* Pattern de fond */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(24, 50, 173, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 50, 173, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.contact-main .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 40px;
}

/* ---------- CONTACT FORM ---------- */
.contact-form-wrapper {
    grid-column: 1 / 8;
    animation: scaleIn 0.6s ease-out;
}

.contact-form {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
    border: 1px solid var(--grey);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 12px 12px 0 0;
}

.contact-form h2 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    height: 3px;
    width: 40px;
    background-color: var(--green);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    display: block;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background-color: var(--grey-light);
    border: 2px solid var(--grey-light);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(24, 50, 173, 0.1);
}

.form-control::placeholder {
    color: var(--grey-dark);
    opacity: 0.6;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-primary {
    background-color: var(--blue);
    color: var(--white);
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--blue-light);
    box-shadow: 0 10px 20px rgba(24, 50, 173, 0.2);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    margin-left: 10px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.form-policy {
    font-size: 0.875rem;
    color: var(--grey-dark);
    flex: 1;
    padding-right: 20px;
}

.form-policy a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.form-policy a:hover {
    border-bottom-color: var(--blue);
}

/* Validation d'état des champs */
.form-group.success .form-control {
    border-color: var(--green);
}

.form-group.success label {
    color: var(--green);
}

.form-group.error .form-control {
    border-color: #ff3b30;
}

.form-group.error label {
    color: #ff3b30;
}

.validation-message {
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.form-group.error .validation-message {
    color: #ff3b30;
    display: block;
}

/* ---------- CONTACT INFO ---------- */
.contact-info-wrapper {
    grid-column: 8 / 13;
    animation: scaleIn 0.6s ease-out 0.2s;
    animation-fill-mode: both;
}

.contact-info {
    position: relative;
}

.info-card {
    background-color: var(--blue);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(24, 50, 173, 0.2);
}

.info-card::before {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.info-card::after {
    content: '';
    position: absolute;
    left: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.info-card h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    height: 3px;
    width: 40px;
    background-color: var(--green);
    border-radius: 2px;
}

.info-list {
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.info-item:hover {
    transform: translateX(5px);
}

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

.info-icon {
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}

.info-item:hover .info-icon {
    background-color: var(--green);
    color: var(--white);
    transform: scale(1.1);
}

.info-content h3 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    font-weight: 600;
}

.info-content p, .info-content a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    transition: var(--transition-smooth);
}

.info-content a {
    text-decoration: none;
    display: block;
}

.info-content a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background-color: var(--white);
    transform: translateY(-3px);
}

.social-link i {
    color: var(--blue);
    font-size: 1rem;
}

/* ---------- MAP SECTION ---------- */
.map-section {
    padding: 100px 0;
    background-color: var(--grey-light);
    position: relative;
}

.map-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--black);
    animation: fadeInUp 0.6s ease-out;
}

.map-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 2px;
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    animation: scaleIn 0.6s ease-out 0.2s;
    animation-fill-mode: both;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(24, 50, 173, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.map-container:hover .map-overlay {
    opacity: 1;
}

.map-marker {
    width: 60px;
    height: 60px;
    background-color: var(--blue);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: pulse 2s infinite;
    position: relative;
}

.map-marker::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: var(--white);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ---------- NOTIFICATION ---------- */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px;
    background-color: var(--white);
    color: var(--black);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    transform: translateY(-100px);
    opacity: 0;
    transition: var(--transition-smooth);
    border-left: 4px solid;
}

.notification.success {
    border-left-color: var(--green);
}

.notification.error {
    border-left-color: #ff3b30;
}

.notification.visible {
    transform: translateY(0);
    opacity: 1;
}

.notification-icon {
    margin-right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notification.success .notification-icon {
    background-color: var(--green);
    color: var(--white);
}

.notification.error .notification-icon {
    background-color: #ff3b30;
    color: var(--white);
}

.notification-message {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    margin: 0 0 5px;
    font-size: 1rem;
}

.notification-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--grey-dark);
}

.notification-close {
    background: none;
    border: none;
    color: var(--grey-dark);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    margin-left: 15px;
    transition: var(--transition-smooth);
}

.notification-close:hover {
    color: var(--black);
}

/* ---------- LIVE CHAT ---------- */
.live-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-btn {
    background-color: var(--green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 186, 44, 0.3);
    position: relative;
    transition: var(--transition-smooth);
    font-size: 1.5rem;
}

.chat-btn:hover {
    transform: scale(1.1);
    background-color: var(--green-dark);
}

.chat-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--green);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-smooth);
    z-index: 999;
}

.chat-popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-header {
    background-color: var(--blue);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chat-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-body {
    height: 350px;
    padding: 20px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 20px;
    position: relative;
    clear: both;
    max-width: 80%;
}

.chat-message p {
    padding: 12px 15px;
    border-radius: 18px;
    line-height: 1.4;
    margin: 0 0 5px;
    font-size: 0.95rem;
}

.chat-message .time {
    font-size: 0.7rem;
    color: var(--grey-dark);
    margin: 0;
}

.chat-message.bot {
    float: left;
}

.chat-message.bot p {
    background-color: var(--grey-light);
    color: var(--black);
    border-bottom-left-radius: 5px;
}

.chat-message.user {
    float: right;
}

.chat-message.user p {
    background-color: var(--blue);
    color: var(--white);
    border-bottom-right-radius: 5px;
}

.chat-message.user .time {
    text-align: right;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--grey);
    display: flex;
    background-color: var(--white);
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--grey);
    border-radius: 30px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(24, 50, 173, 0.1);
}

.chat-send {
    background-color: var(--green);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send:hover {
    background-color: var(--green-dark);
    transform: scale(1.1);
}

.chat-send i {
    font-size: 1rem;
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-wrapper, .contact-info-wrapper {
        grid-column: auto;
    }
    
    .page-hero {
        padding: 80px 0;
    }
    
    .page-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-wrapper, .contact-info-wrapper {
        grid-column: auto;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

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

    .btn-primary {
        width: 100%;
    }

    .contact-main, .map-section {
        padding: 60px 0;
    }
    
    .form-submit {
        flex-direction: column;
    }
    
    .form-policy {
        order: 2;
        margin-top: 20px;
        padding-right: 0;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .map-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .contact-form, .info-card {
        padding: 25px;
    }
    
    .chat-popup {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
    
    .notification {
        width: calc(100% - 40px);
    }
}
