/* ══════════════════════════════════════════
   MARIAGES — Hero layout & Widget Mariages.net
   ══════════════════════════════════════════ */

/* ── Hero vidéo ── */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.hero-bottom-curve {
    position: relative;
    height: 80px;
    margin-top: -80px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 80px 80px 0 0;
    z-index: 10;
    pointer-events: none;
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* couvre toujours le conteneur quel que soit le ratio de l'écran */
    width: 100vw;
    height: 56.25vw;   /* 16:9 basé sur la largeur */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 basé sur la hauteur */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,.58) 0%,
        rgba(0,0,0,.30) 55%,
        rgba(0,0,0,.05) 100%
    );
    z-index: 1;
}
.hero-video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem 1.5rem;
    max-width: 780px;
}
.hero-video-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero-video-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    max-width: 460px;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
}
.hero-video-cta {
    display: inline-block;
    padding: .85rem 2.5rem;
    border: 1.5px solid rgba(255,255,255,.8);
    border-radius: 2rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    transition: background .25s, border-color .25s, color .25s;
}
.hero-video-cta:hover {
    background: #fff;
    border-color: #fff;
    color: #1a1a1a;
}
@media (max-width: 640px) {
    .hero-video-section { height: 75vh; width: 100%; margin: 0; }
    .hero-bottom-curve  { height: 50px; margin-top: -50px; border-radius: 50% 50% 0 0 / 50px 50px 0 0; }
    .hero-video-title   { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

/* ── Hero texte + image (section sous la vidéo) ── */
.hero-mariage-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}
.hero-mariage-img  { order: 1; flex: 1; min-width: 300px; display: flex; justify-content: flex-end; }
.hero-mariage-text { order: 2; flex: 1; min-width: 280px; max-width: 500px; }

@media (min-width: 768px) {
    .hero-mariage-text { order: 1; }
    .hero-mariage-img  { order: 2; }
}

/* ── Section layout (texte + colonne note) ── */
.mn-section-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem 5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}
.mn-section-text { flex: 1; min-width: 280px; max-width: 480px; padding-top: .25rem; }
.mn-rating-col   { flex: 1; min-width: 280px; max-width: 480px; }

/* En-tête discret mariages.net */
.mn-source-line {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
}
.mn-source-logo { height: 18px; width: auto; }

/* Score global */
.mn-score-row {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    flex-wrap: wrap;
    margin-bottom: .3rem;
}
.mn-score-big {
    font-size: 2rem; font-weight: 700;
    color: var(--color-charcoal, #1a1a1a);
    font-family: var(--font-serif);
    line-height: 1;
}
.mn-recommended {
    font-size: .68rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: #6b6b6b;
    margin-bottom: 1.5rem;
}

/* Barres de notation */
.mn-bars { margin-bottom: 1.5rem; }
.mn-bar-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem;
}
.mn-bar-label { font-size: .78rem; color: #5a5a5a; min-width: 150px; }
@media (max-width: 639px) {
    .mn-bar-label { min-width: 110px; }
}
.mn-bar-track {
    flex: 1;
    height: 5px;
    background: #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
}
.mn-bar-fill { height: 100%; background: #1a1a1a; border-radius: 3px; }
.mn-bar-val { font-size: .78rem; font-weight: 600; color: #1a1a1a; min-width: 2.2rem; text-align: right; }

/* Bouton CTA — le style vient de btn-primary-rouge, mn-cta-btn gère juste l'affichage */
.mn-cta-btn { display: inline-block; }

/* ── Carrousel labels ── */
.mn-carousel-wrap {
    position: relative;
    padding: 2rem 0;
    border-top: 1px solid #a9a9a9;
}
.mn-carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: .75rem 3rem;
    cursor: grab;
}
.mn-carousel-viewport::-webkit-scrollbar { display: none; }
.mn-carousel-viewport.mn-dragging { cursor: grabbing; user-select: none; }
.mn-label-badge {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 5 * 2rem) / 6); /* 6 visibles, 5 gaps */
    height: 130px;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}
