/* ==========================================================================
   IC-KC — Composants réutilisables (boutons, héros, cartes, filtres, CTA)
   ========================================================================== */

/* En-têtes de section */
.section-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-orange-text);
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 3px;
    background-color: var(--brand-orange);
    display: inline-block;
}

.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow,
.contact-aside .eyebrow {
    color: var(--brand-green);
}

.section--dark .eyebrow::before,
.hero .eyebrow::before,
.page-hero .eyebrow::before,
.cta-band .eyebrow::before,
.contact-aside .eyebrow::before {
    background-color: var(--brand-green);
}

.section-lead {
    font-size: 1.06rem;
    color: var(--ink-600);
}

.section--dark .section-lead {
    color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------------------
   Boutons (style géométrique Elevate adapté charte IC-KC)
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.65rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-xs);
    line-height: 1.2;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.btn--primary {
    background-color: var(--brand-orange);
    color: var(--surface-white);
}

.btn--primary:hover {
    background-color: var(--brand-orange-dark);
    color: var(--surface-white);
}

.btn--blue {
    background-color: var(--brand-blue);
    color: var(--surface-white);
}

.btn--blue:hover {
    background-color: var(--brand-blue-dark);
    color: var(--surface-white);
}

.btn--green {
    background-color: var(--brand-green);
    color: var(--ink-950);
}

.btn--green:hover {
    background-color: var(--brand-green-dark);
    color: var(--surface-white);
}

.btn--outline {
    background-color: transparent;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.btn--outline:hover {
    background-color: var(--brand-blue);
    color: var(--surface-white);
}

.btn--light {
    background-color: var(--surface-white);
    color: var(--ink-950);
}

.btn--light:hover {
    background-color: var(--brand-green);
    color: var(--ink-950);
}

.btn--outline-light {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.72);
    color: var(--surface-white);
}

.btn--outline-light:hover {
    background-color: var(--surface-white);
    border-color: var(--surface-white);
    color: var(--ink-950);
}

.btn--sm {
    padding: 0.65rem 1.15rem;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Hero d'accueil vidéo + image de secours
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: clamp(500px, 74vh, 720px);
    display: flex;
    align-items: center;
    background-color: var(--ink-950);
    color: var(--surface-white);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__video,
.hero__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__poster {
    display: none;
}

.hero.is-video-disabled .hero__video {
    display: none;
}

.hero.is-video-disabled .hero__poster {
    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(12, 14, 20, 0.90) 0%,
        rgba(20, 25, 35, 0.78) 54%,
        rgba(28, 54, 186, 0.58) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-block: clamp(3.5rem, 7vw, 6rem);
    max-width: 46rem;
}

.hero__title {
    color: var(--surface-white);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 1.15rem;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 38rem;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.hero__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-xs);
    color: var(--surface-white);
    text-decoration: none;
}

.hero__phone:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--surface-white);
}

.hero__phone-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--brand-green);
    color: var(--ink-950);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero__phone-icon svg {
    width: 18px;
    height: 18px;
}

.hero__phone-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.78);
}

.hero__phone-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.hero__video-toggle {
    position: absolute;
    right: var(--container-pad);
    bottom: 1.25rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    background-color: rgba(12, 14, 20, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-xs);
    color: var(--surface-white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__video-toggle:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }

    .hero__poster {
        display: block;
    }

    .hero__video-toggle {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Bandeau des pages internes avec fil d'Ariane (style Elevate breadcrumb)
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding-block: clamp(3.25rem, 6vw, 5rem);
    background-color: var(--ink-900);
    background-image: var(--gradient-brand-dark);
    color: var(--surface-white);
    border-bottom: 4px solid var(--brand-orange);
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(110deg, rgba(12, 14, 20, 0.84) 0%, rgba(28, 54, 186, 0.72) 100%);
}

.page-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 48rem;
}

.page-hero__title {
    color: var(--surface-white);
    margin-bottom: 0.75rem;
}

.page-hero__lead {
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.25rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--brand-green);
}

.breadcrumb__sep {
    color: var(--brand-orange);
}

.breadcrumb__current {
    color: var(--brand-green);
}

/* --------------------------------------------------------------------------
   Cartes de services (inspirées de .rts-single-offer d'Elevate)
   -------------------------------------------------------------------------- */
.service-card {
    background-color: var(--surface-white);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--brand-blue);
    border-radius: var(--radius-xs);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 120px;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-top-color var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--brand-orange);
}

.service-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--ink-900);
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-card:hover .service-card__media img {
    transform: scale(1.04);
}

.service-card__index {
    position: absolute;
    left: 1rem;
    bottom: 0;
    padding: 0.25rem 0.65rem;
    background-color: var(--brand-orange);
    color: var(--surface-white);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.service-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card__title {
    margin-bottom: 0.6rem;
    color: var(--ink-950);
}

.service-card__desc {
    font-size: 0.96rem;
    color: var(--ink-600);
    margin-bottom: 1rem;
}

.service-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.92rem;
    color: var(--ink-700);
}

.service-card__list li {
    position: relative;
    padding-left: 1.15rem;
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    background-color: var(--brand-green-dark);
    border-radius: 1px;
}

.service-card__footer {
    margin-top: auto;
    padding-top: 0.5rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-blue);
    text-decoration: none;
}

