

/* ══════════════════════════════════════════════════════════════
   PAGE PUBLIQUE — .smcl-bd-public
══════════════════════════════════════════════════════════════ */
.smcl-bd-public {
    max-width: 680px; margin: 0 auto; padding: 0 16px 52px;
}

/* ── Hero ────────────────────────────────────────────────── */
.smcl-bd-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: linear-gradient(135deg, #fff7f0 0%, #f0eaff 100%);
    border-radius: var(--bd-radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--bd-shadow);
}

/* Photo — format portrait, rectangulaire */
.smcl-bd-photo-wrap {
    width: 100%; aspect-ratio: 3/4;
    overflow: hidden; flex-shrink: 0;
    background: #e8e0ff;
}
.smcl-bd-photo {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
    transition: transform .4s ease;
}
.smcl-bd-photo-wrap:hover .smcl-bd-photo { transform: scale(1.02); }
.smcl-bd-photo-wrap--empty {
    display: flex; align-items: center; justify-content: center;
}
.smcl-bd-photo-placeholder {
    font-size: 5rem; opacity: .4;
}

/* Info à droite de la photo */
.smcl-bd-hero-info {
    padding: 32px 28px;
    display: flex; flex-direction: column; justify-content: center;
    gap: 16px;
}
.smcl-bd-name {
    font-size: 1.65rem; font-weight: 900;
    color: var(--bd-text); margin: 0; line-height: 1.2;
    text-align: left;
}
.smcl-bd-age-pill {
    display: inline-block;
    background: var(--bd-purple); color: #fff;
    font-size: .7rem; font-weight: 700;
    padding: 3px 10px; border-radius: 50px;
    margin-left: 8px; vertical-align: middle;
}
.smcl-bd-message {
    margin: 0; padding: 14px 16px;
    background: rgba(139,124,246,.08);
    border-left: 4px solid var(--bd-purple);
    border-radius: 0 10px 10px 0;
    font-style: italic; color: #555; font-size: .93rem;
    line-height: 1.6; text-align: left;
}
.smcl-bd-message-quote {
    font-size: 1.4rem; color: var(--bd-purple);
    font-style: normal; line-height: 0; vertical-align: -0.3em;
}
.smcl-bd-momo {
    display: inline-flex; align-items: center;
    gap: 8px; flex-wrap: wrap;
    background: #fff; border: 1.5px solid var(--bd-border);
    border-radius: 50px; padding: 8px 16px;
    font-size: .88rem; color: #444;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.smcl-bd-momo-label { color: var(--bd-muted); font-size: .78rem; }
.smcl-bd-momo-number { font-size: 1rem; color: var(--bd-text); }
.smcl-bd-momo-copy {
    background: var(--bd-bg); border: 1px solid var(--bd-border);
    border-radius: 50px; padding: 4px 12px;
    font-size: .78rem; cursor: pointer;
    transition: var(--bd-trans); white-space: nowrap;
}
.smcl-bd-momo-copy:hover { background: #eee9ff; }

/* Responsive hero — mobile */
@media (max-width: 600px) {
    .smcl-bd-hero {
        grid-template-columns: 1fr;
    }
    .smcl-bd-photo-wrap {
        aspect-ratio: 4/3;   /* paysage sur mobile pour ne pas trop allonger */
        max-height: 260px;
    }
    .smcl-bd-hero-info {
        padding: 20px 18px; text-align: center;
    }
    .smcl-bd-name    { text-align: center; }
    .smcl-bd-message { text-align: left; }
    .smcl-bd-momo    { justify-content: center; }
}
@media (min-width: 601px) and (max-width: 900px) {
    .smcl-bd-hero { grid-template-columns: 200px 1fr; }
}

/* ── Cadeau animé ────────────────────────────────────────── */
.smcl-animated-gift {
    display: flex; justify-content: center;
    margin: 16px 0 24px; pointer-events: none;
}
.smcl-gift-box {
    position: relative; width: 80px;
    animation: smclGiftFloat 2.6s ease-in-out infinite;
}
@keyframes smclGiftFloat {
    0%,100% { transform: translateY(0) rotate(0deg);    }
    25%      { transform: translateY(-12px) rotate(-3deg); }
    75%      { transform: translateY(-7px)  rotate(3deg);  }
}
.smcl-gift-body {
    width: 80px; height: 58px;
    background: #e53935; border-radius: 6px 6px 10px 10px;
    position: relative;
    box-shadow: 0 8px 20px rgba(229,57,53,.38);
}
.smcl-gift-lid {
    width: 88px; height: 20px;
    background: #c62828; border-radius: 8px;
    margin-left: -4px; position: relative;
    transform: rotate(-5deg); transform-origin: right center;
    box-shadow: 0 3px 10px rgba(0,0,0,.22);
    z-index: 2;
    overflow: visible;
}
.smcl-gift-lid-ribbon-h {
    position: absolute; width: 100%; height: 7px;
    background: var(--bd-gold); top: 50%; transform: translateY(-50%);
}
.smcl-gift-lid-ribbon-bow {
    position: absolute; top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 20px;
    background: var(--bd-gold); border-radius: 50% 50% 0 0;
    box-shadow: -13px 0 0 var(--bd-gold);
}
.smcl-gift-ribbon-h {
    position: absolute; width: 100%; height: 8px;
    background: var(--bd-gold); top: 50%; transform: translateY(-50%);
}
.smcl-gift-ribbon-v {
    position: absolute; width: 8px; height: 100%;
    background: var(--bd-gold); left: 50%; transform: translateX(-50%);
}

/* ── Sections communes ───────────────────────────────────── */
.smcl-bd-comment-section,
.smcl-bd-comments-section {
    background: var(--bd-card-bg);
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius-lg);
    padding: 26px 22px;
    margin-bottom: 22px;
    box-shadow: var(--bd-shadow);
}
.smcl-bd-section-header h2,
.smcl-bd-section-header h3 {
    font-size: 1.15rem; font-weight: 800;
    color: var(--bd-text); margin: 0 0 5px;
}
.smcl-bd-section-header p {
    font-size: .83rem; color: var(--bd-muted); margin: 0 0 18px;
}

/* ── Formulaire invité ───────────────────────────────────── */
.smcl-bd-guest-form { display: flex; flex-direction: column; gap: 0; }

/* ── Cards commentaires (publiques) ─────────────────────── */
.smcl-bd-comments-grid {
    display: flex; flex-direction: column; gap: 14px;
}
.smcl-bd-comment-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--bd-bg); border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius); padding: 16px;
    transition: box-shadow var(--bd-trans);
}
.smcl-bd-comment-card:hover { box-shadow: var(--bd-shadow); }
.smcl-bd-comment-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--bd-purple), var(--bd-pink));
    color: #fff; font-size: 1.1rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.smcl-bd-comment-content { flex: 1; min-width: 0; }
