/* ========================================
   Solutions Optinet – Main Stylesheet
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.so-theme {
    font-family: var(--so-font-body);
    color: var(--so-text);
    background-color: var(--so-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--so-font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--so-primary);
}

a {
    color: var(--so-accent);
    text-decoration: none;
    transition: var(--so-transition);
}

a:hover {
    color: var(--so-accent-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Container --- */
.so-container {
    max-width: var(--so-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Base --- */
.so-section {
    padding: 80px 0;
}

.so-section--alt {
    background-color: var(--so-bg-alt);
}

.so-section--dark {
    background-color: var(--so-primary);
    color: #fff;
}

.so-section--dark h2,
.so-section--dark h3 {
    color: #fff;
}

.so-section__title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 16px;
}

.so-section__subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--so-text-light);
    max-width: 680px;
    margin: 0 auto 48px;
}

/* --- Buttons --- */
.so-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--so-radius-sm);
    font-family: var(--so-font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--so-transition);
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1.4;
}

.so-btn--primary {
    background-color: var(--so-accent);
    color: #fff;
    border-color: var(--so-accent);
}

.so-btn--primary:hover {
    background-color: var(--so-accent-dark);
    border-color: var(--so-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.35);
}

.so-btn--outline {
    background-color: transparent;
    color: var(--so-primary);
    border-color: var(--so-primary);
}

.so-btn--outline:hover {
    background-color: var(--so-primary);
    color: #fff;
    transform: translateY(-2px);
}

.so-btn--white {
    background-color: #fff;
    color: var(--so-primary);
    border-color: #fff;
}

.so-btn--white:hover {
    background-color: var(--so-bg);
    transform: translateY(-2px);
    box-shadow: var(--so-shadow);
}

.so-btn--lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.so-btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Custom Header --- */
.so-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--so-transition);
}

.so-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--so-container);
    margin: 0 auto;
    padding: 0 24px;
    height: 120px;
}

.so-header__logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    font-family: var(--so-font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--so-primary);
    text-decoration: none;
}

.so-header__logo img,
.so-header__logo .custom-logo {
    height: 74px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.so-header__logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.so-header__logo-text span {
    color: var(--so-accent);
}

.so-header__nav {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    flex-wrap: nowrap;
}

.so-header__nav a {
    font-family: var(--so-font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--so-text);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.so-header__nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--so-accent);
    transition: var(--so-transition);
}

.so-header__nav a:hover::after,
.so-header__nav a.active::after {
    width: 100%;
}

.so-header__cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.so-header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--so-primary);
    font-size: 0.95rem;
}

.so-header__phone svg {
    width: 18px;
    height: 18px;
    fill: var(--so-accent);
}

.so-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.so-mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--so-primary);
    border-radius: 2px;
    transition: var(--so-transition);
}

/* Body offset for fixed header (desktop — aligné sur .so-header__inner) */
body.so-theme {
    padding-top: 120px;
}

/* --- HERO Section --- */
.so-hero {
    position: relative;
    background: linear-gradient(135deg, var(--so-primary) 0%, var(--so-primary-dark) 100%);
    padding: 100px 0 90px;
    overflow: hidden;
}

.so-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.08);
}

.so-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.so-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.so-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 67, 0.15);
    color: var(--so-accent-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.so-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.so-hero h1 span {
    color: var(--so-accent);
}

.so-hero__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.7;
}

.so-hero__checks {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.so-hero__check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.so-hero__check svg {
    width: 20px;
    height: 20px;
    fill: var(--so-secondary-light);
    flex-shrink: 0;
}

/* --- Audience Section --- */
.so-audience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.so-audience__card {
    background: var(--so-bg-alt);
    border-radius: var(--so-radius-lg);
    padding: 48px 40px;
    box-shadow: var(--so-shadow);
    transition: var(--so-transition);
    border: 1px solid var(--so-border);
}

.so-audience__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--so-shadow-lg);
}

