/**
 * AMALY SARL — thème teal / navy (structure KABOURA + style.css)
 */

.amaly-site {
    --am-teal: #0d9488;
    --am-teal-dark: #0f766e;
    --am-teal-light: #ccfbf1;
    --am-teal-accent: #5eead4;
    --am-navy: #0c1929;
    --am-navy-soft: #132337;
    --theme-color: var(--am-teal);
    --theme-color2: var(--am-navy);
    --footer-bg: var(--am-navy-soft);

    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    color: #1e293b;
}

.amaly-site h1,
.amaly-site h2,
.amaly-site h3,
.amaly-site h4,
.amaly-site .site-title,
.amaly-site .hero-title,
.amaly-site .navbar-brand {
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.amaly-site .site-title {
    color: var(--am-navy);
}

.amaly-site .site-title span,
.amaly-site .hero-title span {
    color: var(--am-teal);
}

.amaly-site .site-title-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--am-teal);
    color: #fff !important;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.amaly-site .site-title-tagline i {
    color: #fff !important;
    opacity: 0.95;
}

.amaly-site .theme-btn,
.amaly-site a.theme-btn {
    background: var(--am-teal) !important;
    border-color: var(--am-teal) !important;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
}

.amaly-site .theme-btn:hover,
.amaly-site a.theme-btn:hover {
    background: var(--am-teal-dark) !important;
    border-color: var(--am-teal-dark) !important;
}

.amaly-site .theme-btn2,
.amaly-site a.theme-btn2 {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
}

.amaly-site .header-top,
.amaly-site .amaly-header-top.header-top {
    background: var(--am-teal) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.amaly-site .header-top a,
.amaly-site .header-top .header-top-text,
.amaly-site .header-top-social span {
    color: rgba(255, 255, 255, 0.95) !important;
}

.amaly-site .header-top-social a {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-left: 0.5rem;
}

.amaly-site .header-top a:hover,
.amaly-site .header-top-social a:hover {
    color: #fff !important;
    opacity: 1;
}

/* Logo */
.amaly-header-logo img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.amaly-site .footer-logo img,
.amaly-site .amaly-footer-logo img {
    filter: none !important;
    max-height: 88px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.amaly-main-nav .nav-link.active {
    color: var(--am-teal-dark) !important;
}

/* Hero carousel (kaboura structure) */
.amaly-hero-section .hero-single {
    background-size: cover;
    background-position: center;
}

.amaly-hero-section .hero-single::before {
    background: linear-gradient(
        105deg,
        rgba(12, 25, 41, 0.88) 0%,
        rgba(12, 25, 41, 0.5) 55%,
        rgba(13, 148, 136, 0.25) 100%
    ) !important;
}

.amaly-hero-section .hero-sub-title {
    color: #fff !important;
}

.amaly-hero-section .hero-sub-title i {
    color: var(--am-teal-accent);
    margin-right: 0.35rem;
}

.amaly-hero-section .hero-title {
    color: #fff;
}

.amaly-hero-section .hero-title span {
    color: var(--am-teal-accent);
}

.amaly-hero-section .hero-slider .owl-nav button i {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.amaly-hero-section .hero-slider .owl-nav button:hover i {
    background: var(--am-teal);
    border-color: var(--am-teal);
}

.amaly-hero-section .hero-slider .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.45);
}

.amaly-hero-section .hero-slider .owl-dots .owl-dot.active span {
    background: var(--am-teal);
}

/* Trust bar */
.am-trust-bar {
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
    padding-bottom: 1rem;
}

.am-trust-chip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 12px 40px rgba(12, 25, 41, 0.08);
    height: 100%;
}

.am-trust-chip i {
    font-size: 1.35rem;
    color: var(--am-teal);
}

.am-trust-chip strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
    color: var(--am-navy);
}

.am-trust-chip span {
    font-size: 0.75rem;
    color: #64748b;
}

/* About */
.am-about-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(12, 25, 41, 0.12);
}

.am-about-visual > img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.am-rccm-float {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 38%;
    max-width: 180px;
    margin: 0;
    border: 4px solid #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.am-check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.am-check-list li {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
    font-size: 0.9375rem;
}

.am-check-list i {
    color: var(--am-teal);
    margin-top: 0.15rem;
}

/* Service teasers home */
.am-service-teaser {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.am-service-teaser:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(12, 25, 41, 0.1);
    color: inherit;
}