@media (max-width: 640px) {
    .mn-label-badge { flex: 0 0 calc((100% - 2 * 2rem) / 3); } /* 3 sur mobile */
}
.mn-carousel-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #ffffff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; line-height: 1;
    color: #5a5a5a;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    z-index: 2;
}
.mn-carousel-btn:hover { background: var(--color-vert); border-color: var(--color-vert); color: #fff; }
.mn-carousel-btn:disabled { opacity: .3; pointer-events: none; }
.mn-carousel-prev { left: 0; }
.mn-carousel-next { right: 0; }

/* ── Carrousel partenaires (défilement automatique) ── */
.partners-section {
    padding: 4rem 0;
    margin-top: 3rem;
    background: #ffffff !important;
    overflow: hidden;
}
.partners-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.partners-overflow {
    overflow: hidden;
    position: relative;
    cursor: grab;
    max-width: 1220px; /* ~5 logos visibles sur desktop */
    margin: 0 auto;
    /* fondu sur les bords */
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.partners-overflow.is-dragging { cursor: grabbing; }
.partners-track {
    display: flex;
    align-items: center;
    gap: 5rem;
    width: max-content;
    will-change: transform;
}
.partner-logo {
    height: 80px;
    width: 180px;
    object-fit: contain;
    opacity: .7;
    filter: grayscale(40%);
    transition: opacity .3s, filter .3s;
    flex-shrink: 0;
    pointer-events: none;
}
.partners-overflow:hover .partner-logo { opacity: 1; filter: grayscale(0%); }
.partner-logo--large  { height: 130px; width: 260px; }
.partner-logo--xlarge { height: 150px; width: 300px; }

@media (max-width: 640px) {
    .partners-track { gap: 3rem; }
    .partner-logo         { height: 75px; width: 160px; }
    .partner-logo--large  { height: 110px; width: 220px; }
    .partner-logo--xlarge { height: 130px; width: 260px; }
}

/* ── Avis clients (cartes style Google) ── */
.mn-stars { color: #f5a623; letter-spacing: .05em; font-size: 1.1rem; }
.mn-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.mn-avatar--f { background: #4285f4; }
.mn-avatar--c { background: #34a853; }
.mn-avatar--m { background: #ea4335; }

/* Wrapper : porte le scroll-reveal + le dimensionnement flex,
   pour que le :hover de .mn-card ne subisse pas le transition-delay du stagger */
.mn-card-reveal {
    flex: 1 1 280px;
    min-width: 260px;
    max-width: 380px;
    display: flex;
}
.mn-card {
    background: #fff;
    border: 1px solid #e8e3dc;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .25s ease, transform .25s ease;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.mn-card:hover {
    box-shadow: 0 8px 24px rgba(60,45,35,.10);
    transform: translateY(-3px);
}

/* Header : avatar + nom/date + logo G */
.mn-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mn-card-header-left { display: flex; align-items: center; gap: .75rem; }
.mn-card-name  { font-weight: 600; font-size: .9rem; color: #1a1a1a; }
.mn-card-date  { font-size: .75rem; color: #888; margin-top: .1rem; }

/* Logo Google SVG inline */
.mn-google-icon { height: 22px; width: auto; flex-shrink: 0; }

/* Texte tronqué */
.mn-card-text {
    font-size: .875rem;
    color: #444;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mn-card-link {
    font-size: .8rem;
    color: #555;
    text-decoration: none;
    margin-top: auto;
}
.mn-card-link:hover { text-decoration: underline; }

/* ── Grille réalisations (6 colonnes internes pour centrer les orphelins) ── */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}
/* Chaque card occupe 2 colonnes → 3 cards par ligne */
.realisations-grid > * {
    grid-column: span 2;
}
/* Dernière ligne avec 2 cards → centrées (tracks 2-3 et 4-5) */
.realisations-grid > :nth-last-child(2):nth-child(3n+1) {
    grid-column: 2 / 4;
}
.realisations-grid > :last-child:nth-child(3n+2) {
    grid-column: 4 / 6;
}
@media (min-width: 640px) {
    .realisations-grid { gap: 1.25rem; }
}
/* Mobile : 2 colonnes, 1 card par colonne */
@media (max-width: 639px) {
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .realisations-grid > * {
        grid-column: span 1;
    }
    /* Annuler le centrage orphelin (inutile sur 2 colonnes) */
    .realisations-grid > :nth-last-child(2):nth-child(3n+1),
    .realisations-grid > :last-child:nth-child(3n+2) {
        grid-column: span 1;
    }
}

/* ── Cards réalisations ── */
.realisation-card {
    background: #fff;
    border-radius: .875rem;
    overflow: hidden;
    border: 1px solid #e2ddd6;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: box-shadow .25s, transform .25s;
    display: block;
    text-decoration: none;
    color: inherit;
}
.realisation-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,.13);
    transform: translateY(-3px);
}
.realisation-card-main {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #e8e3dc;
}
.realisation-card-main img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    display: block;
}
.realisation-card:hover .realisation-card-main img { transform: scale(1.05); }
.realisation-placeholder-main {
    position: absolute;
    inset: 0;
    background: #e8e3dc;
}
.realisation-card-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #d6d0c8;
}
.realisation-card-thumbs img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    display: block;
}
.realisation-placeholder-thumb {
    width: 100%;
    padding-bottom: 100%;
    background: #ccc8c0;
}
.realisation-card-footer {
    padding: .65rem .85rem .75rem;
}
.realisation-card-couple {
    font-family: var(--font-serif);
    font-size: .95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.realisation-card-meta {
    font-size: .72rem;
    color: #999;
}
@media (max-width: 640px) {
    .realisation-card-footer { padding: .4rem .5rem .5rem; }
    .realisation-card-couple { font-size: .78rem; }
    .realisation-card-meta   { font-size: .65rem; }
}

.mn-reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 5rem;
}