.so-audience__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--so-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
}

.so-audience__card--particulier .so-audience__icon {
    background: rgba(212, 168, 67, 0.12);
}

.so-audience__card--pro .so-audience__icon {
    background: rgba(27, 58, 92, 0.1);
}

.so-audience__card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.so-audience__card ul {
    list-style: none;
    margin-bottom: 28px;
}

.so-audience__card li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--so-text-light);
}

.so-audience__card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--so-accent);
}

/* --- Prestations (Services) --- */
.so-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.so-service-card {
    background: var(--so-bg-alt);
    border-radius: var(--so-radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--so-shadow);
    transition: var(--so-transition);
    border: 1px solid var(--so-border);
    position: relative;
    overflow: hidden;
}

.so-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--so-accent), var(--so-primary));
    transform: scaleX(0);
    transition: var(--so-transition);
}

.so-service-card:hover::before {
    transform: scaleX(1);
}

.so-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--so-shadow-lg);
}

.so-service-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.12), rgba(27, 58, 92, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.so-service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.so-service-card p {
    color: var(--so-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Fournisseurs --- */
.so-fournisseurs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.so-fournisseur {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
    transition: var(--so-transition);
}

.so-fournisseur:hover {
    opacity: 1;
}

.so-fournisseur__logo {
    width: 80px;
    height: 80px;
    border-radius: var(--so-radius);
    background: var(--so-bg-alt);
    box-shadow: var(--so-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--so-primary);
    font-size: 0.75rem;
    text-align: center;
    padding: 8px;
}

.so-fournisseur span {
    font-size: 0.85rem;
    color: var(--so-text-light);
    font-weight: 500;
}

/* --- Why Choose Us --- */
.so-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.so-why-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--so-radius);
    background: var(--so-bg-alt);
    box-shadow: var(--so-shadow);
    transition: var(--so-transition);
}

.so-why-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--so-shadow-lg);
}

.so-why-item__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(46, 125, 91, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.so-why-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--so-primary);
}

.so-why-item p {
    font-size: 0.875rem;
    color: var(--so-text-light);
}

/* --- Simulateur CTA Banner --- */
.so-cta-banner {
    background: linear-gradient(135deg, var(--so-primary) 0%, var(--so-primary-light) 100%);
    border-radius: var(--so-radius-lg);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.so-cta-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.1);
}

.so-cta-banner h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.so-cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.so-cta-banner .so-btn {
    position: relative;
    z-index: 1;
}

/* --- Realisations Grid --- */
.so-realisations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.so-realisation-card {
    border-radius: var(--so-radius);
    overflow: hidden;
    box-shadow: var(--so-shadow);
    transition: var(--so-transition);
    background: var(--so-bg-alt);
}

.so-realisation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--so-shadow-lg);
}

.so-realisation-card__img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--so-primary-light), var(--so-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

.so-realisation-card__body {
    padding: 24px;
}

.so-realisation-card__body h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.so-realisation-card__body p {
    font-size: 0.9rem;
    color: var(--so-text-light);
}

/* --- Zone d'intervention --- */
.so-zone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.so-zone__map {
    border-radius: var(--so-radius-lg);
    overflow: hidden;
    box-shadow: var(--so-shadow-lg);
    aspect-ratio: 4/3;
    background: var(--so-border);
}

.so-zone__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.so-zone__text h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.so-zone__text p {
    color: var(--so-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.so-zone__cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.so-zone__city {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(27, 58, 92, 0.06);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--so-primary);
}

/* --- CTA Final --- */
.so-cta-final {
    background: linear-gradient(135deg, var(--so-primary-dark) 0%, var(--so-primary) 100%);
    padding: 80px 0;
    text-align: center;
}

.so-cta-final h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.so-cta-final p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.so-cta-final .so-btn-group {
    justify-content: center;
}

/* --- Footer --- */
.so-footer {
    background: var(--so-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.so-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.so-footer__brand {
    max-width: 300px;
}

.so-footer__brand-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    text-decoration: none;
}

.so-footer__brand-logo .custom-logo-link {
    display: inline-flex;
}

.so-footer__brand-logo img,
.so-footer__brand-logo .custom-logo {
    display: block;
    width: 220px;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
}

/* Keep footer logo visible on dark background */
.so-footer__brand-logo .so-footer-custom-logo,
.so-footer .so-footer__brand .custom-logo {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.so-footer__brand h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.so-footer__brand h3 span {
    color: var(--so-accent);
}

.so-footer__brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.so-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.so-footer__links {
    list-style: none;
}

.so-footer__links li {
    margin-bottom: 10px;
}

.so-footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--so-transition);
}

.so-footer__links a:hover {
    color: var(--so-accent);
    padding-left: 4px;
}

.so-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.so-footer__contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--so-accent);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Keep all footer links in the same neutral color */
.so-footer__contact-item a,
.so-footer__bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--so-transition);
}