.service-card__link:hover {
    color: var(--brand-orange-text);
}

.service-card__link svg {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   Cartes de réalisations / portfolio (cadrage homogène paysage & portrait)
   -------------------------------------------------------------------------- */
.project-card {
    background-color: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xs);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.project-card[hidden] {
    display: none;
}

.project-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--ink-900);
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-card:hover .project-card__media img {
    transform: scale(1.05);
}

.project-card__trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.project-card__zoom {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-xs);
    background-color: rgba(12, 14, 20, 0.8);
    color: var(--surface-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    transition: background-color var(--transition-fast);
}

.project-card:hover .project-card__zoom {
    background-color: var(--brand-orange);
}

.project-card__zoom svg {
    width: 18px;
    height: 18px;
}

.project-card__body {
    padding: 1.15rem 1.25rem;
    border-top: 3px solid var(--brand-blue);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.75rem;
}

.project-card__tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--brand-orange-text);
}

.project-card__location {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-500);
}

.project-card__title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink-950);
}

.project-card__desc {
    font-size: 0.9rem;
    color: var(--ink-600);
    margin: 0.2rem 0 0;
}

/* Barre de filtres portfolio */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.filter-btn {
    padding: 0.6rem 1.15rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xs);
    background-color: var(--surface-white);
    color: var(--ink-800);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.filter-btn[aria-pressed="true"] {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: var(--surface-white);
}

.filter-status {
    font-size: 0.92rem;
    color: var(--ink-600);
    margin-bottom: 1.25rem;
}

/* Visionneuse photo native <dialog> */
.lightbox-dialog {
    width: min(92vw, 960px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background-color: var(--ink-950);
    color: var(--surface-white);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.lightbox-dialog::backdrop {
    background-color: rgba(12, 14, 20, 0.82);
}

.lightbox-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-dark);
}

.lightbox-dialog__title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--surface-white);
}

.lightbox-dialog__close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xs);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--surface-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox-dialog__close:hover {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.lightbox-dialog__stage {
    position: relative;
    background-color: #05070B;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-dialog__img {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.lightbox-dialog__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border-dark);
    font-size: 0.9rem;
}

.lightbox-dialog__desc {
    margin: 0 0 0.25rem;
    color: rgba(255, 255, 255, 0.86);
    max-width: 44rem;
}

.lightbox-dialog__nav {
    display: flex;
    gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Bandeau d'appel à l'action (CTA)
   -------------------------------------------------------------------------- */
.cta-band {
    background-color: var(--ink-900);
    background-image: linear-gradient(115deg, var(--ink-900) 0%, var(--brand-blue-dark) 100%);
    color: var(--surface-white);
    padding: clamp(2.25rem, 5vw, 3.75rem);
    border-radius: var(--radius-xs);
    border-left: 5px solid var(--brand-orange);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 860px) {
    .cta-band {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cta-band__title {
    color: var(--surface-white);
    margin-bottom: 0.45rem;
}

.cta-band__text {
    color: rgba(255, 255, 255, 0.86);
    max-width: 38rem;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Cartes d'engagements / raisons de choisir IC-KC
   -------------------------------------------------------------------------- */
.reason-card {
    background-color: var(--surface-white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--brand-green);
    border-radius: var(--radius-xs);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.reason-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    border-radius: var(--radius-xs);
    background-color: var(--brand-blue-soft);
    color: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reason-card__icon svg {
    width: 24px;
    height: 24px;
}

.reason-card__title {
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Cartes coordonnées & formulaire de contact
   -------------------------------------------------------------------------- */
.contact-card {
    background-color: var(--surface-white);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--brand-orange);
    border-radius: var(--radius-xs);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    background-color: var(--brand-blue);
    color: var(--surface-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card__icon svg {
    width: 22px;
    height: 22px;
}

.contact-card__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-orange-text);
    margin-bottom: 0.25rem;
}

.contact-card__value {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink-950);
    line-height: 1.4;
}

.contact-card__value a {
    color: var(--ink-950);
    text-decoration: none;
}

.contact-card__value a:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}

/* Formulaire accessible */
.contact-form {
    background-color: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xs);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

@media (min-width: 680px) {
    .form-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--ink-900);
}

.form-required {
    color: var(--brand-orange-text);
}

.form-control {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-xs);
    background-color: var(--surface-white);
    color: var(--ink-950);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(28, 54, 186, 0.16);
    outline: none;
}

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

.form-error {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--state-error-text);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Messages Flash / Alertes */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: var(--radius-xs);
    font-size: 0.96rem;
    font-weight: 500;
}

.alert--success {
    background-color: var(--state-success-bg);
    border-color: var(--state-success-border);
    border-left-color: var(--state-success-text);
    color: var(--state-success-text);
}

.alert--error {
    background-color: var(--state-error-bg);
    border-color: var(--state-error-border);
    border-left-color: var(--state-error-text);
    color: var(--state-error-text);
}

.alert--info {
    background-color: var(--state-info-bg);
    border-color: var(--state-info-border);
    border-left-color: var(--brand-blue);
    color: var(--state-info-text);
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 800;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: var(--radius-xs);
    background-color: var(--brand-blue);
    color: var(--surface-white);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--brand-orange);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}
