/* ========================================
   STYLES COMPLETS AUTONOMES POUR CONTACT.HTML
   Fusion de styles-contact.css + classes nécessaires de styles-index.css
   Date: 18/01/2026
======================================== */

/* Variables CSS (depuis styles-index.css + styles-contact.css) */
:root {
    /* Couleurs principales */
    --color-primary: #ee7f08;
    --color-primary-light: #ffa940;
    --color-primary-dark: #d66f00;
    --color-text-dark: #2d2d2d;
    --color-text-medium: #5a5a5a;
    --color-white: #ffffff;
    --color-background: #fafafa;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.12);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s ease;
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 8rem;
    --spacing-card: clamp(2rem, 4vw, 3rem);
    --spacing-gap: clamp(1.5rem, 3vw, 2.5rem);
    --max-width: 1200px;
}

/* Reset minimal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Conteneur principal */
main {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* ============================================
   SECTIONS ENCADRÉES (depuis styles-index.css)
   ============================================ */
.section-encadré {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--color-white);
    margin-bottom: var(--spacing-xl);
}

.section-non-encadré {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md) var(--spacing-xl);
    background: #f5f7fa;
    margin-bottom: var(--spacing-xl);
}

/* Fil d'Ariane (depuis styles-contact.css) */
.breadcrumb {
    padding: 1.25rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-medium);
    border-bottom: 1px solid rgba(238, 127, 8, 0.1);
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.65rem;
    color: #bbb;
    font-weight: 300;
}

.breadcrumb-current {
    color: var(--color-text-dark);
    font-weight: 600;
}

/* Hero CTA final */
.hero-cta-final {
    position: relative;
    min-height: 45vh;
    height: auto;
    overflow: hidden;
    background: #0a0e27;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Background image */
.hero-contact-bg {
    position: absolute;
    inset: 0;
    background: url('../Images/Illustrations/Desktop/bonahora_contruction.webp') center/cover no-repeat;
    filter: brightness(0.75);
    transform-origin: center;
    will-change: transform;
}

/* Overlay dégradé */
.hero-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(238, 127, 8, 0.18) 0%, rgba(10, 14, 39, 0.65) 50%, rgba(10, 14, 39, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Formes décoratives animées */
.hero-contact-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.35;
    z-index: 2;
}

.hero-shape-blob {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(238, 127, 8, 0.25), transparent);
    filter: blur(70px);
    animation: floatBlob 18s ease-in-out infinite;
}

.hero-shape-blob-1 {
    width: 350px;
    height: 350px;
    top: -80px;
    right: -80px;
    animation-delay: 0s;
}

.hero-shape-blob-2 {
    width: 280px;
    height: 280px;
    bottom: -40px;
    left: -40px;
    animation-delay: 6s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -25px) scale(1.08); }
    66% { transform: translate(-18px, 18px) scale(0.92); }
}

