/* Redesign unifié de la page d'accueil - Style Bouygues Construction */

/* Reset global pour les sections pleine largeur */
.informations-page,
.services-page,
.confiances,
.partenaires,
.contact {
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Badge de section */
.section-badge {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.badge-white {
    color: var(--main-color) !important;
}

/* Ligne d'accent */
.accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px 0 30px 0;
}

.trust-text-box .accent-line,
.contact-info-panel .accent-line {
    background-color: var(--main-color) !important;
}

/* Titres */
h2 {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 20px;
}

h2 strong {
    font-weight: 800;
    color: var(--secondary-color);
}

.trust-text-box h2 strong,
.contact-info-panel h2 strong {
    color: var(--main-color) !important;
}

/* Bouton rectangulaire corporate */
.btn-solid {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--secondary-color);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-solid:hover {
    background-color: transparent;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.btn-solid-dark {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--secondary-color);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-solid-dark:hover {
    background-color: #0f172a;
    border-color: #0f172a;
    transform: translateY(-2px);
}

/* ---------------------------------------------------- */
/* SECTION 1: QUI SOMMES-NOUS                           */
/* ---------------------------------------------------- */
.info-section-full {
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 550px;
}

.info-text-col {
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-text-col .lead-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.info-text-col .body-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--secondary-text-color);
    margin-bottom: 35px;
}

.info-media-col {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
}

.info-media-col .full-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 40px;
}

/* ---------------------------------------------------- */
/* SECTION 2: NOS SERVICES                              */
/* ---------------------------------------------------- */
.services-section-full {
    width: 100%;
    background-color: #f8fafc;
    padding-top: 120px !important;
}

.section-header-full {
    padding: 0 10% 0px 10%;
}

.services-subgrid {
    display: grid;
    width: 100%;
    height: 480px;
    overflow: hidden;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.services-subgrid:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
}

.grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.services-category-header {
    padding: 0 10% 30px 10%;
    margin-top: 100px;
}

.services-category-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
    margin: 0;
    display: block;
    width: 100%;
}

.services-category-header h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--main-color);
}

.service-card-full {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-full:last-child {
    border-right: none;
}

.service-card-full .card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.service-card-full .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.4) 40%, rgba(15, 23, 42, 0.9) 100%);
    transition: all 0.5s ease;
    z-index: 1;
}

.service-card-full .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 25px;
    z-index: 2;
    color: #ffffff;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card-full .card-icon-tag {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--main-color);
    margin-bottom: 15px;
    font-family: monospace;
}

.service-card-full h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.service-card-full .card-intro-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    opacity: 1;
    transition: all 0.4s ease;
}

.service-card-full .card-details-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card-full .card-details-panel ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-card-full .card-details-panel li {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 15px;
}

.service-card-full .card-details-panel li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--main-color);
}

.service-card-full .card-link-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.service-card-full .card-link-btn:hover {
    background-color: #ffffff;
    color: var(--secondary-color);
    border-color: #ffffff;
}

/* Hover effects */
.service-card-full:hover .card-bg-image {
    transform: scale(1.1);
}

.service-card-full:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.7) 30%, rgba(15, 23, 42, 0.98) 100%);
}

.service-card-full:hover .card-intro-desc {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.service-card-full:hover .card-details-panel {
    max-height: 350px;
    opacity: 1;
    margin-top: 10px;
}

/* ---------------------------------------------------- */
/* SECTION 3: CONFIANCE & PARTENAIRES                   */
/* ---------------------------------------------------- */
.trust-section-full {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.trust-grid-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    min-height: 720px;
}

.trust-logos-box {
    width: 100%;
    background-color: #ffffff;
}

.logo-grid-borderless {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 100%;
    width: 100%;
}

.logo-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 60px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
    position: relative;
}

.logo-grid-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.logo-grid-item:hover::after,
.logo-grid-item.active-logo::after {
    width: 100%;
}

.logo-grid-item:hover {
    background-color: #f8fafc;
}

.logo-grid-item.active-logo {
    background-color: #f1f5f9;
}

.logo-grid-item img {
    max-width: 100%;
    max-height: 55px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: all 0.3s ease;
}

.logo-grid-item:hover img,
.logo-grid-item.active-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.trust-text-box {
    background-color: #0f172a;
    color: #ffffff;
    padding: 250px 10%;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #1e293b;
}

.trust-text-box h2 {
    color: #ffffff;
}

.trust-testimonials {
    min-height: 150px;
    display: flex;
    align-items: center;
}

#trust-desc-content {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #cbd5e1;
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

#trust-desc-content.testimonial-active {
    opacity: 1;
    transform: translateY(0);
}