.so-footer__contact-item a:hover,
.so-footer__bottom a:hover {
    color: var(--so-accent);
}

.so-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
} 

/* --- Page Templates --- */
.so-page-header {
    background: linear-gradient(135deg, var(--so-primary) 0%, var(--so-primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
}

.so-page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.so-page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Method Steps --- */
.so-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    position: relative;
}

.so-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--so-border);
    z-index: 0;
}

.so-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.so-step__number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--so-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--so-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

.so-step h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.so-step p {
    color: var(--so-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Benefits List --- */
.so-benefits {
    list-style: none;
    max-width: 600px;
    margin: 40px auto 0;
}

.so-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1.05rem;
    color: var(--so-text);
}

.so-benefits li svg {
    width: 24px;
    height: 24px;
    fill: var(--so-secondary);
    flex-shrink: 0;
}

/* --- Reservation / Fee Section --- */
.so-fee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}

.so-fee-list {
    list-style: none;
}

.so-fee-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--so-border);
}

.so-fee-list li:last-child {
    border-bottom: none;
}

.so-fee-list li svg {
    width: 20px;
    height: 20px;
    fill: var(--so-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.so-reassurance {
    background: rgba(46, 125, 91, 0.06);
    border-left: 4px solid var(--so-secondary);
    border-radius: 0 var(--so-radius-sm) var(--so-radius-sm) 0;
    padding: 24px 28px;
    margin-top: 24px;
}

.so-reassurance p {
    color: var(--so-text);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- Contact Form --- */
.so-form {
    max-width: 600px;
    margin: 0 auto;
}

.so-form__group {
    margin-bottom: 20px;
}

.so-form__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--so-primary);
}

.so-form__input,
.so-form__textarea,
.so-form__select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--so-border);
    border-radius: var(--so-radius-sm);
    font-family: var(--so-font-body);
    font-size: 1rem;
    color: var(--so-text);
    background: var(--so-bg-alt);
    transition: var(--so-transition);
}