/* Contenu hero */
.hero-contact .hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-contact .hero-title {
    font-family: 'Comfortaa', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.hero-contact .hero-title .highlight {
    background: linear-gradient(135deg, #ee7f08 0%, #ffa940 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Bouton CTA */
.hero-cta-button {
    display: inline-block;
    padding: 1.15rem 3rem;
    background: linear-gradient(135deg, #ee7f08 0%, #ff9020 100%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(238, 127, 8, 0.4);
    cursor: pointer;
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section formulaire contact */
.contact-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem 3rem;
}

.section-title {
    font-family: 'Comfortaa', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #2d2d2d;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #ee7f08 0%, #ffa940 100%);
    border-radius: 2px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

/* Informations de contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(238, 127, 8, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Effet de survol */
.info-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #ee7f08 0%, #ffa940 100%);
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-block:hover {
    transform: translateY(-5px) translateX(3px);
    box-shadow: 0 12px 35px rgba(238, 127, 8, 0.18);
    border-color: rgba(238, 127, 8, 0.25);
}

.info-block:hover::before {
    height: 100%;
}

/* Icônes contact */
.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 10px;
    background: linear-gradient(135deg, rgba(238, 127, 8, 0.1), rgba(238, 127, 8, 0.05));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-block:hover .contact-icon {
    background: linear-gradient(135deg, rgba(238, 127, 8, 0.15), rgba(238, 127, 8, 0.08));
    transform: scale(1.08) rotate(3deg);
}

.info-block h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ee7f08;
    margin-bottom: 0.4rem;
    text-align: left;
}

.info-block p,
.info-block a {
    font-family: 'Montserrat', sans-serif;
    color: #616362;
    text-decoration: none;
    font-size: 0.98rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: #ee7f08;
}

/* Formulaire de contact */
.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(238, 127, 8, 0.08);
    transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.65rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d2d2d;
    transition: color 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label {
    color: #ee7f08;
}

/* Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    color: #2d2d2d;
    background: #fafafa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ee7f08;
    background: white;
    box-shadow: 0 0 0 4px rgba(238, 127, 8, 0.08);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-group select {
    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 1.5L6 6.5L11 1.5' stroke='%23616362' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

/* Bouton d'envoi */
.submit-btn {
    width: 100%;
    padding: 1.15rem 2rem;
    background: linear-gradient(135deg, #ee7f08 0%, #ff9020 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(238, 127, 8, 0.3);
    position: relative;
    overflow: hidden;
}

/* Effet de brillance */
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(238, 127, 8, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(238, 127, 8, 0.35);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(238, 127, 8, 0.2);
}

/* Messages de retour */
.message {
    padding: 1.15rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    border: 2px solid;
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    color: #155724;
    border-color: #c3e6cb;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #ffebee 100%);
    color: #721c24;
    border-color: #f5c6cb;
}

.message.show {
    display: block;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section carte & image */
.map-section {
    margin: 5rem 0;
    padding: 0 2rem;
}

.map-section h2 {
    margin-bottom: 3rem;
}

.map-and-image-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.office-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.office-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.office-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
}

.image-caption {
    text-align: center;
    margin: 0;
    padding: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    color: #5a5a5a;
    font-size: 0.95rem;
    font-style: italic;
}

.map-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Placeholder map */
#map-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
}

#map-placeholder:hover {
    background: linear-gradient(135deg, #fff7f0 0%, #fff9f5 100%);
}

#map-placeholder svg {
    filter: drop-shadow(0 2px 8px rgba(238, 127, 8, 0.2));
}

/* ============================================
   RESPONSIVE - TABLETTE (900px+)
   Depuis styles-index.css
   ============================================ */
@media (min-width: 900px) {
    main {
        padding: 0 var(--spacing-lg);
        max-width: 800px;
        margin: 0 auto;
    }
    
    .section-encadré {
        padding: var(--spacing-card);
        max-height: none;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (1200px+)
   Depuis styles-index.css
   ============================================ */
@media (min-width: 1200px) {
    main {
        padding: 0 var(--spacing-xl);
        max-width: var(--max-width);
    }
    
    .section-encadré {
        padding: var(--spacing-xl);
    }
}

/* ============================================
   RESPONSIVE - GRAND ÉCRAN (1440px+)
   Depuis styles-index.css
   ============================================ */
@media (min-width: 1440px) {
    main {
        max-width: 1400px;
        padding: 0 4rem;
    }
}

/* ============================================
   RESPONSIVE - TABLETTE 1024px
   ============================================ */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-wrapper {
        order: 2;
    }
    
    .contact-info {
        order: 1;
    }
    
    .map-and-image-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ============================================
   RESPONSIVE - TABLETTE PETITE 900px
   ============================================ */
@media (max-width: 900px) {
    .hero-cta-final {
        min-height: 50vh;
    }
    
    .hero-contact-bg {
        background-image: url('../Images/Illustrations/Tablette/bonahora_contruction.webp');
    }

    .hero-contact .hero-title {
        font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    }
    
    .hero-cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.05rem;
    }

    .contact-section {
        margin: 2.5rem auto;
        padding: 0 1.5rem 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .info-block {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }

    .info-block h3 {
        font-size: 1.08rem;
    }

    .info-block p,
    .info-block a {
        font-size: 0.95rem;
    }

    .office-image,
    #map-placeholder {
        height: 380px;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE 600px
   ============================================ */
@media (max-width: 600px) {
    .hero-cta-final {
        min-height: 45vh;
    }
    
    .hero-contact-bg {
        background-image: url('../Images/Illustrations/Mobile/bonahora_contruction.webp');
    }
    
    .hero-contact .hero-content {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .hero-contact .hero-title {
        font-size: 1.65rem;
        line-height: 1.25;
    }
    
    .hero-cta-button {
        padding: 0.95rem 2rem;
        font-size: 1rem;
    }

    .hero-shape-blob-1,
    .hero-shape-blob-2 {
        display: none;
    }

    .contact-section {
        margin: 2rem auto;
        padding: 0 1rem 2rem;
    }
    
    .section-title {
        font-size: 1.65rem;
        margin-bottom: 0.75rem;
    }

    .contact-container {
        gap: 2rem;
    }

    .info-block {
        padding: 1.25rem;
        gap: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .info-block h3 {
        font-size: 1rem;
    }

    .info-block p,
    .info-block a {
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .map-section {
        margin: 3rem 0;
        padding: 0 1rem;
    }

    .office-image,
    #map-placeholder {
        height: 280px;
        border-radius: 16px;
    }
    
    .map-container {
        border-radius: 16px;
    }
}

/* ============================================
   RESPONSIVE - SMARTPHONES < 600px
   Depuis styles-index.css
   ============================================ */
@media (max-width: 599px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    .section-encadré {
        padding: var(--spacing-sm) var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
}

/* ============================================
   RESPONSIVE - TRÈS PETITS ÉCRANS 380px
   ============================================ */
@media (max-width: 380px) {
    .hero-contact .hero-title {
        font-size: 1.45rem;
    }
    
    .hero-cta-button {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .contact-section {
        padding: 0 0.75rem 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .info-block {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-block h3,
    .info-block p,
    .info-block a {
        text-align: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation d'entrée */
@media (prefers-reduced-motion: no-preference) {
    .info-block {
        animation: fadeInScale 0.5s var(--transition-smooth) backwards;
    }
    
    .info-block:nth-child(1) { animation-delay: 0.1s; }
    .info-block:nth-child(2) { animation-delay: 0.2s; }
    .info-block:nth-child(3) { animation-delay: 0.3s; }
    .info-block:nth-child(4) { animation-delay: 0.4s; }
    
    .contact-form-wrapper {
        animation: fadeInScale 0.6s var(--transition-smooth) 0.2s backwards;
    }
}

/* Focus visible pour accessibilité */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}
