/* ============================================================
   SOUVENIR DETAIL + AMIS — style-detail.css
   Ajouter dans header.php :
   <link rel="stylesheet" href="../../css/style-detail.css">
   ============================================================ */

/* ─── Hero thème ─── */
.theme-hero {
    position: relative;
    width: 100%;
    height: 28rem;
    overflow: hidden;
}
.theme-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}
.theme-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,51,0.8) 100%);
}
.theme-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.4rem 3rem;
    gap: 1rem;
}
.theme-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--rose-secondaire);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    width: fit-content;
    transition: color 0.2s, gap 0.2s;
}
.theme-back:hover { color: var(--rose-primaire); gap: 0.8rem; }
.theme-back svg { width: 1.8rem; height: 1.8rem; stroke: currentColor; }
.theme-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    color: var(--text);
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ─── Tabs ─── */
.theme-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    background: #0d0a2a;
    border-bottom: 1px solid rgba(255,62,194,0.2);
    padding: 0 2rem;
}
.theme-tab {
    padding: 1.2rem 2rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.theme-tab:hover, .theme-tab.active {
    color: var(--rose-primaire);
    border-bottom-color: var(--rose-primaire);
}
.theme-tab-icon {
    padding: 1rem 1.4rem;
    margin-left: auto;
}
.theme-tab-icon svg {
    width: 2rem;
    height: 2rem;
    stroke: currentColor;
    display: block;
}

/* ─── Sections ─── */
.theme-main {
    min-height: 100vh;
    background: var(--bleu-fond);
}
.theme-section {
    max-width: 100rem;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.theme-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--rose-primaire);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}
.theme-empty {
    color: rgba(255,255,255,0.45);
    font-size: 1.4rem;
    padding: 2rem;
    border: 1px dashed rgba(255,62,194,0.3);
    border-radius: 1rem;
    text-align: center;
}
.theme-empty a {
    color: var(--rose-primaire);
    text-decoration: none;
    font-weight: 600;
}

/* ─── Grid souvenirs ─── */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
    gap: 1.6rem;
}
.theme-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1.5px solid rgba(255,62,194,0.2);
    transition: border-color 0.25s, transform 0.2s;
}
.theme-card:hover {
    border-color: rgba(255,62,194,0.6);
    transform: translateY(-2px);
}
.theme-card-img-wrap {
    position: relative;
    height: 14rem;
    overflow: hidden;
}
.theme-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.theme-card:hover .theme-card-img { transform: scale(1.04); }
.theme-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,51,0.6) 100%);
}
.theme-card-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0d0a2a;
    padding: 0.8rem 1.2rem;
}
.theme-card-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
}
.theme-card-badge {
    font-size: 1.1rem;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
}
.theme-card-badge.private {
    background: rgba(255,62,194,0.15);
    color: var(--rose-primaire);
    border: 1px solid rgba(255,62,194,0.4);
}
.theme-card-ami {
    font-size: 1.2rem;
    color: var(--rose-secondaire);
}

/* ─── Page amis ─── */
.amis-main {
    min-height: 100vh;
    background: var(--bleu-fond);
    padding: 2.4rem 2rem 4rem;
}
.amis-header {
    max-width: 80rem;
    margin: 0 auto 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
   
}
.amis-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 3vw, 3.2rem);
    color: var(--text);
}
.amis-theme-label {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.5);
}
.amis-theme-label strong { color: var(--rose-primaire); }

.amis-layout {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.amis-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: var(--rose-primaire);
    margin-bottom: 1.6rem;
    letter-spacing: 0.08em;
}

/* Formulaire ajout */
.amis-add-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.amis-input {
    flex: 1;
    min-width: 22rem;
    padding: 0.9rem 1.4rem;
    border-radius: 0.8rem;
    border: 1.5px solid rgba(255,62,194,0.35);
    background: rgba(255,62,194,0.06);
    color: var(--text);
    font-size: 1.4rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.amis-input:focus { border-color: var(--rose-primaire); }
.amis-input::placeholder { color: rgba(255,255,255,0.3); }
.amis-btn-add {
    padding: 0.9rem 2rem;
    border-radius: 0.8rem;
    border: none;
    background: var(--bleu-fond);
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.2s, transform 0.2s;
}
.amis-btn-add:hover { opacity: 0.85; transform: translateY(-1px); }

/* Liste amis */
.amis-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.amis-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #0d0a2a;
    border: 1.5px solid rgba(255,62,194,0.15);
    border-radius: 1rem;
    padding: 1rem 1.4rem;
    transition: border-color 0.2s;
}
.amis-item:hover { border-color: rgba(255,62,194,0.4); }
.amis-avatar {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: var(--rose-primaire);
    color: var(--bleu-fond);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.amis-avatar-lg {
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
}
.amis-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.amis-name  { font-size: 1.4rem; font-weight: 600; color: var(--text); }
.amis-email { font-size: 1.2rem; color: rgba(255,255,255,0.4); }
.amis-btn-remove {
    padding: 0.5rem 1.2rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255,62,194,0.4);
    background: transparent;
    color: var(--rose-primaire);
    font-size: 1.2rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s, color 0.2s;
}
.amis-btn-remove:hover {
    background: var(--rose-primaire);
    color: var(--bleu-fond);
}

/* Suggestions */
.amis-suggestions {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}
.amis-suggestion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background: #0d0a2a;
    border: 1.5px solid rgba(255,62,194,0.15);
    border-radius: 1.2rem;
    padding: 1.6rem 2rem;
    min-width: 14rem;
    transition: border-color 0.2s;
}
.amis-suggestion-card:hover { border-color: rgba(255,62,194,0.4); }
.amis-suggestion-name {
    font-size: 1.3rem;
    color: var(--text);
    font-weight: 500;
    text-align: center;
}
.amis-btn-sugg {
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid var(--rose-primaire);
    background: transparent;
    color: var(--rose-primaire);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s, color 0.2s;
}
.amis-btn-sugg:hover {
    background: var(--rose-primaire);
    color: var(--bleu-fond);
}

/* ─── Responsive ─── */
@media (max-width: 780px) {
    .theme-hero { height: 22rem; }
    .theme-grid { grid-template-columns: 1fr 1fr; }
    .theme-tabs { padding: 0 1rem; overflow-x: auto; }
    .amis-add-form { flex-direction: column; }
    .amis-input { min-width: 100%; }
}
@media (max-width: 560px) {
    .theme-hero { height: 18rem; }
    .theme-grid { grid-template-columns: 1fr; }
    .amis-suggestions { flex-direction: column; }
}