#trust-desc-content span {
    color: var(--main-color);
    font-weight: 700;
    font-style: normal;
}

/* ---------------------------------------------------- */
/* SECTION 4: PARTENAIRES                               */
/* ---------------------------------------------------- */
.partners-section-full {
    width: 100%;
    background-color: #f8fafc;
    padding: 120px 0 !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.partners-scroller-container {
    width: 100%;
    overflow: hidden;
    margin-top: 100px;
}

.scroller-full {
    max-width: 100%;
}

.scroller-full[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller-full[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll 35s linear infinite;
}

.tag-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 60px;
    align-items: center;
}

.tag-list li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-list li img {
    height: 60px;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tag-list li:hover img {
    opacity: 1;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------------------------------------------------- */
/* SECTION 5: NOUS CONTACTER                            */
/* ---------------------------------------------------- */
.contact-section-full {
    width: 100%;
    background-color: #ffffff;
}

.contact-grid-full {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-height: 600px;
}

.contact-info-panel {
    background-color: #0f172a;
    color: #ffffff;
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel h2 {
    color: #ffffff;
    margin-bottom: 25px;
}

.contact-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 40px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-left: 3px solid var(--main-color);
    padding-left: 20px;
}

.contact-detail-row .icon-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.contact-detail-row .detail-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.contact-detail-row .detail-val:hover {
    color: var(--main-color);
}

.contact-form-panel {
    background-color: #f8fafc;
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flat-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-flat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-flat label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group-flat input,
.form-group-flat textarea {
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--heading-color);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
}

.form-group-flat input:focus,
.form-group-flat textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(88, 153, 255, 0.15);
}

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

.form-submit-flat {
    margin-top: 10px;
}

.flat-form .success-message {
    color: #10b981;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 15px;
}

/* ---------------------------------------------------- */
/* RESPONSIVE DESIGN (MEDIA QUERIES)                    */
/* ---------------------------------------------------- */

@media screen and (max-width: 1200px) {
    .services-subgrid {
        height: auto;
    }

    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-full {
        height: 400px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media screen and (max-width: 991px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-media-col {
        height: 350px;
    }

    .trust-grid-container {
        flex-direction: column;
    }

    .trust-text-box {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }

    .contact-grid-full {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
    }

    .info-text-col,
    .trust-text-box,
    .contact-info-panel,
    .contact-form-panel {
        padding: 80px 6%;
    }

    .grid-4-cols,
    .grid-3-cols,
    .grid-2-cols {
        grid-template-columns: 1fr;
    }

    .service-card-full {
        height: 320px;
    }

    .logo-grid-borderless {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row-two {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .map-inner {
        padding: 0 20px;
    }
}

/* ============================================================ */
/* SECTION: CARTE D'INTERVENTION EUROPE                         */
/* ============================================================ */
.map-section-full {
    width: 100%;
    background: #f0f6ff;
    padding: 120px 0 100px;
    border-top: 1px solid #e2e8f0;
}

.map-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.map-inner h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--heading-color, #162E49);
    margin: 12px 0 0;
    line-height: 1.3;
}

.map-subtitle {
    font-size: 1.05rem;
    color: var(--secondary-text-color, #4A6380);
    max-width: 680px;
    margin: 20px auto 0;
    line-height: 1.7;
}

/* Legend */
.map-legend {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 36px 0 40px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--secondary-text-color, #4A6380);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-ping {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF4500;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255,69,0,0.25);
    animation: legend-pulse 2s ease-in-out infinite;
}

@keyframes legend-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,69,0,0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(255,69,0,0.10); }
}

/* Map canvas container */
.map-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    /* Soft edge fade */
    -webkit-mask: radial-gradient(ellipse 90% 85% at 50% 50%, black 55%, transparent 100%);
    mask: radial-gradient(ellipse 90% 85% at 50% 50%, black 55%, transparent 100%);
}

#europe-map-canvas {
    width: 100%;
    height: auto;
    display: block;
}

/* Ping SVG overlay */
.map-ping-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* Ping dot */
.ping-dot {
    animation: ping-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes ping-dot-pulse {
    0%, 100% { opacity: 1;   r: 3.5; }
    50%       { opacity: 0.7; r: 4.5; }
}

/* Ping expanding ring */
.ping-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: ping-ring-expand 2.4s ease-out infinite;
}

@keyframes ping-ring-expand {
    0%   { transform: scale(1);  opacity: 0.9; }
    80%  { transform: scale(5);  opacity: 0;   }
    100% { transform: scale(5);  opacity: 0;   }
}

/* City label */
.ping-label {
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    fill: #162E49;
    letter-spacing: 0.02em;
}