.smcl-bd-comment-author  { font-size: .9rem; color: var(--bd-purple-dk); display: block; }
.smcl-bd-comment-date    { font-size: .75rem; color: var(--bd-muted); display: block; margin: 2px 0 8px; }
.smcl-bd-comment-body    { margin: 0; font-size: .9rem; color: #444; line-height: 1.55; }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD PROPRIÉTAIRE — .smcl-bd-dashboard
══════════════════════════════════════════════════════════════ */
.smcl-bd-dashboard {
    max-width: 740px; margin: 0 auto; padding: 0 16px 52px;
}

/* En-tête */
.smcl-bd-dash-header { margin-bottom: 28px; }
.smcl-bd-dash-header h2 {
    font-size: 1.5rem; font-weight: 900;
    color: var(--bd-text); margin: 0 0 16px;
}
.smcl-bd-share-box {
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
    border: 1.5px solid var(--bd-border);
    border-radius: var(--bd-radius); padding: 16px 18px;
}
.smcl-bd-share-label {
    font-size: .86rem; color: #555; margin: 0 0 8px; font-weight: 600;
}
.smcl-bd-share-row {
    display: flex; gap: 10px; align-items: stretch;
}
@media (max-width: 480px) {
    .smcl-bd-share-row { flex-direction: column; }
}

/* Sections dashboard */
.smcl-bd-section {
    background: var(--bd-card-bg); border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius-lg); padding: 26px 22px;
    margin-bottom: 22px; box-shadow: var(--bd-shadow);
}
.smcl-bd-section-title {
    font-size: 1rem; font-weight: 800; color: var(--bd-purple-dk);
    margin: 0 0 22px; padding-bottom: 12px;
    border-bottom: 1.5px solid var(--bd-border);
    display: flex; align-items: center;
}

/* ── Zone upload photo ───────────────────────────────────── */
.smcl-bd-photo-upload-area {
    display: grid; grid-template-columns: 220px 1fr;
    gap: 20px; margin-bottom: 24px;
    padding: 18px; background: var(--bd-bg);
    border-radius: var(--bd-radius); border: 1.5px dashed var(--bd-border);
}
@media (max-width: 560px) {
    .smcl-bd-photo-upload-area { grid-template-columns: 1fr; }
}

/* Preview rectangulaire portrait */
.smcl-bd-photo-preview-wrap {
    position: relative; width: 100%;
    aspect-ratio: 3/4; border-radius: 12px;
    overflow: hidden; background: #e8e0ff;
    border: 2px solid var(--bd-border);
    transition: border-color var(--bd-trans), box-shadow var(--bd-trans);
}
.smcl-bd-photo-preview-wrap:hover {
    border-color: var(--bd-purple);
    box-shadow: 0 0 0 3px rgba(139,124,246,.15);
}
.smcl-bd-photo-preview {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
}
.smcl-bd-photo-preview-empty {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; color: var(--bd-muted); font-size: .82rem;
}
.smcl-bd-photo-preview-empty span { font-size: 2.8rem; }
.smcl-bd-photo-preview-empty p   { margin: 0; text-align: center; }

/* Overlay hover "Modifier" */
.smcl-bd-photo-overlay {
    position: absolute; inset: 0;
    background: rgba(139,124,246,.65);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--bd-trans);
    color: #fff; font-size: .88rem; font-weight: 700;
    pointer-events: none;
}
.smcl-bd-photo-preview-wrap:hover .smcl-bd-photo-overlay { opacity: 1; }

/* Actions droite de la preview */
.smcl-bd-photo-upload-actions {
    display: flex; flex-direction: column;
    justify-content: center; gap: 12px;
}
.smcl-bd-photo-hint {
    font-size: .8rem; color: var(--bd-muted);
    margin: 0; line-height: 1.5;
}
.smcl-bd-upload-progress {
    background: #e8e0ff; border-radius: 50px;
    overflow: hidden; height: 8px;
}
.smcl-bd-upload-bar {
    height: 100%; background: linear-gradient(90deg, var(--bd-purple), var(--bd-pink));
    border-radius: 50px; width: 0%; transition: width .2s ease;
}
.smcl-bd-upload-status {
    font-size: .83rem; font-weight: 600; margin: 0;
}

