/* =============================================================
   Daï Skincare — Frontend CSS v3
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Jost:wght@300;400;500&display=swap');

/* ---- Grille ---- */
.dai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

/* ---- Carte — reset complet soulignement & outline ---- */
a.dai-card,
a.dai-card:link,
a.dai-card:visited,
a.dai-card:hover,
a.dai-card:focus,
a.dai-card:active {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none;
    border-bottom: none !important;
    border: none !important;
}

a.dai-card *,
a.dai-card:hover *,
a.dai-card:focus * {
    text-decoration: none !important;
}

/* ---- Carte de base ---- */
.dai-card {
    background: #faf8f5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none !important;
    color: inherit;
    transition: transform .35s cubic-bezier(.25,.8,.25,1),
                box-shadow  .35s cubic-bezier(.25,.8,.25,1);
    cursor: default;
}

/* Carte cliquable */
.dai-card--linked {
    cursor: pointer;
}

.dai-card--linked:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(61,43,31,.13) !important;
}

.dai-card--linked:hover .dai-img { transform: scale(1.04); }

/* Hover carte sans lien */
.dai-card:not(.dai-card--linked):hover {
    box-shadow: 0 6px 24px rgba(61,43,31,.07);
}

/* ---- Zone image ---- */
.dai-card-img {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0ebe3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dai-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .5s ease;
}

.dai-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5ede2, #ede3d7);
}

/* ---- Zone texte ---- */
.dai-card-info { padding: 24px; }

.dai-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #3d2b1f;
    margin: 0 0 6px;
    line-height: 1.3;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.dai-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #8b7355;
    margin: 0 0 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.dai-desc {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #6b5a4e;
    margin: 0 0 14px;
    line-height: 1.7;
    text-decoration: none !important;
}

/* ---- Ligne décorative ---- */
.dai-divider {
    width: 36px;
    height: 1.5px;
    background: #b8956a;
    margin-top: 8px;
    transition: width .3s ease;
}
.dai-card--linked:hover .dai-divider { width: 60px; }

/* ---- Responsive fallback ---- */
@media (max-width: 767px) {
    .dai-card-img { height: 220px; }
    .dai-name     { font-size: 16px; }
}