.am-service-teaser-img {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.am-service-teaser-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.am-service-teaser:hover .am-service-teaser-img img {
    transform: scale(1.05);
}

.am-service-teaser-icon {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--am-teal);
    color: #fff;
    display: grid;
    place-items: center;
}

.am-service-teaser-body {
    padding: 1.1rem 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.am-service-teaser-body strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    color: var(--am-navy);
}

.am-service-teaser-body > span:last-child {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
}

.am-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--am-teal-light);
    color: var(--am-teal-dark);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

/* Gallery mosaic */
.am-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 120px;
    gap: 0.75rem;
}

.am-gallery-mosaic--page {
    grid-auto-rows: 140px;
}

.am-gallery-tile {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    grid-column: span 4;
    grid-row: span 2;
    cursor: default;
}

.am-gallery-tile--wide {
    grid-column: span 8;
    grid-row: span 2;
}

.am-gallery-tile--tall {
    grid-column: span 4;
    grid-row: span 3;
}

.am-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.am-gallery-tile:hover img {
    transform: scale(1.06);
}

.am-gallery-tile figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.1rem;
    background: linear-gradient(to top, rgba(12, 25, 41, 0.85) 0%, transparent 55%);
    color: #fff;
    font-size: 0.8125rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.am-gallery-tile:hover figcaption {
    opacity: 1;
}

.am-gallery-tile figcaption span {
    border-left: 3px solid var(--am-teal-accent);
    padding-left: 0.65rem;
}

@media (max-width: 991px) {
    .am-gallery-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    .am-gallery-tile,
    .am-gallery-tile--wide,
    .am-gallery-tile--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .am-gallery-tile--wide {
        grid-column: span 2;
    }

    .am-gallery-tile figcaption {
        opacity: 1;
    }
}

.am-benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.am-benefits-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.9375rem;
}

.am-benefits-list i {
    color: var(--am-teal);
    margin-top: 0.15rem;
}

.am-service-lead {
    font-size: 1.05rem;
}

/* Legacy gallery cards */
.am-gallery-card {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    min-height: 180px;
}

.am-gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.am-gallery-card figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.75rem;
    background: linear-gradient(transparent, rgba(12, 25, 41, 0.85));
    color: #fff;
}

/* Testimonials */
.amaly-testimonial-area.ts-bg {
    background: #fff !important;
}

.amaly-testimonial-area .site-heading p {
    color: var(--am-muted, #5c6578);
}

/* Actualités — cartes même hauteur */
.amaly-blog-area .row.g-4 > [class*="col-"] {
    display: flex;
}

.amaly-blog-area .blog-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.amaly-blog-area .blog-item-img {
    flex-shrink: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.amaly-blog-area .blog-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amaly-blog-area .blog-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.amaly-blog-area .blog-item-info > p {
    flex: 1;
    margin-bottom: 1rem;
}

.amaly-blog-area .blog-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.75em;
}

/* FAQ */
.amaly-faq-area .accordion-button span i {
    color: var(--am-teal);
    margin-right: 0.35rem;
}

/* Page hero inner pages (image + fil d'Ariane) */
.amaly-page-hero {
    position: relative;
    color: #fff;
    padding: clamp(3rem, 8vw, 5rem) 0;
    overflow: hidden;
}

.amaly-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.amaly-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(12, 25, 41, 0.88) 0%,
        rgba(15, 118, 110, 0.55) 100%
    );
    pointer-events: none;
}

.amaly-page-hero-inner {
    position: relative;
    z-index: 1;
}

.amaly-page-hero .am-page-hero-tagline {
    margin-bottom: 0.75rem;
}

.amaly-page-hero h1 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0.5rem 0 0.75rem;
    color: #fff;
}

.amaly-page-hero h1 span {
    color: var(--am-teal-accent);
}

.amaly-page-hero p {
    max-width: 640px;
    opacity: 0.92;
    margin: 0;
    color: #fff;
}

.am-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

.am-breadcrumb,
.am-breadcrumb .active {
    color: rgba(255, 255, 255, 0.88);
}

.am-breadcrumb a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.am-breadcrumb a:hover {
    color: var(--am-teal-accent);
}

/* Services page */
.am-legal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

.am-dl-rows dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.am-dl-rows dd {
    font-weight: 500;
    margin-bottom: 1rem;
}

.am-rccm-thumb img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.am-service-row {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

.am-service-row:last-of-type {
    border-bottom: none;
}

.am-service-row-img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 16/10;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(12, 25, 41, 0.1);
}