/* ── Cards commentaires (admin) ──────────────────────────── */
.smcl-bd-comments-admin-grid {
    display: flex; flex-direction: column; gap: 12px;
}
.smcl-bd-comment-card--admin {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px; align-items: flex-start;
}
.smcl-bd-comment-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 10px; margin-bottom: 8px;
    flex-wrap: wrap;
}
.smcl-bd-comment-phone {
    display: block; font-size: .75rem; color: var(--bd-muted); margin-top: 2px;
}
.smcl-bd-comment-actions {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}
/* ══════════════════════════════════════════════════════════════════
   SMCL — Mon Anniversaire  v3
   Design : élégant & festif — noir charbon / or / ivoire / cramoisi
   Fonts  : Cormorant Garamond (display) + DM Sans (body)
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Tokens ────────────────────────────────────────────────── */
:root {
    /* ── Couleurs de base ─────────────────────────────────── */
    --bd-ink:       #1a1a2e;
    --bd-text:      #1a1a2e;        /* alias de --bd-ink */
    --bd-gold:      #c9a84c;
    --bd-gold-lt:   #e8c97a;
    --bd-gold-bg:   #fdf8ec;
    --bd-ivory:     #faf8f4;
    --bd-bg:        #faf8f4;        /* alias de --bd-ivory */
    --bd-card:      #ffffff;
    --bd-card-bg:   #ffffff;        /* alias de --bd-card */
    --bd-muted:     #7a7a8a;
    --bd-border:    #e8e3d9;
    --bd-crimson:   #c0392b;
    --bd-green:     #1d7a4e;
    --bd-purple:    #8B7CF6;
    --bd-purple-dk: #5b4fcf;
    --bd-pink:      #FF6B6B;

    /* ── Rayons ───────────────────────────────────────────── */
    --bd-r-sm:      8px;
    --bd-r-md:      16px;
    --bd-r-lg:      24px;
    --bd-radius:    12px;           /* rayon générique */
    --bd-radius-lg: 20px;           /* rayon large générique */

    /* ── Ombres ───────────────────────────────────────────── */
    --bd-shadow-sm: 0 2px 12px rgba(26,26,46,.06);
    --bd-shadow-md: 0 8px 32px rgba(26,26,46,.10);
    --bd-shadow-lg: 0 20px 60px rgba(26,26,46,.14);
    --bd-shadow:    0 4px 20px rgba(26,26,46,.08);  /* ombre générique */

    /* ── Transitions ──────────────────────────────────────── */
    --bd-t:         .22s ease;
    --bd-trans:     .22s ease;      /* alias de --bd-t */

    /* ── Typographie ──────────────────────────────────────── */
    --bd-font-disp: 'Cormorant Garamond', Georgia, serif;
    --bd-font-body: 'DM Sans', system-ui, sans-serif;

    /* ── Variables SMCL générales ─────────────────────────── */
    --smcl-primary:     #8B7CF6;
    --smcl-primary-dk:  #5b4fcf;
    --smcl-accent:      #FF6B6B;
    --smcl-bg:          #f9f7ff;
    --smcl-text:        #1a1a2e;
    --smcl-muted:       #7a7a8a;
    --smcl-border:      #e5e0f8;
    --smcl-radius:      14px;
    --smcl-shadow:      0 4px 20px rgba(139,124,246,.12);
    --font-body:        'DM Sans', system-ui, sans-serif;
    --ink-light:        #7a7a8a;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE PUBLIQUE — .smcl-pub
═══════════════════════════════════════════════════════════════ */

.smcl-pub {
    font-family: var(--bd-font-body);
    color: var(--bd-ink);
    background: var(--bd-ivory);
    min-height: 100vh;
}

/* ── HERO ─────────────────────────────────────────────────── */
.smcl-pub__hero {
    position: relative;
    display: grid;
    /* Photo portrait plus large, section info plus spacieuse */
    grid-template-columns: 440px 1fr;
    min-height: 680px;
    overflow: hidden;
    background: var(--bd-ink);
}

/* Confettis — réduits sur mobile pour performance Android */
.smcl-pub__confetti {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    overflow: hidden;
}
.smcl-pub__c {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 2px;
    opacity: .5;
    /* Animation plus légère : durée plus longue = moins de repaints */
    animation: smcl-fall linear infinite;
    /* Réduit le travail GPU */
    will-change: transform;
}
/* Sur mobile : désactiver la moitié des confettis pour économiser le CPU */
@media (max-width: 680px) {
    .smcl-pub__c:nth-child(even) { display: none; }
    .smcl-pub__c { animation-duration: 10s !important; opacity: .35; }
}
.smcl-pub__c--0 { background: var(--bd-gold);    left:  8%; animation-duration:6.2s; animation-delay:0s;    top:-20px; }
.smcl-pub__c--1 { background: #e74c3c;            left: 18%; animation-duration:7.1s; animation-delay:1.2s;  top:-20px; width:6px; height:6px; }
.smcl-pub__c--2 { background: var(--bd-gold-lt);  left: 30%; animation-duration:5.8s; animation-delay:.6s;   top:-20px; width:5px; height:5px; border-radius:50%; }
.smcl-pub__c--3 { background: #3498db;            left: 50%; animation-duration:6.9s; animation-delay:2s;    top:-20px; }
.smcl-pub__c--4 { background: var(--bd-gold);     left: 68%; animation-duration:7.4s; animation-delay:.3s;   top:-20px; width:6px; border-radius:50%; }
.smcl-pub__c--5 { background: #e74c3c;            left: 82%; animation-duration:6s;   animation-delay:1.8s;  top:-20px; }
/* Repeat 3 cycles */
.smcl-pub__c:nth-child(n+7)  { left: calc(5%  * (var(--i,1) + 1)); animation-delay: calc(var(--d,.4s) + .5s); }
.smcl-pub__c:nth-child(7)  { left:12%;  animation-duration:6.5s; animation-delay:3s; background:var(--bd-gold); }
.smcl-pub__c:nth-child(8)  { left:22%;  animation-duration:7s;   animation-delay:3.5s; background:#e74c3c; width:5px; }
.smcl-pub__c:nth-child(9)  { left:35%;  animation-duration:5.5s; animation-delay:2.8s; background:var(--bd-gold-lt); }
.smcl-pub__c:nth-child(10) { left:55%;  animation-duration:6.8s; animation-delay:4s; background:#3498db; border-radius:50%; }
.smcl-pub__c:nth-child(11) { left:72%;  animation-duration:7.2s; animation-delay:1s; background:var(--bd-gold); }
.smcl-pub__c:nth-child(12) { left:88%;  animation-duration:6.3s; animation-delay:2.5s; background:#e74c3c; width:5px; }
.smcl-pub__c:nth-child(13) { left:5%;   animation-duration:5.9s; animation-delay:4.5s; background:var(--bd-gold-lt); border-radius:50%; }
.smcl-pub__c:nth-child(14) { left:42%;  animation-duration:7.3s; animation-delay:.9s; background:var(--bd-gold); }
.smcl-pub__c:nth-child(15) { left:62%;  animation-duration:6.1s; animation-delay:3.2s; background:#e74c3c; width:6px; }
.smcl-pub__c:nth-child(16) { left:78%;  animation-duration:5.7s; animation-delay:1.5s; background:var(--bd-gold-lt); }
.smcl-pub__c:nth-child(17) { left:93%;  animation-duration:6.6s; animation-delay:2.2s; background:var(--bd-gold); border-radius:50%; }
.smcl-pub__c:nth-child(18) { left:26%;  animation-duration:7.5s; animation-delay:.1s; background:#3498db; width:5px; }

@keyframes smcl-fall {
    0%   { transform: translateY(-20px) rotate(0deg);   opacity:.6; }
    100% { transform: translateY(600px) rotate(360deg); opacity:0;  }
}

/* Photo col */
.smcl-pub__photo-col {
    position: relative; z-index: 1;
    overflow: hidden;
}
.smcl-pub__photo-frame {
    width: 100%; height: 100%;
    /* Hauteur minimale augmentée pour portraits plein corps */
    min-height: 640px;
    position: relative; overflow: hidden;
}
.smcl-pub__photo {
    width: 100%; height: 100%;
    /* object-position center pour ne pas couper les pieds */
    object-fit: cover; object-position: center center;
    display: block;
}
.smcl-pub__photo-shine {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,.15) 0%, transparent 60%);
    pointer-events: none;
}
.smcl-pub__photo-frame--empty {
    background: linear-gradient(135deg, #2a2a4e 0%, #1a1a2e 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 6rem; opacity: .35;
}

/* Info col */
.smcl-pub__info-col {
    position: relative; z-index: 1;
    /* Padding généreux pour respirer */
    padding: 64px 52px;
    display: flex; flex-direction: column; justify-content: center; gap: 28px;
    /* fine ligne or entre les colonnes */
    border-left: 1px solid rgba(201,168,76,.25);
}
.smcl-pub__eyebrow {
    font-family: var(--bd-font-body);
    /* Texte plus grand pour les seniors */
    font-size: 1rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--bd-gold); margin: 0; font-weight: 500;
}
.smcl-pub__name {
    font-family: var(--bd-font-disp);
    /* Nom très grand et lisible */
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700; color: #fff;
    line-height: 1.05; margin: 0;
}
.smcl-pub__age {
    display: inline-flex;
}
.smcl-pub__age-num {
    font-family: var(--bd-font-body);
    /* Badge âge plus visible */
    font-size: .9rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--bd-gold); color: var(--bd-ink);
    padding: 7px 18px; border-radius: 50px;
}
.smcl-pub__quote {
    font-family: var(--bd-font-disp);
    /* Message plus lisible — taille senior */
    font-size: 1.35rem; font-style: italic; line-height: 1.75;
    color: rgba(255,255,255,.82);
    border-left: 3px solid var(--bd-gold);
    margin: 0; padding: 14px 0 14px 22px;
    position: relative;
}
.smcl-pub__quote-mark {
    width: 32px; height: 24px;
    display: inline-block; vertical-align: middle;
    margin-right: 6px; color: var(--bd-gold);
}
.smcl-pub__momo {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(201,168,76,.3);
    border-radius: 50px; padding: 9px 16px;
    backdrop-filter: blur(6px);
}
.smcl-pub__momo-icon { font-size: 1.2rem; }
.smcl-pub__momo-body { display: flex; flex-direction: column; }
.smcl-pub__momo-label { font-size: .68rem; color: rgba(255,255,255,.5); letter-spacing: .08em; text-transform: uppercase; }
.smcl-pub__momo-num { font-size: .95rem; color: #fff; font-weight: 600; }
.smcl-pub__momo-copy {
    background: var(--bd-gold); color: var(--bd-ink);
    border: none; border-radius: 50px; padding: 5px 14px;
    font-size: .78rem; font-weight: 700; cursor: pointer;
    transition: var(--bd-t); white-space: nowrap;
    font-family: var(--bd-font-body);
}
.smcl-pub__momo-copy:hover { background: var(--bd-gold-lt); }

/* Cadeau animé — animation allégée */
.smcl-pub__gift { display: flex; justify-content: flex-start; }
.smcl-pub__gift-box {
    width: 64px; position: relative;
    /* Animation plus lente et douce — moins de CPU sur Android */
    animation: smcl-float 4s ease-in-out infinite;
}
@keyframes smcl-float {
    0%,100% { transform: translateY(0);    }
    50%     { transform: translateY(-8px); }
}
/* Désactiver le cadeau animé sur mobile si préférence réduite */
@media (prefers-reduced-motion: reduce) {
    .smcl-pub__gift-box { animation: none; }
}
.smcl-pub__gift-lid {
    width: 70px; height: 18px; border-radius: 5px;
    background: #c0392b; margin-left: -3px;
    transform: rotate(-5deg); transform-origin: right center;
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
    position: relative; overflow: visible; z-index: 2;
}
.smcl-pub__gift-bow {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 18px;
    background: var(--bd-gold); border-radius: 50% 50% 0 0;
    box-shadow: -12px 2px 0 var(--bd-gold);
}
.smcl-pub__gift-body {
    width: 64px; height: 52px; background: #e53935;
    border-radius: 4px 4px 8px 8px;
    position: relative; box-shadow: 0 6px 16px rgba(229,57,53,.4);
}
.smcl-pub__gift-ribbon-h,
.smcl-pub__gift-ribbon-v {
    position: absolute; background: var(--bd-gold);
}
.smcl-pub__gift-ribbon-h { width:100%; height:7px; top:50%; transform:translateY(-50%); }
.smcl-pub__gift-ribbon-v { width:7px; height:100%; left:50%; transform:translateX(-50%); }

/* ── SECTIONS COMMUNES ────────────────────────────────────── */
.smcl-pub__msg-section,
.smcl-pub__comments-section {
    max-width: 680px; margin: 44px auto; padding: 0 20px;
}
.smcl-pub__section-label {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--bd-font-body);
    font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
    font-weight: 700; color: var(--bd-muted);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bd-border);
}
.smcl-pub__section-label span { font-size: 1.3rem; }

/* ── FORMULAIRE INVITÉ ────────────────────────────────────── */
.smcl-pub__form {
    background: var(--bd-card); border: 1px solid var(--bd-border);
    border-radius: var(--bd-r-lg); padding: 36px 30px;
    box-shadow: var(--bd-shadow-sm);
}
.smcl-pub__form-hint {
    font-size: .9rem; color: var(--bd-muted);
    margin: 0 0 24px; letter-spacing: .04em;
}
.smcl-pub__form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 520px) { .smcl-pub__form-row { grid-template-columns: 1fr; gap: 0; } }

/* Champs plus spacieux — confort mobile et seniors */
.smcl-pub__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.smcl-pub__label {
    font-size: .95rem; font-weight: 700; color: var(--bd-ink);
    display: flex; justify-content: space-between; align-items: baseline;
}
.smcl-pub__counter { font-size: .8rem; font-weight: 400; color: var(--bd-muted); }
/* Inputs grands — touch-friendly 48px min-height (WCAG) */
.smcl-pub__input {
    width: 100%; box-sizing: border-box;
    padding: 14px 18px; border: 2px solid var(--bd-border);
    border-radius: var(--bd-r-sm); font-size: 1.05rem;
    font-family: var(--bd-font-body); color: var(--bd-ink);
    background: var(--bd-ivory); outline: none;
    min-height: 52px;
    transition: border-color var(--bd-t), box-shadow var(--bd-t);
}
.smcl-pub__input:focus {
    border-color: var(--bd-gold);
    box-shadow: 0 0 0 4px rgba(201,168,76,.14);
}
.smcl-pub__textarea { resize: vertical; min-height: 120px; line-height: 1.65; }
/* Bouton d'envoi — grand et accessible au doigt */
.smcl-pub__submit {
    width: 100%; padding: 18px;
    background: var(--bd-ink); color: var(--bd-gold);
    border: none; border-radius: var(--bd-r-md);
    font-family: var(--bd-font-body); font-size: 1.05rem; font-weight: 700;
    letter-spacing: .06em; cursor: pointer;
    min-height: 56px;
    transition: var(--bd-t);
    margin-top: 8px;
}
.smcl-pub__submit:hover { background: #2a2a4e; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,26,46,.2); }
@media (max-width: 520px) {
    .smcl-pub__submit { font-size: 1.1rem; padding: 20px; min-height: 60px; }
    .smcl-pub__input  { font-size: 1.05rem; padding: 15px 16px; min-height: 54px; }
}

/* ── SUCCESS ──────────────────────────────────────────────── */
.smcl-pub__success-card {
    text-align: center; padding: 44px 24px;
    background: var(--bd-gold-bg); border: 1px solid rgba(201,168,76,.3);
    border-radius: var(--bd-r-lg);
}
.smcl-pub__success-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.smcl-pub__success-card h3 {
    font-family: var(--bd-font-disp); font-size: 1.6rem;
    color: var(--bd-ink); margin: 0 0 8px;
}
.smcl-pub__success-card p { color: var(--bd-muted); margin: 0; }

/* ── ERREUR ───────────────────────────────────────────────── */
.smcl-pub__error-bar {
    background: #fef2f2; border-left: 3px solid var(--bd-crimson);
    padding: 12px 16px; border-radius: var(--bd-r-sm);
    color: var(--bd-crimson); font-size: .87rem;
    margin-bottom: 16px;
}
.smcl-bd-error {
    text-align: center; padding: 48px 24px; color: var(--bd-muted);
}
.smcl-bd-error span { font-size: 2.5rem; display: block; margin-bottom: 12px; }

/* ── COMMENTAIRES (publics) ───────────────────────────────── */
.smcl-pub__comments-list { display: flex; flex-direction: column; gap: 16px; }
.smcl-pub__comment {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--bd-card); border: 1px solid var(--bd-border);
    border-radius: var(--bd-r-md); padding: 20px 22px;
    box-shadow: var(--bd-shadow-sm);
    transition: box-shadow var(--bd-t);
}
.smcl-pub__comment:hover { box-shadow: var(--bd-shadow-md); }
.smcl-pub__comment-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--bd-ink), #2d3561);
    color: var(--bd-gold); font-size: 1.2rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bd-font-body);
}
.smcl-pub__comment-body { flex: 1; }
.smcl-pub__comment-meta {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px; margin-bottom: 8px;
}
.smcl-pub__comment-meta strong { font-size: 1rem; color: var(--bd-ink); }
.smcl-pub__comment-meta time   { font-size: .8rem; color: var(--bd-muted); }
.smcl-pub__comment-body p      { margin: 0; font-size: 1rem; color: #444; line-height: 1.65; }

/* ── RESPONSIVE HERO ──────────────────────────────────────── */
@media (max-width: 680px) {
    .smcl-pub__hero { grid-template-columns: 1fr; min-height: auto; }
    /* Sur mobile : photo portrait plein format, sans couper les pieds */
    .smcl-pub__photo-frame {
        min-height: 480px;
        aspect-ratio: 3/4;
        max-height: 70vw;
    }
    .smcl-pub__photo {
        object-position: center center;
    }
    .smcl-pub__info-col {
        padding: 32px 22px;
        border-left: none;
        border-top: 1px solid rgba(201,168,76,.2);
        gap: 20px;
    }
    .smcl-pub__name { font-size: 2.4rem; }
    .smcl-pub__quote { font-size: 1.15rem; }
}
@media (min-width: 681px) and (max-width: 940px) {
    .smcl-pub__hero { grid-template-columns: 320px 1fr; }
    .smcl-pub__photo-frame { min-height: 580px; }
    .smcl-pub__info-col { padding: 44px 32px; }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD PROPRIÉTAIRE — .smcl-dash
═══════════════════════════════════════════════════════════════ */
.smcl-dash {
    font-family: var(--bd-font-body);
    color: var(--bd-ink);
    background: var(--bd-ivory);
    min-height: 100vh;
    padding: 0 0 60px;
}

/* En-tête dashboard */
.smcl-dash__header {
    background: var(--bd-ink);
    padding: 36px 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    border-bottom: 1px solid rgba(201,168,76,.2);
}
.smcl-dash__header-text h2 {
    font-family: var(--bd-font-disp);
    font-size: 1.9rem; font-weight: 700; color: #fff;
    margin: 0 0 4px;
}
.smcl-dash__header-text p { color: rgba(255,255,255,.5); margin: 0; font-size: .85rem; }

/* Lien partage */
.smcl-dash__share {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(201,168,76,.25);
    border-radius: 50px; padding: 8px 12px 8px 16px; max-width: 420px; width: 100%;
}
.smcl-dash__share-icon { font-size: 1rem; color: var(--bd-gold); }
.smcl-dash__share-input {
    flex: 1; background: none; border: none; outline: none;
    font-size: .8rem; color: rgba(255,255,255,.7);
    font-family: var(--bd-font-body);
    min-width: 0;
}
.smcl-dash__share-btn {
    background: var(--bd-gold); color: var(--bd-ink);
    border: none; border-radius: 50px; padding: 5px 14px;
    font-size: .78rem; font-weight: 700; cursor: pointer;
    transition: var(--bd-t); white-space: nowrap;
    font-family: var(--bd-font-body);
}
.smcl-dash__share-btn:hover { background: var(--bd-gold-lt); }

/* Notices */
.smcl-dash__notice {
    max-width: 1100px; margin: 16px auto 0; padding: 12px 20px;
    border-radius: var(--bd-r-sm); font-size: .88rem; font-weight: 500;
}
.smcl-dash__notice--ok  { background: #ecfdf5; border-left: 3px solid var(--bd-green); color: var(--bd-green); }
.smcl-dash__notice--err { background: #fef2f2; border-left: 3px solid var(--bd-crimson); color: var(--bd-crimson); }

/* Body layout */
.smcl-dash__body {
    max-width: 1100px; margin: 28px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px; align-items: start;
}
@media (max-width: 800px) {
    .smcl-dash__body { grid-template-columns: 1fr; }
    .smcl-dash__header { flex-direction: column; align-items: flex-start; }
    .smcl-dash__share { max-width: 100%; }
}

/* Cartes communes */
.smcl-dash__profile-card,
.smcl-dash__messages-card {
    background: var(--bd-card); border: 1px solid var(--bd-border);
    border-radius: var(--bd-r-lg); overflow: hidden;
    box-shadow: var(--bd-shadow-sm);
}

/* ── Zone photo ─────────────────────────────────────────── */
.smcl-dash__photo-area {
    display: flex; flex-direction: column; gap: 12px;
    align-items: center;
    background: var(--bd-ink); padding: 28px 24px 20px;
}
.smcl-dash__photo-frame {
    width: 200px; aspect-ratio: 3/4;
    border-radius: 12px; overflow: hidden;
    position: relative; cursor: pointer;
    border: 2px solid rgba(201,168,76,.4);
    box-shadow: 0 8px 28px rgba(0,0,0,.4);
    transition: border-color var(--bd-t), box-shadow var(--bd-t);
    background: #2a2a4e;
}
.smcl-dash__photo-frame:hover {
    border-color: var(--bd-gold);
    box-shadow: 0 12px 36px rgba(0,0,0,.5);
}
.smcl-dash__photo-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
}
.smcl-dash__photo-empty {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    color: rgba(255,255,255,.35);
}
.smcl-dash__photo-empty svg { width: 40px; height: 40px; }
.smcl-dash__photo-empty p { margin: 0; font-size: .82rem; text-align: center; }
.smcl-dash__photo-overlay {
    position: absolute; inset: 0;
    background: rgba(201,168,76,.82);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    opacity: 0; transition: opacity var(--bd-t);
    color: var(--bd-ink); font-weight: 700; font-size: .85rem;
}
.smcl-dash__photo-overlay svg { width: 26px; height: 26px; }
.smcl-dash__photo-frame:hover .smcl-dash__photo-overlay { opacity: 1; }

/* Progress upload */
.smcl-dash__upload-status {
    width: 100%; max-width: 200px;
}
.smcl-dash__upload-bar {
    height: 4px; background: rgba(255,255,255,.12);
    border-radius: 50px; overflow: hidden;
}
.smcl-dash__upload-fill {
    height: 100%; background: var(--bd-gold);
    border-radius: 50px; width: 0%; transition: width .15s ease;
}
.smcl-dash__upload-status p {
    font-size: .78rem; text-align: center; margin: 6px 0 0; color: rgba(255,255,255,.6);
}
.smcl-dash__photo-hint {
    font-size: .75rem; color: rgba(255,255,255,.4);
    text-align: center; margin: 0; line-height: 1.5;
}
.smcl-dash__photo-hint small { font-size: .7rem; }

/* ── Formulaire profil ──────────────────────────────────── */
.smcl-dash__form {
    padding: 24px; display: flex; flex-direction: column; gap: 0;
}
.smcl-dash__form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 440px) { .smcl-dash__form-row { grid-template-columns: 1fr; } }

.smcl-dash__field {
    display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px;
}
.smcl-dash__field label {
    font-size: .81rem; font-weight: 600; color: var(--bd-ink);
    display: flex; justify-content: space-between; align-items: baseline;
}
.smcl-dash__counter { font-size: .74rem; font-weight: 400; color: var(--bd-muted); }
.smcl-dash__field input,
.smcl-dash__field textarea {
    width: 100%; box-sizing: border-box;
    padding: 10px 13px; border: 1.5px solid var(--bd-border);
    border-radius: var(--bd-r-sm); font-size: .92rem;
    font-family: var(--bd-font-body); color: var(--bd-ink);
    background: var(--bd-ivory); outline: none;
    transition: border-color var(--bd-t), box-shadow var(--bd-t);
}
.smcl-dash__field input:focus,
.smcl-dash__field textarea:focus {
    border-color: var(--bd-gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.1);
}
.smcl-dash__field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.smcl-dash__save-btn {
    width: 100%; padding: 13px;
    background: var(--bd-ink); color: var(--bd-gold);
    border: none; border-radius: var(--bd-r-md);
    font-family: var(--bd-font-body); font-size: .9rem; font-weight: 700;
    letter-spacing: .06em; cursor: pointer; margin-top: 4px;
    transition: var(--bd-t);
}
.smcl-dash__save-btn:hover { background: #2a2a4e; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,26,46,.2); }

/* ── Messages reçus ─────────────────────────────────────── */
.smcl-dash__messages-header {
    padding: 20px 24px; border-bottom: 1px solid var(--bd-border);
}
.smcl-dash__messages-header h3 {
    margin: 0; font-size: 1rem; font-weight: 700; color: var(--bd-ink);
    display: flex; align-items: center;
}
.smcl-dash__badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; border-radius: 50%;
    background: var(--bd-ink); color: var(--bd-gold);
    font-size: .7rem; font-weight: 700;
    margin-left: 8px; padding: 0 5px;
}
.smcl-dash__messages-list { display: flex; flex-direction: column; }
.smcl-dash__msg {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px 20px; border-bottom: 1px solid var(--bd-border);
    transition: background var(--bd-t);
}
.smcl-dash__msg:last-child { border-bottom: none; }
.smcl-dash__msg:hover { background: var(--bd-ivory); }
.smcl-dash__msg-avatar {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bd-ink), #2d3561);
    color: var(--bd-gold); font-size: .95rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.smcl-dash__msg-body { flex: 1; min-width: 0; }
.smcl-dash__msg-meta {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 8px; margin-bottom: 6px; flex-wrap: wrap;
}
.smcl-dash__msg-meta strong { font-size: .88rem; color: var(--bd-ink); display: block; }
.smcl-dash__msg-meta span   { font-size: .74rem; color: var(--bd-muted); }
.smcl-dash__msg-actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.smcl-dash__msg-actions time { font-size: .72rem; color: var(--bd-muted); white-space: nowrap; }
.smcl-dash__del {
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: var(--bd-t);
    color: var(--bd-muted);
}
.smcl-dash__del svg { width: 14px; height: 14px; }
.smcl-dash__del:hover { background: #fef2f2; color: var(--bd-crimson); }
.smcl-dash__msg-body p { margin: 0; font-size: .88rem; color: #444; line-height: 1.55; }

.smcl-dash__no-msg {
    text-align: center; padding: 52px 24px; color: var(--bd-muted);
}
.smcl-dash__no-msg-icon { font-size: 2.6rem; display: block; margin-bottom: 12px; }
.smcl-dash__no-msg p { margin: 0 0 6px; font-weight: 500; }
.smcl-dash__no-msg small { font-size: .8rem; }

/* ── Correctifs manquants birthday v3 ──────────────────────── */
.smcl-pub__photo-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: 5rem; opacity: .25;
    background: linear-gradient(135deg, #2a2a4e, var(--bd-ink));
}
/* upload-msg est un <p> inline stylé par JS — pas de classe CSS nécessaire */
/* smcl-bd-error déjà défini dans le CSS (présent) */

/* ══════════════════════════════════════════════════════════════
   SMCL — DESIGN SYSTEM GLOBAL
   Styles pour : login, register, create, profile, view
══════════════════════════════════════════════════════════════ */

/* ── Reset et base ─────────────────────────────────────────── */
.smcl-auth-page *,
.smcl-create-page *,
.smcl-profile-page * {
    box-sizing: border-box;
}

/* ── Typographie globale via Google Fonts ─────────────────── */
.smcl-auth-page,
.smcl-create-page,
.smcl-profile-page {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: #1a1a2e;
    line-height: 1.55;
}

/* ── Alertes ───────────────────────────────────────────────── */
.smcl-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: .93rem;
    font-weight: 500;
    animation: smclFadeIn .3s ease;
}
.smcl-alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.smcl-alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }
.smcl-alert-icon    { font-size: 1.1rem; flex-shrink: 0; line-height: 1.4; }

@keyframes smclFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Formulaires ───────────────────────────────────────────── */
.smcl-form { display: flex; flex-direction: column; gap: 0; }

.smcl-form-group {
    margin-bottom: 18px;
}
.smcl-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #5b5b7a;
    margin-bottom: 7px;
}
.smcl-label-icon { font-size: 1rem; }

.smcl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 480px) {
    .smcl-form-row { grid-template-columns: 1fr; }
}

.smcl-input {
    width: 100%;
    padding: 12px 16px;
    font-size: .97rem;
    font-family: inherit;
    color: #1a1a2e;
    background: #fff;
    border: 1.5px solid #ddd8f5;
    border-radius: 12px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.smcl-input:focus {
    border-color: #8B7CF6;
    box-shadow: 0 0 0 3px rgba(139,124,246,.15);
}
.smcl-input::placeholder { color: #bbb; }

textarea.smcl-input {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}
select.smcl-input { cursor: pointer; }

/* Compteur caractères */
.smcl-char-counter {
    font-size: .78rem;
    color: #999;
    text-align: right;
    margin-top: 5px;
    transition: color .2s;
}
.smcl-char-counter.warn  { color: #d97706; }
.smcl-char-counter.limit { color: #dc2626; }

/* ── Boutons ───────────────────────────────────────────────── */
.smcl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.smcl-btn:hover { transform: translateY(-1px); }
.smcl-btn:active { transform: translateY(0); }

.smcl-btn-primary {
    background: linear-gradient(135deg, #8B7CF6, #7c6ce0);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139,124,246,.35);
}
.smcl-btn-primary:hover {
    background: linear-gradient(135deg, #7c6ce0, #6b5cc8);
    box-shadow: 0 6px 20px rgba(139,124,246,.45);
    color: #fff;
}

.smcl-btn-ghost {
    background: transparent;
    color: #8B7CF6;
    border: 1.5px solid #ddd8f5;
}
.smcl-btn-ghost:hover {
    background: #f5f3ff;
    border-color: #8B7CF6;
}

.smcl-btn-full { width: 100%; }

/* ── Carte générique ───────────────────────────────────────── */
.smcl-form-card {
    background: #fff;
    border: 1px solid #ede9ff;
    border-radius: 18px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 20px rgba(139,124,246,.07);
}

/* ── Liens ─────────────────────────────────────────────────── */
.smcl-link {
    color: #8B7CF6;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.smcl-link:hover { color: #5b4fcf; text-decoration: underline; }

.smcl-logout-link {
    font-size: .85rem;
    color: #999;
    text-decoration: none;
    transition: color .2s;
}
.smcl-logout-link:hover { color: #dc2626; }

/* ══════════════════════════════════════════════════════════════
   PAGE LOGIN / REGISTER — .smcl-auth-page
══════════════════════════════════════════════════════════════ */
.smcl-auth-page {
    max-width: 440px;
    margin: 40px auto;
    padding: 0 16px 60px;
    text-align: center;
}

.smcl-auth-logo {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    animation: smclBounce .6s ease;
}
@keyframes smclBounce {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}

.smcl-auth-page h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.smcl-auth-subtitle {
    font-size: .9rem;
    color: #7a7a8a;
    margin: 0 0 24px;
}

/* Onglets connexion / inscription */
.smcl-tabs {
    display: flex;
    background: #f5f3ff;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
}
.smcl-tab {
    flex: 1;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    color: #7a7a8a;
    transition: all .2s;
    text-align: center;
}
.smcl-tab.active {
    background: #fff;
    color: #8B7CF6;
    box-shadow: 0 2px 10px rgba(139,124,246,.15);
}
.smcl-tab:hover:not(.active) { color: #8B7CF6; }

/* Carte formulaire auth */
.smcl-auth-card {
    background: #fff;
    border: 1px solid #ede9ff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 30px rgba(139,124,246,.09);
    text-align: left;
}

/* Vérification email */
.smcl-verify-header {
    text-align: center;
    margin-bottom: 22px;
}
.smcl-verify-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 8px;
}
.smcl-verify-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.smcl-verify-hint {
    font-size: .86rem;
    color: #7a7a8a;
    margin: 0;
    line-height: 1.5;
}

/* Cases code à 6 chiffres */
.smcl-code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
}
.smcl-code-digit {
    width: 44px;
    height: 54px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: inherit;
    color: #1a1a2e;
    background: #f5f3ff;
    border: 2px solid #ddd8f5;
    border-radius: 12px;
    outline: none;
    transition: all .2s;
    -webkit-appearance: none;
}
.smcl-code-digit:focus,
.smcl-code-digit.filled {
    border-color: #8B7CF6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139,124,246,.15);
}
@media (max-width: 360px) {
    .smcl-code-digit { width: 38px; height: 48px; font-size: 1.2rem; }
    .smcl-code-inputs { gap: 5px; }
}

/* ══════════════════════════════════════════════════════════════
   PAGE CRÉATION CADEAU — .smcl-create-page
══════════════════════════════════════════════════════════════ */
.smcl-create-page {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 16px 60px;
}
.smcl-create-page h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.smcl-page-subtitle {
    font-size: .92rem;
    color: #7a7a8a;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Carte succès avec lien */
.smcl-success-card {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 22px;
}
.smcl-success-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #15803d;
    margin: 0 0 12px;
}

.smcl-link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    padding: 10px 14px;
    flex-wrap: wrap;
}
.smcl-link-box a {
    flex: 1;
    font-size: .85rem;
    color: #8B7CF6;
    word-break: break-all;
    text-decoration: none;
}
.smcl-link-box a:hover { text-decoration: underline; }

.smcl-copy-btn {
    background: #8B7CF6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.smcl-copy-btn:hover,
.smcl-copy-btn.copied { background: #15803d; }

/* Liste des liens créés */
.smcl-links-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
}
.smcl-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.smcl-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #ede9ff;
    border-radius: 14px;
    padding: 12px 14px;
    transition: box-shadow .2s;
}
.smcl-link-item:hover { box-shadow: 0 4px 18px rgba(139,124,246,.1); }
.smcl-link-item.opened { opacity: .8; }

.smcl-link-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B7CF6, #FF6B6B);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.smcl-link-info { flex: 1; min-width: 0; }
.smcl-link-name { font-size: .93rem; font-weight: 600; color: #1a1a2e; }
.smcl-link-meta { font-size: .77rem; color: #7a7a8a; margin-top: 2px; }

.smcl-link-badge {
    font-size: .73rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.smcl-badge-opened  { background: #d1fae5; color: #065f46; }
.smcl-badge-expired { background: #fee2e2; color: #991b1b; }
.smcl-badge-pending { background: #fef3c7; color: #92400e; }

.smcl-link-action {
    font-size: 1.1rem;
    text-decoration: none;
    opacity: .7;
    transition: opacity .2s, transform .2s;
    flex-shrink: 0;
}
.smcl-link-action:hover { opacity: 1; transform: scale(1.2); }

/* ══════════════════════════════════════════════════════════════
   PAGE PROFIL — .smcl-profile-page
══════════════════════════════════════════════════════════════ */
.smcl-profile-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

.smcl-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.smcl-profile-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}

/* Stats rapides */
.smcl-quick-stats {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.smcl-stat-pill {
    flex: 1;
    min-width: 100px;
    background: #fff;
    border: 1px solid #ede9ff;
    border-radius: 14px;
    padding: 16px 18px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(139,124,246,.06);
}
.smcl-stat-pill strong {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    color: #8B7CF6;
    line-height: 1;
    margin-bottom: 4px;
}
.smcl-stat-pill span {
    font-size: .78rem;
    color: #7a7a8a;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Tableau stats */
.smcl-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.smcl-stats-table thead tr {
    background: #f5f3ff;
}
.smcl-stats-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #5b4fcf;
}
.smcl-stats-table td {
    padding: 12px 14px;
    border-top: 1px solid #f0eeff;
    vertical-align: middle;
}
.smcl-stats-table tr:hover td { background: #faf9ff; }

/* ══════════════════════════════════════════════════════════════
   PAGE VUE CADEAU — .smcl-gift-* (view.php)
   Note : .smcl-page-wrapper est dans ads-zones.css
   Ces styles complètent le layout principal
══════════════════════════════════════════════════════════════ */

.smcl-gift-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px 60px;
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* Overlay d'ouverture */
.smcl-gift-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,124,246,.95), rgba(255,107,107,.95));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: smclFadeIn .4s ease;
}
.smcl-gift-overlay-content {
    text-align: center;
    color: #fff;
    padding: 30px;
}
.smcl-overlay-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.smcl-overlay-subtitle {
    font-size: 1.1rem;
    opacity: .9;
    margin: 0 0 28px;
}
.smcl-open-gift-button {
    background: #fff;
    color: #8B7CF6;
    border: none;
    border-radius: 50px;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    transition: transform .2s, box-shadow .2s;
    animation: smclPulse 1.5s ease infinite;
}
.smcl-open-gift-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
@keyframes smclPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.04); }
}

/* En-tête cadeau */
.smcl-gift-header {
    text-align: center;
    padding: 36px 20px 20px;
}
.smcl-gift-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.25;
}
.smcl-title-emoji { font-size: 1.7rem; }
.smcl-recipient-name { color: #8B7CF6; }
.smcl-age {
    font-size: 1rem;
    color: #7a7a8a;
    margin: 0;
}
.smcl-age-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FF6B6B;
}

/* Emoji cadeau animé */
.smcl-gift-body { text-align: center; padding: 10px 0; }

.smcl-gift-image {
    cursor: pointer;
    display: inline-block;
    margin: 0 auto 20px;
    position: relative;
    user-select: none;
}
.smcl-gift-emoji {
    font-size: 5rem;
    display: block;
    transition: all .4s ease;
    filter: drop-shadow(0 4px 15px rgba(139,124,246,.3));
}
.smcl-gift-emoji-open {
    display: none;
    animation: smclBounce .5s ease;
}

/* Message */
.smcl-message {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
    margin: 0 0 20px;
}
.smcl-message.visible {
    opacity: 1;
    transform: translateY(0);
}
.smcl-message-content { padding: 0 10px; }
.smcl-message-bubble {
    background: linear-gradient(135deg, #f5f3ff, #fff0f3);
    border: 1.5px solid #ddd8f5;
    border-radius: 20px;
    padding: 20px 22px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Photo souvenir */
.smcl-birthday-photo {
    margin: 20px 0;
    text-align: center;
    opacity: 0;
    transform: scale(.95);
    transition: all .6s ease;
}
.smcl-birthday-photo.visible {
    opacity: 1;
    transform: scale(1);
}
.smcl-birthday-photo-img {
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.smcl-birthday-photo-caption {
    margin: 10px 0 0;
    font-size: .88rem;
    color: #7a7a8a;
}

/* Bouton WhatsApp */
.smcl-whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    padding: 13px 24px;
    font-size: .95rem;
    font-weight: 700;
    margin: 16px auto;
    box-shadow: 0 4px 15px rgba(37,211,102,.35);
    transition: all .2s;
}
.smcl-whatsapp-button:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,.45);
    color: #fff;
}
.smcl-whatsapp-icon { width: 22px; height: 22px; }

/* Footer cadeau */
.smcl-gift-footer {
    text-align: center;
    padding: 20px 0 10px;
    border-top: 1px solid #f0eeff;
    margin-top: 16px;
}
.smcl-sender {
    font-size: .9rem;
    color: #7a7a8a;
    margin: 0;
}
.smcl-sender-emoji { font-size: 1.1rem; margin-right: 4px; }
.smcl-sender-name { color: #8B7CF6; }

/* Erreur générique */
.smcl-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 16px 20px;
    border-radius: 14px;
    font-weight: 500;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
}

/* ── Responsive global ─────────────────────────────────────── */
@media (max-width: 600px) {
    .smcl-auth-page   { margin: 20px auto; }
    .smcl-create-page,
    .smcl-profile-page { padding-bottom: 40px; }

    .smcl-gift-title { font-size: 1.5rem; }
    .smcl-overlay-title { font-size: 1.7rem; }
    .smcl-gift-emoji { font-size: 4rem; }

    .smcl-form-card { padding: 20px 16px; }
    .smcl-auth-card { padding: 22px 16px; }

    .smcl-quick-stats { gap: 8px; }
    .smcl-stat-pill { padding: 12px 10px; }
    .smcl-stat-pill strong { font-size: 1.35rem; }

    .smcl-stats-table { font-size: .82rem; }
    .smcl-stats-table th,
    .smcl-stats-table td { padding: 9px 8px; }
}