.so-form__input:focus,
.so-form__textarea:focus,
.so-form__select:focus {
    outline: none;
    border-color: var(--so-accent);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.so-form__textarea {
    min-height: 140px;
    resize: vertical;
}

/* --- Info Box --- */
.so-info-box {
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: var(--so-radius);
    padding: 24px 28px;
    margin: 32px 0;
}

.so-info-box h4 {
    color: var(--so-accent-dark);
    font-size: 1rem;
    margin-bottom: 8px;
}

.so-info-box p {
    color: var(--so-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Scroll Reveal Animation --- */
.so-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.so-reveal.so-visible {
    opacity: 1;
    transform: translateY(0);
}

.so-reveal-delay-1 { transition-delay: 0.1s; }
.so-reveal-delay-2 { transition-delay: 0.2s; }
.so-reveal-delay-3 { transition-delay: 0.3s; }
.so-reveal-delay-4 { transition-delay: 0.4s; }

/* --- Realisations Archive --- */
.so-realisations-grid--archive {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.so-realisation-cats-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.so-realisation-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--so-border);
    color: var(--so-primary);
    background: var(--so-bg-alt);
    font-weight: 600;
    font-size: 0.9rem;
}

.so-realisation-cat-pill:hover {
    border-color: var(--so-accent);
    color: var(--so-accent-dark);
}

.so-realisation-category-block {
    margin-top: 24px;
    margin-bottom: 44px;
}

.so-realisation-category-head h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.so-realisation-category-head p {
    color: var(--so-text-light);
    margin-bottom: 18px;
}

.so-realisations-empty {
    font-size: 0.95rem;
    color: var(--so-text-light);
    background: var(--so-bg-alt);
    border: 1px dashed var(--so-border);
    border-radius: var(--so-radius);
    padding: 18px;
}

/* ── Réalisations: carte cliquable ── */
.so-realisation-card--link {
    padding: 0;
    overflow: hidden;
}

.so-realisation-card__link {
    display: block;
    text-decoration: none;
    color: var(--so-text);
    height: 100%;
}

.so-realisation-card__link h4 {
    color: var(--so-primary);
}

.so-realisation-card__link:hover .so-realisation-card__more {
    color: var(--so-accent);
}

.so-realisation-card--link .so-realisation-card__img {
    width: 100%;
    height: 220px;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.so-realisation-card__more {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--so-primary);
}

/* ── Single réalisation + galerie + lightbox ── */
.so-page-header--compact {
    padding: 40px 0 32px;
    text-align: left;
}

.so-page-header--compact h1 {
    text-align: left;
    margin-top: 12px;
}

.so-breadcrumb {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.so-breadcrumb a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.so-breadcrumb a:hover {
    color: var(--so-accent-light, #e8d5a0);
}

.so-breadcrumb__sep {
    margin: 0 6px;
    opacity: 0.7;
}

/* Galerie projet — toujours plusieurs colonnes (pas une seule colonne empilée) */
.so-single-realisation-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 40px;
    width: 100%;
    align-items: start;
}

@media (min-width: 480px) {
    .so-single-realisation-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .so-single-realisation-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .so-single-realisation-gallery {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .so-single-realisation-gallery {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.so-gallery-thumb {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    font: inherit;
    border-radius: var(--so-radius);
    overflow: hidden;
    cursor: zoom-in;
    background: #e8eef3;
    line-height: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
}

.so-gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: var(--so-shadow-lg);
}

.so-gallery-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.so-single-realisation-hero {
    margin-bottom: 40px;
    border-radius: var(--so-radius-lg);
    overflow: hidden;
    box-shadow: var(--so-shadow-lg);
}

.so-single-realisation-hero__img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

.so-single-realisation-content {
    max-width: min(960px, 100%);
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Plusieurs blocs Image séparés (pas seulement Galerie) : grille côte à côte */
@media (min-width: 480px) {
    .so-single-realisation-content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
        row-gap: 1.25rem;
        align-items: start;
    }

    .so-single-realisation-content > * {
        grid-column: 1 / -1;
    }

    .so-single-realisation-content > .wp-block-image {
        grid-column: span 1;
        margin-left: 0;
        margin-right: 0;
    }

    /* Une seule image (bloc Image) : pas de 2e .wp-block-image au même niveau */
    .so-single-realisation-content:not(:has(> .wp-block-image ~ .wp-block-image)) > .wp-block-image {
        grid-column: 1 / -1;
    }

    .so-single-realisation-content > .wp-block-image.alignleft,
    .so-single-realisation-content > .wp-block-image.alignright,
    .so-single-realisation-content > .wp-block-image.aligncenter {
        float: none;
        width: auto;
        max-width: 100%;
    }
}

@media (min-width: 900px) {
    .so-single-realisation-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.so-single-realisation-content > .wp-block-image figure {
    margin: 0;
}

.so-single-realisation-content > .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: var(--so-radius);
}

/* Images / galeries ajoutées dans l’éditeur (Gutenberg) — grille lisible */
.so-single-realisation-content .wp-block-gallery,
.so-single-realisation-content .wp-block-gallery .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
}

@media (min-width: 600px) {
    .so-single-realisation-content .wp-block-gallery,
    .so-single-realisation-content .wp-block-gallery .blocks-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 900px) {
    .so-single-realisation-content .wp-block-gallery,
    .so-single-realisation-content .wp-block-gallery .blocks-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.so-single-realisation-content .wp-block-gallery .blocks-gallery-item figure {
    margin: 0;
}

.so-single-realisation-content .wp-block-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--so-radius);
}

/* Plusieurs images seules à la suite : grille si elles sont dans un groupe ou colonnes */
.so-single-realisation-content .wp-block-columns {
    gap: 16px;
}

/* Page single réalisation — aération + lien avec le footer */
body.single-realisation .so-single-realisation-main {
    padding-top: 72px;
    padding-bottom: 88px;
}

body.single-realisation .so-footer {
    padding-top: 72px;
    border-top: 4px solid var(--so-accent);
}

.so-single-realisation-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid rgba(27, 58, 92, 0.12);
    border-radius: var(--so-radius-lg);
    box-shadow: 0 8px 32px rgba(27, 58, 92, 0.06);
}

.so-single-realisation-nav .so-btn {
    min-width: 0;
}

/* Ancienne classe (rétrocompat) */
.so-single-realisation-back {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.so-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.so-lightbox[hidden] {
    display: none !important;
}

.so-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.so-lightbox__close {
    position: absolute;
    top: 16px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.so-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.so-pagination {
    text-align: center;
    margin-top: 40px;
}

.so-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.so-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1.5px solid var(--so-border, #E5E7EB);
    color: var(--so-primary, #1B3A5C);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.so-pagination .page-numbers.current,
.so-pagination .page-numbers:hover {
    background: var(--so-accent, #D4A843);
    border-color: var(--so-accent, #D4A843);
    color: #fff;
}

.so-pagination .prev,
.so-pagination .next {
    width: auto;
    padding: 0 16px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .so-hero h1 { font-size: 2.5rem; }
    .so-section__title { font-size: 2rem; }
    .so-services { grid-template-columns: repeat(2, 1fr); }
    .so-why-grid { grid-template-columns: repeat(2, 1fr); }
    .so-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .so-realisations-grid { grid-template-columns: repeat(2, 1fr); }
    .so-realisations-grid--archive { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
    body.so-theme { padding-top: 70px; }

    .so-header__inner { height: 70px; }

    .so-header__logo img,
    .so-header__logo .custom-logo {
        height: 44px;
        max-width: 142px;
    }

    .so-header__nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 24px 16px;
        gap: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        max-height: calc(100vh - 70px - 40px);
    }

    .so-header__nav.active {
        display: flex;
    }

    .so-menu-backdrop {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9998;
        background: rgba(0, 0, 0, 0.3);
    }

    .so-menu-backdrop.active {
        display: block;
    }

    .so-header__nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .so-header__nav li:last-child {
        border-bottom: none;
    }

    .so-header__nav a {
        font-size: 1.1rem;
        display: block;
        padding: 14px 0;
        color: var(--so-primary, #1B3A5C);
    }

    .so-header__nav a::after {
        display: none;
    }

    .so-header__nav a:hover,
    .so-header__nav a.active {
        color: var(--so-accent, #D4A843);
    }

    .so-mobile-toggle {
        display: flex;
        z-index: 10000;
    }

    .so-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .so-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .so-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    body.so-menu-open {
        overflow: hidden;
    }

    .so-nav-scroll-hint {
        position: fixed;
        top: 72px;
        right: 20px;
        z-index: 10001;
        color: var(--so-accent, #D4A843);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        animation: soScrollBounce 1.5s infinite ease-in-out;
    }

    .so-nav-scroll-hint svg {
        filter: drop-shadow(0 2px 4px rgba(212, 168, 67, 0.4));
    }

    .so-nav-scroll-hint--visible {
        opacity: 1;
    }

    @keyframes soScrollBounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(6px); }
    }

    .so-header__cta .so-btn {
        display: none;
    }

    .so-hero { padding: 60px 0; }
    .so-hero h1 { font-size: 2rem; }
    .so-hero__subtitle { font-size: 1rem; }
    .so-hero__checks { flex-direction: column; gap: 12px; }

    .so-section { padding: 60px 0; }
    .so-section__title { font-size: 1.75rem; }

    .so-audience { grid-template-columns: 1fr; }
    .so-services { grid-template-columns: 1fr; }
    .so-why-grid { grid-template-columns: 1fr 1fr; }
    .so-zone { grid-template-columns: 1fr; }
    .so-fee-grid { grid-template-columns: 1fr; }
    .so-steps { grid-template-columns: 1fr; }
    .so-steps::before { display: none; }
    .so-realisations-grid { grid-template-columns: 1fr; }

    .so-cta-banner { padding: 40px 24px; }
    .so-cta-banner h2 { font-size: 1.5rem; }
    .so-cta-final h2 { font-size: 1.75rem; }

    .so-footer__grid { grid-template-columns: 1fr; }
    .so-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

    .so-fournisseurs { gap: 32px; }

    .so-btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    .so-btn-group .so-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .so-hero h1 { font-size: 1.75rem; }
    .so-why-grid { grid-template-columns: 1fr; }
    .so-audience__card { padding: 32px 24px; }
}

/* --- Polish: Placeholder images for realisations --- */
.so-placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 240px;
}

.so-placeholder-img--1 {
    background: linear-gradient(135deg, #1B3A5C 0%, #264d75 50%, #3a6d9e 100%);
}

.so-placeholder-img--2 {
    background: linear-gradient(135deg, #2E7D5B 0%, #3a9e73 50%, #4fb888 100%);
}

.so-placeholder-img--3 {
    background: linear-gradient(135deg, #b8912e 0%, #D4A843 50%, #e0bc6a 100%);
}

/* --- Polish: Fournisseur logos styled --- */
.so-fournisseur__logo {
    width: 120px;
    height: 80px;
    border-radius: var(--so-radius);
    background: var(--so-bg-alt);
    box-shadow: var(--so-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--so-border);
    transition: var(--so-transition);
}

.so-fournisseur:hover .so-fournisseur__logo {
    border-color: var(--so-accent);
    box-shadow: var(--so-shadow-lg);
    transform: translateY(-4px);
}

/* --- Polish: Hero pattern overlay --- */
.so-hero {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212,168,67,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%),
        linear-gradient(135deg, var(--so-primary) 0%, var(--so-primary-dark) 100%);
}

/* --- Polish: Override any Hello Biz body/container conflicts --- */
body.so-theme .elementor-section-wrap,
body.so-theme .elementor .elementor-inner,
body.so-theme #content {
    max-width: none;
    padding: 0;
    margin: 0;
}

body.so-theme .site-main {
    padding: 0;
    margin: 0;
}

/* Ensure our styles take priority over Elementor defaults */
body.so-theme .so-hero,
body.so-theme .so-section,
body.so-theme .so-cta-final,
body.so-theme .so-header,
body.so-theme .so-footer {
    width: 100%;
    max-width: 100%;
}

/* --- Polish: Better audience icon styling --- */
.so-audience__icon {
    color: var(--so-primary);
}

.so-audience__card--particulier .so-audience__icon {
    color: var(--so-accent-dark);
}

/* --- Polish: Service card icon tweaks for SVG --- */
.so-service-card__icon {
    background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(27,58,92,0.05));
}

/* --- Polish: Why item icon circle with SVG --- */
.so-why-item__icon {
    background: rgba(46, 125, 91, 0.08);
}