.am-service-row-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--am-teal-light);
    color: var(--am-teal-dark);
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.h3-style {
    font-size: 1.5rem;
}

.h4-style {
    font-size: 1.25rem;
}

/* Contact page */
.am-contact-quick-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.am-contact-quick-item:hover {
    border-color: var(--am-teal);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
    color: inherit;
}

.am-cq-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--am-teal-light);
    color: var(--am-teal-dark);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.am-cq-text strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--am-navy);
}

.am-cq-whatsapp .am-cq-icon {
    background: #dcfce7;
    color: #16a34a;
}

.am-contact-panel,
.am-contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 2rem);
    height: 100%;
}

.am-contact-rccm img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.am-btn-whatsapp-inline {
    background: #25d366 !important;
    border-color: #25d366 !important;
}

.am-btn-whatsapp-inline:hover {
    background: #1ebe57 !important;
    border-color: #1ebe57 !important;
}

.am-contact-note {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Header fixe (top bar + navigation) */
.amaly-site .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 24px rgba(12, 25, 41, 0.08);
}

.amaly-site .header-top {
    position: relative;
    z-index: 2;
}

.amaly-site .amaly-main-nav,
.amaly-site .main-navigation {
    position: relative;
    z-index: 1;
    background: #fff !important;
}

.amaly-site .main-navigation .navbar {
    background: #fff !important;
}

body.amaly-site {
    padding-top: var(--am-header-offset, 118px);
}

.am-topbar-wa {
    font-weight: 600 !important;
}

.am-topbar-wa i {
    margin-right: 0.35rem;
}

/* Boutons WhatsApp */
.am-btn-wa-solid {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}

.am-btn-wa-solid:hover {
    background: #1ebe57 !important;
    border-color: #1ebe57 !important;
    color: #fff !important;
}

.am-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

.am-btn-wa:hover {
    background: #1ebe57;
    color: #fff !important;
}

.am-btn-wa-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
}

.am-btn-light-outline {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.am-wa-cta-band {
    background: linear-gradient(135deg, var(--am-teal-dark) 0%, var(--am-navy) 100%);
}

.am-footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: #25d366;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9375rem;
}

.am-footer-wa-btn:hover {
    background: #1ebe57;
    color: #fff !important;
}

.amaly-site .amaly-footer-logo img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Galerie v2 */
.am-gallery-v2 {
    background: #fff;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.am-gallery-v2 .site-title {
    color: var(--am-navy);
}

.am-gallery-v2 .site-title span {
    color: var(--am-teal);
}

.am-gallery-v2-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.am-gallery-v2-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1rem;
    min-height: 420px;
}

.am-gallery-v2-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    min-height: 100%;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
    cursor: zoom-in;
    background: transparent;
}

button.am-gallery-v2-card {
    border: 2px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    width: 100%;
    cursor: zoom-in;
    background: transparent;
    text-align: left;
}

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

.am-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.am-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 25, 41, 0.92);
    cursor: pointer;
}

.am-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: min(960px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.am-lightbox-dialog img {
    max-width: 100%;
    max-height: calc(90vh - 4rem);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.am-lightbox-caption {
    color: #fff;
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.9375rem;
    max-width: 640px;
}

.am-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

body.am-lightbox-open {
    overflow: hidden;
}

.amaly-news-before-footer {
    margin-bottom: 0;
}

.am-gallery-v2-hero img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.am-gallery-v2-hero:hover img {
    transform: scale(1.04);
}

.am-gallery-v2-hero-cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(transparent, rgba(12, 25, 41, 0.92));
    color: #fff;
}

.am-gallery-v2-badge {
    display: inline-block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--am-teal);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.am-gallery-v2-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.75rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--am-teal) transparent;
}

.am-gallery-v2-card {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    min-height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.am-gallery-v2-card img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.am-gallery-v2-card figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.6875rem;
    background: rgba(12, 25, 41, 0.75);
    color: #fff;
}

.am-gallery-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.am-gallery-v2-grid-item {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    box-shadow: 0 12px 32px rgba(12, 25, 41, 0.08);
    border: 1px solid #e2e8f0;
}

.am-gallery-v2-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.am-gallery-v2-grid-item:hover img {
    transform: scale(1.08);
}

.am-gallery-v2-grid-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.75rem;
    background: linear-gradient(transparent, rgba(12, 25, 41, 0.88));
    color: #fff;
}

