footer {
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    margin: 10px;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
    text-align: left;
}

.footer-section ul li a {
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
    }
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.1);
}

.faq-section .accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    border-radius: 10px;
}

.faq-section .section-title {
    color: var(--primary-color, #333);
    margin-bottom: 40px;
    position: relative;
}

.faq-section .accordion-item {
    border: none;
    margin-bottom: 16px;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #fff;
}

.faq-section .accordion-button {
    padding: 20px 30px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-color, #333);
    background: #fff;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--primary-color, #333);
    background-color: #fff;
    box-shadow: none;
}

.faq-section .accordion-button::after {
    background-size: 1.25rem;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0-1A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm.5-6.5v-3a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3z'/%3e%3c/svg%3e");
}

.faq-section .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0-1A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm.5-6.5h-5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1z'/%3e%3c/svg%3e");
}

.faq-section .accordion-body {
    padding: 0 30px 20px;
    color: #666;
    line-height: 1.6;
}

.faq-section .accordion-button:hover {
    background-color: var(--primary-color-light, #f8f9fa);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

@media (max-width: 768px) {
    .faq-section .accordion-button {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .faq-section .accordion-body {
        padding: 0 20px 15px;
    }
}

/*FAQ*/
.faq-section {
    background-color: #f8f9fa;
    padding: 60px 10px;
    border-radius: 10px;
}

.faq-section .section-title {
    color: var(--primary-color, #333);
    margin-bottom: 40px;
    position: relative;
}

.faq-section .accordion-item {
    border: none;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-section .accordion-button {
    width: 100%;
    padding: 20px 30px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-color, #333);
    background: #fff;
    border: none;
    border-radius: 0 !important;
    transition: all 0.3s ease;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--primary-color, #333);
    background-color: #fff;
    box-shadow: none;
    border: none;
}

.faq-section .accordion-button::after {
    background-size: 1.25rem;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0-1A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm.5-6.5v-3a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3z'/%3e%3c/svg%3e");
}

.faq-section .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0-1A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm.5-6.5h-5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1z'/%3e%3c/svg%3e");
}

.faq-section .accordion-body {
    padding: 0 30px 20px;
    color: #666;
    line-height: 1.6;
}

.faq-section .accordion-button:hover {
    background-color: #f8f9fa;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

@media (max-width: 768px) {
    .faq-section .accordion-button {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .faq-section .accordion-body {
        padding: 0 20px 15px;
    }
}

#main a {
    color: #2563eb;
    text-decoration: underline;
    background-color: #fff0;
    -webkit-text-decoration-skip: objects;
}

.double-column > * {
    flex: 1 1 0;  /* prend l’espace dispo */
    min-width: 0; 
}

.double-column {
    display: flex;
    align-items: stretch;
  }

/* Double column overrides: ensure full-width children on mobile and 50/50 on desktop */
.row.double-column {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.row.double-column > .section-body {
    width: 100%;
    min-width: 0;
}

@media (min-width: 992px) {
    .row.double-column {
        gap: 2rem;
    }
    .row.double-column > .section-body {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

/* Responsive video inside the second column */
.row.double-column > .section-body > div {
    position: relative;
    width: 100%;
}

.row.double-column > .section-body iframe {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

 .column {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
 }

/* Sectors preview hover card */
.sectors-preview-wrap {
    position: relative;
}

.sectors-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .sectors-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .sectors-preview {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sectors-preview li {
    position: relative;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    outline: none;
    cursor: default;
}

.sectors-preview li:hover,
.sectors-preview li:focus {
    border-color: #c7d2fe;
    box-shadow: 0 6px 20px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}

.sectors-preview-card {
    position: fixed; /* follow the cursor using viewport coordinates */
    top: 0;
    left: 0;
    width: min(520px, 90vw);
    max-height: 70vh;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0,0,0,.15);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 10px, 0);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 50;
}

.sectors-preview-card.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.sectors-preview-content {
    padding: 14px 16px 16px;
    max-height: calc(70vh - 30px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Remove title/text/company styles, only logos remain */

/* Logos grid inside preview card */
.sectors-preview-logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px; /* row-gap col-gap */
    justify-content: center; /* center the last line */
    margin-top: 10px;
}

.sectors-preview-logos-grid .sector-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f6f7f9;
    aspect-ratio: 1 / 1; /* enforce square tiles */
    /* 3 columns: width = (100% - 2*col-gap)/3 */
    flex: 0 0 calc((100% - 20px) / 3);
}

.sectors-preview-logos-grid .sector-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* placeholder removed: no more tile */

/* Prefer showing the card next to hovered item on narrow screens */
@media (max-width: 991px) {
    .sectors-preview-card {
        position: fixed;
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 16px;
        width: auto;
        max-height: 60vh;
        z-index: 50;
    }
}

/* Sector logos grid */
.sector-logos {
    margin-top: 16px;
}

.sector-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

@media (min-width: 576px) {
    .sector-logos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .sector-logos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .sector-logos-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.sector-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.sector-logo img {
    max-width: 100%;
    object-fit: contain;
    display: block;
}