.am-gallery-v2--compact {
    padding-top: 0;
    padding-bottom: 2rem;
    background: var(--am-surface, #f4f7f9);
}

.am-gallery-v2--compact .am-gallery-v2-layout {
    min-height: 360px;
}

.am-gallery-v2--compact .am-gallery-v2-hero img {
    min-height: 360px;
}

.am-gallery-v2-grid-wrap {
    background: #fff;
}

@media (max-width: 991px) {
    body.amaly-site {
        padding-top: 108px;
    }

    .am-gallery-v2-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .am-gallery-v2-hero img {
        min-height: 260px;
    }

    .am-gallery-v2-strip {
        max-height: none;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* WhatsApp float */
.am-wa-float {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s;
}

.am-wa-float:hover {
    transform: scale(1.06);
    color: #fff;
}

@media (max-width: 991px) {
    .am-trust-bar {
        margin-top: 0;
        padding-top: 1.5rem;
    }

    .amaly-header-logo img {
        max-height: 48px;
    }
}

/* Modal devis (style Kaboura, thème AMALY) */
.amaly-devis-modal-v2 .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(12, 25, 41, 0.28);
}

.amaly-devis-modal-v2 .amaly-devis-close-v2 {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    padding: 10px;
    opacity: 1;
}

.amaly-devis-visual-v2 {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

.amaly-devis-visual-inner {
    position: absolute;
    inset: 0;
}

.amaly-devis-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.amaly-devis-modal-v2.amaly-devis-open .amaly-devis-visual-img {
    transform: scale(1);
}

.amaly-devis-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 25, 41, 0.35) 0%, rgba(12, 25, 41, 0.92) 100%);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.amaly-devis-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--am-teal);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    width: fit-content;
}

.amaly-devis-visual-overlay h3 {
    font-size: clamp(22px, 2.5vw, 28px);
    color: #fff;
    line-height: 1.3;
    margin-bottom: 20px;
    font-family: "Outfit", sans-serif;
}

.amaly-devis-visual-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amaly-devis-visual-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.amaly-devis-visual-list i {
    color: var(--am-teal-accent, #2dd4bf);
}

.amaly-devis-form-panel {
    background: #fff;
}

.amaly-devis-form-inner {
    padding: 28px 32px 32px;
    opacity: 1;
}

.amaly-devis-modal-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--am-teal);
    margin-bottom: 6px;
    font-family: "Outfit", sans-serif;
}

.amaly-devis-modal-v2 .modal-title {
    color: var(--am-navy);
    font-size: 24px;
    margin-bottom: 8px;
    font-family: "Outfit", sans-serif;
}

.amaly-devis-modal-intro {
    font-size: 15px;
    line-height: 1.65;
    color: #5c6578;
    margin-bottom: 20px;
}

.amaly-devis-modal .form-message,
.amaly-contact-form-box .form-message {
    margin-bottom: 16px;
    font-size: 14px;
}

.amaly-devis-modal .form-message.success,
.amaly-contact-form-box .form-message.success {
    color: #198754;
}

.amaly-devis-modal .form-message.error,
.amaly-contact-form-box .form-message.error {
    color: #c0392b;
}

.amaly-devis-modal .form-icon,
.amaly-contact-form-box .form-icon {
    position: relative;
}

.amaly-devis-modal .form-icon > i,
.amaly-contact-form-box .form-icon > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--am-teal-dark);
    z-index: 2;
    font-size: 15px;
}

.amaly-devis-modal .form-icon:has(textarea) > i,
.amaly-contact-form-box .form-icon:has(textarea) > i {
    top: 18px;
    transform: none;
}

.amaly-devis-modal .form-control,
.amaly-contact-form-box .form-control {
    border: 1px solid rgba(12, 25, 41, 0.12);
    border-radius: 10px;
    padding: 12px 16px 12px 44px;
    font-size: 14px;
    min-height: 48px;
    background: #f8fafc;
    width: 100%;
}

.amaly-devis-modal .form-control:focus,
.amaly-contact-form-box .form-control:focus {
    border-color: var(--am-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    background: #fff;
}

.amaly-devis-modal textarea.form-control,
.amaly-contact-form-box textarea.form-control {
    min-height: 110px;
    padding-top: 14px;
}

.amaly-devis-modal select.form-control,
.amaly-contact-form-box select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230c1929' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

@media (max-width: 991px) {
    .amaly-devis-visual-v2 {
        min-height: 240px;
    }

    .amaly-devis-form-inner {
        padding: 24px 20px 28px;
    }
}
