/* TapNow - Page de scan publique : DA "Public" */
/* Gradient marine → ciel + card centrale flottante blanche */

:root {
    /* Palette officielle */
    --marine:        #031C49;
    --marine-light:  #0A2D6B;
    --marine-dark:   #021232;

    --ciel:          #58C4F3;
    --ciel-light:    #8BD7F7;
    --ciel-dark:     #2EA8DD;

    --primary:       #031C49;
    --accent:        #58C4F3;
    --accent-light:  #E1F4FD;

    --gold:          #F5B800;
    --gold-light:    #FFF4D1;

    --success:       #16A34A;
    --success-light: #DCFCE7;
    --danger:        #DC2626;

    --gray-50:       #F8FAFC;
    --gray-100:      #F1F5F9;
    --gray-200:      #E2E8F0;
    --gray-300:      #CBD5E1;
    --gray-400:      #94A3B8;
    --gray-500:      #64748B;
    --gray-700:      #334155;
    --gray-900:      #0F172A;

    --shadow-card: 0 12px 32px rgba(3, 28, 73, 0.30);
    --radius-card: 24px;
    --radius-btn:  14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.scan-body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, var(--marine) 0%, var(--ciel) 100%);
    background-attachment: fixed;
    color: var(--gray-900);
    min-height: 100vh; line-height: 1.5;
    padding: 24px 16px; overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.scan-container {
    max-width: 480px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    min-height: calc(100vh - 48px);
}

/* Header (logo) */
.scan-header { text-align: center; padding: 14px 0 18px; }

.logo-tapnow img { max-height: 40px; width: auto; }

.logo-etab {
    max-width: 140px; max-height: 80px; object-fit: contain;
    background: white; padding: 12px 20px; border-radius: 12px;
}

/* Card centrale */
.scan-card {
    position: relative;
    background: white;
    border-radius: var(--radius-card);
    padding: 24px 28px 24px;
    box-shadow: var(--shadow-card);
    width: 100%;
    flex: 1;
    display: flex; flex-direction: column;
    gap: 4px;
}

.scan-title {
    font-size: 22px; font-weight: 800; text-align: center; line-height: 1.25; text-wrap: balance;
    color: var(--marine); margin: 2px 0 8px; letter-spacing: -0.02em;
}

.scan-subtitle {
    text-align: center; color: var(--gray-500);
    font-size: 15px; margin-bottom: 12px;
}

/* ========== TRANSMISSION ========== */
.form-transmission { margin-bottom: 8px; }

.btn-upload {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--marine) 0%, var(--ciel-dark) 100%);
    color: white;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(3, 28, 73, 0.18);
}

.btn-upload:hover {
    box-shadow: 0 6px 16px rgba(3, 28, 73, 0.25);
    transform: translateY(-1px);
}

.btn-upload:active { transform: translateY(0); }

.upload-icon { font-size: 32px; flex-shrink: 0; }
.upload-text { flex: 1; text-align: left; }

.upload-title { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.upload-subtitle { font-size: 13px; opacity: 0.9; color: var(--ciel-light); }

#fichierApercu {
    margin-top: 16px; padding: 12px;
    background: var(--gray-100); border-radius: 10px;
    text-align: center; font-size: 13px;
}

#fichierApercu img {
    max-width: 100%; max-height: 200px;
    border-radius: 8px; margin-bottom: 8px;
}

.btn-envoyer {
    width: 100%; margin-top: 16px; padding: 16px;
    background: var(--ciel); color: var(--marine);
    border: none; border-radius: var(--radius-btn);
    font-size: 16px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all 0.15s;
}

.btn-envoyer:hover { background: var(--ciel-dark); color: white; }
.btn-envoyer:disabled { opacity: 0.5; cursor: wait; }

.upload-limit-info {
    text-align: center;
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 10px;
}

/* Séparateur OU */
.separator {
    display: flex; align-items: center; margin: 18px 0;
    color: var(--gray-500); font-size: 12px;
    font-weight: 500; letter-spacing: 0.1em;
}

.separator::before, .separator::after {
    content: ""; flex: 1; height: 1px; background: var(--gray-200);
}

.separator span { padding: 0 14px; }

/* Section email - Bouton copier FULL-WIDTH sous l'email */
.email-section { margin-bottom: 24px; }

.email-label {
    font-weight: 600; font-size: 13px;
    color: var(--gray-700); margin-bottom: 10px;
}

.email-display {
    width: 100%;
    padding: 16px 18px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    color: var(--marine);
    text-align: center;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

.btn-copy-fullwidth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--marine);
    border: 1.5px solid var(--marine);
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-copy-fullwidth:hover {
    background: var(--marine);
    color: white;
}

.btn-copy-fullwidth.copied {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* ========== EMPLACEMENT PUB ========== */
.pub-placeholder {
    margin: 24px 0 16px;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-btn);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.15s;
}

/* Variante plus grande sur la page de confirmation */
.pub-placeholder.pub-large {
    min-height: 280px;
    margin: 32px 0;
}

.pub-placeholder-inner {
    color: var(--gray-400);
}

.pub-placeholder-icon {
    font-size: 32px;
    opacity: 0.4;
    margin-bottom: 8px;
}

.pub-placeholder-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.pub-placeholder-sub {
    font-size: 12px;
    opacity: 0.7;
}

/* ========== CONFIRMATION ========== */
.confirmation-content {
    text-align: center;
    padding: 24px 0;
}

.confirmation-icon {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
}

.confirmation-message {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto 12px;
}

.confirmation-message strong {
    color: var(--gray-900);
}

/* ========== CHOIX MULTI-FONCTIONS (orienteur) ========== */
.action-buttons {
    display: flex; flex-direction: column; gap: 14px; margin: 4px 0;
}

.action-btn {
    display: flex; align-items: center; gap: 18px;
    padding: 14px 20px; border-radius: 16px;
    transition: transform 0.18s, box-shadow 0.18s;
    text-align: left;
    text-decoration: none;
}

.action-btn:active { transform: scale(0.98); }
.action-btn:hover { transform: translateY(-2px); }

/* Transmission : dégradé marine → ciel (cohérence avec page transmission) */
.action-btn.btn-transmission {
    background: linear-gradient(135deg, var(--marine) 0%, var(--ciel-dark) 100%);
    color: white;
    box-shadow: 0 8px 22px rgba(3, 28, 73, 0.25);
}
.action-btn.btn-transmission:hover {
    box-shadow: 0 12px 28px rgba(3, 28, 73, 0.35);
}

/* Avis Google : dégradé or → or clair */
.action-btn.btn-avis {
    background: linear-gradient(135deg, var(--gold) 0%, #FFD040 100%);
    color: #2A1D00;
    box-shadow: 0 8px 22px rgba(245, 184, 0, 0.32);
}
.action-btn.btn-avis:hover {
    box-shadow: 0 12px 28px rgba(245, 184, 0, 0.42);
}

/* Vaccination grippe : degrade bleu canard, meme relief que les autres */
.action-btn.btn-vaccination {
    background: linear-gradient(135deg, #0B5F66 0%, #19A595 100%);
    color: white;
    box-shadow: 0 8px 22px rgba(11, 95, 102, 0.28);
}
.action-btn.btn-vaccination:hover {
    box-shadow: 0 12px 28px rgba(11, 95, 102, 0.38);
}

/* Bilan prevention 18-25 ans : degrade violet, meme relief que les autres */
.action-btn.btn-bilan {
    background: linear-gradient(135deg, #4A22A0 0%, #8B5CF6 100%);
    color: white;
    box-shadow: 0 8px 22px rgba(74, 34, 160, 0.28);
}
.action-btn.btn-bilan:hover {
    box-shadow: 0 12px 28px rgba(74, 34, 160, 0.38);
}

/* Bouton personnalisé Premium : background + color en inline-style depuis s.php */
.action-btn.btn-custom-perso {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.2s, transform 0.1s, filter 0.15s;
}
.action-btn.btn-custom-perso:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    filter: brightness(0.95);
}

/* Autres actions (rdv / url custom) : outline */
.action-btn.btn-secondary-action {
    background: white;
    color: var(--marine);
    border: 1.5px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.action-btn.btn-secondary-action:hover {
    border-color: var(--marine);
    box-shadow: 0 4px 14px rgba(3, 28, 73, 0.10);
}

/* Hauteur des boutons : c'est la ligne de l'emoji (1.5) qui la fixe. Un titre
   long passe sur deux lignes resserrees (1.25), qui tiennent dans cette meme
   hauteur : un bouton sur deux lignes n'est pas plus haut que les autres. */
.action-icon { font-size: 28px; flex-shrink: 0; }
.action-text { flex: 1; min-width: 0; }
.action-title { font-size: 17px; font-weight: 800; letter-spacing: -0.1px; line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; }
.action-subtitle { display: none; }  /* On n'affiche plus le sous-titre sur l'orienteur */

/* ========== AVIS GOOGLE ========== */
.avis-card { background: var(--gold-light); border-radius: 12px; padding: 18px; margin-bottom: 16px; }

.avis-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.avis-stars { font-size: 16px; }

.avis-badge {
    background: white; color: var(--gray-700);
    font-size: 10px; padding: 4px 8px; border-radius: 8px;
    font-weight: 600; letter-spacing: 0.04em;
}

.avis-text { font-size: 15px; line-height: 1.6; color: var(--gray-900); font-style: italic; }

.btn-action {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; width: 100%; padding: 14px;
    border-radius: var(--radius-btn); font-size: 15px; font-weight: 600;
    margin-bottom: 10px; transition: all 0.15s;
}

.btn-action-primary {
    background: var(--marine); color: white;
    border: none; cursor: pointer; font-family: inherit;
}

.btn-action-primary:hover { background: var(--marine-light); }

.btn-action-google {
    background: white; color: var(--marine); border: 1.5px solid var(--marine);
}

.btn-action-google:hover { background: var(--marine); color: white; }

.avis-help { margin-top: 12px; text-align: center; color: var(--gray-500); font-size: 12px; }

/* ========== FOOTER ========== */
.scan-footer {
    text-align: center; color: var(--gray-500); font-size: 12px;
    padding-top: 24px; margin-top: auto;
    border-top: 1px solid var(--gray-100);
}

.powered-link { color: var(--marine); }
.powered-link:hover { text-decoration: underline; }

/* Banniere de l'orienteur (16:5) : toute la largeur de la carte, alignee sur les
   boutons (les encarts carres gardent leur largeur de scan-pubs.css). */
.scan-card .pub-v:has(.pub-v-banner) { max-width: 100%; }

/* ========== TOAST ========== */
.toast {
    position: fixed; top: 20px; left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--marine); color: white;
    padding: 12px 20px; border-radius: 24px;
    font-size: 14px; font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: transform 0.3s ease; z-index: 1000;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    body.scan-body { padding: 6px 12px 12px; }
    .scan-header { padding: 2px 0 6px; }
    .logo-etab { max-height: 52px; padding: 7px 14px; }
    .scan-card { padding: 18px 16px 14px; flex: none; }
    .scan-title { font-size: 19px; margin: 2px 0 6px; }
    .scan-subtitle { font-size: 14px; margin-bottom: 6px; }
    .upload-title, .action-title { font-size: 16px; }
    .action-buttons { gap: 11px; }
    .action-btn { padding: 10px 18px; }
    .action-icon { font-size: 26px; }

    /* Transmission de document : compactage pour voir la pub sans scroll */
    .form-transmission { margin-bottom: 2px; }
    .btn-upload { padding: 13px 16px; }
    .upload-icon { font-size: 26px; }
    .upload-title { font-size: 15px; }
    .upload-subtitle { font-size: 12px; }
    .btn-envoyer { margin-top: 10px; padding: 13px; }
    .upload-limit-info { margin-top: 5px; font-size: 10.5px; }
    .separator { margin: 6px 0; font-size: 11px; }
    .email-section { margin-bottom: 0; }
    .email-label { margin-bottom: 4px; font-size: 12px; }
    .email-display { padding: 9px 12px; margin-bottom: 6px; font-size: 14px; }
    .btn-copy-fullwidth { padding: 9px; font-size: 13px; }
    .scan-card .pub-v { margin-top: 6px; display: flex; flex-direction: column; }
    .scan-card .pub-v-header { order: 2; margin: 6px 0 0; }
}

/* ============================================================
   Avis Google (multi-step) - DA TapNow marine + ciel
   Classes préfixées .avg-* pour pas écraser l'existant
   ============================================================ */

.avg-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.avg-step[hidden] { display: none !important; }
/* Step 3 : success copié */
.avg-success-mark {
    text-align: center;
    margin-bottom: 4px;
    animation: avg-fade-in 0.3s ease;
}
.avg-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 8px;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}
.avg-success-text {
    color: var(--success);
    font-weight: 700;
    font-size: 14.5px;
    margin: 0;
}
@keyframes avg-fade-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.avg-big-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 22px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-family: inherit;
    transition: transform 0.18s, box-shadow 0.18s;
    text-decoration: none;
    line-height: 1.25;
}
.avg-big-btn:active { transform: scale(0.98); }
.avg-big-btn:disabled { opacity: 0.55; cursor: wait; }

.avg-big-btn-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.avg-big-btn-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.1px;
}

/* Primary (marine plein) */
.avg-big-btn-primary {
    background: var(--marine);
    color: white;
    box-shadow: 0 6px 18px rgba(3, 28, 73, 0.22);
}
.avg-big-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(3, 28, 73, 0.32);
}

/* Outline (blanc + bordure) */
.avg-big-btn-outline {
    background: white;
    color: var(--marine);
    border: 1.5px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.avg-big-btn-outline:hover:not(:disabled) {
    border-color: var(--marine);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(3, 28, 73, 0.08);
}

/* Variante large (Step 2 Copier l'avis + Step 3 Ouvrir Google) */
.avg-big-btn-large {
    padding: 22px;
    width: 100%;
    margin-top: 8px;
}
.avg-big-btn-large .avg-big-btn-icon { font-size: 22px; }
.avg-big-btn-large .avg-big-btn-title { font-size: 18px; }

.avg-step { padding: 4px 0 20px; }

/* === Orienteur : 3 features de réassurance en bas === */
.orient-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-100);
}
.orient-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 4px 2px;
}
.orient-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.orient-feature-icon svg { display: block; }

.orient-feature-icon-blue {
    background: var(--accent-light);
    color: var(--ciel-dark);
}
.orient-feature-icon-gold {
    background: var(--gold-light);
    color: #B4760A;
}
.orient-feature-icon-red {
    background: #FEE2E2;
    color: #DC2626;
}

.orient-feature-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--marine);
    letter-spacing: -0.1px;
}
.orient-feature-sub {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
    line-height: 1.35;
}

@media (max-width: 360px) {
    .orient-features { gap: 6px; }
    .orient-feature-icon { width: 42px; height: 42px; }
    .orient-feature-title { font-size: 12.5px; }
    .orient-feature-sub { font-size: 10.5px; }
}

/* ============================================================
   PARCOURS AVIS GOOGLE - ÉCRAN D'ÉVALUATION (étoiles)
   ============================================================ */
/* Ecran d'evaluation compacte : la pub servie sous les etoiles doit rester
   visible sans scroller sur un telephone courant. Le titre tient desormais sur
   une ligne (le nom de l'etablissement n'y est plus repete) et le sous-titre a
   ete supprime, ce qui libere une centaine de pixels. */
.avg-eval-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--marine);
    text-align: center;
    line-height: 1.3;
    margin: 10px 0 14px;
    letter-spacing: -0.3px;
}
.avg-eval-etab {
    color: var(--ciel);
}
.avg-eval-sub {
    font-size: 15px;
    color: var(--gray-500, #64748b);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.4;
}

/* Étoiles cliquables */
/* .avg-step est un conteneur flex en colonne avec gap:14px. En flexbox les
   marges ne fusionnent PAS : toute marge posee ici s'AJOUTE au gap. On laisse
   donc le gap seul gerer l'espacement vertical, sinon on cumule deux fois. */
.avg-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
}
.avg-rating-star {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 44px;
    line-height: 1;
    color: #d8dee9;
    padding: 4px;
    transition: transform 0.12s ease, color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.avg-rating-star:hover {
    transform: scale(1.15);
}
.avg-rating-star.is-on {
    color: #f5b301;
    animation: avgStarPop 0.25s ease;
}
@keyframes avgStarPop {
    0% { transform: scale(0.7); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
/* La pub de la page d'avis est collee au plus pres des etoiles. La marge de 28px
   de .pub-v vaut pour les autres pages, ou la pub suit un bloc de texte ; ici
   elle repoussait la pub hors de l'ecran. Selecteur plus specifique (0,2,0 contre
   0,1,0) : la regle generique de scan-pubs.css n'est pas touchee, et l'ordre de
   chargement des deux feuilles n'a donc aucune importance. */
.avg-step .pub-v { margin-top: 0; }

.avg-rating-hint {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--marine);
    /* Reserve la hauteur du texte qui s'affiche au survol d'une etoile : sans
       elle, la pub sauterait de 20px au premier survol. */
    min-height: 20px;
    /* Marge nulle : le gap:14px du parent flex suffit, et s'y ajoutait. */
    margin: 0;
}

/* ============================================================
   PARCOURS AVIS GOOGLE - FEEDBACK PRIVÉ (note < 4)
   ============================================================ */
.avg-fb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 8px auto 14px;
    border-radius: 50%;
    background: #E1F4FD;
    color: var(--marine);
}
.avg-fb-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--marine);
    text-align: center;
    line-height: 1.25;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.avg-fb-sub {
    font-size: 15px;
    color: var(--gray-500, #64748b);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.4;
}

.avg-fb-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.avg-fb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.avg-fb-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--marine);
}
.avg-fb-optional {
    font-weight: 400;
    color: var(--gray-400, #94a3b8);
}
.avg-fb-field input,
.avg-fb-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--gray-200, #e2e8f0);
    border-radius: 12px;
    font-size: 16px; /* >=16px : empêche le zoom auto iOS au focus */
    font-family: inherit;
    color: var(--marine);
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.avg-fb-field input:focus,
.avg-fb-field textarea:focus {
    outline: none;
    border-color: var(--ciel);
}
.avg-fb-field textarea {
    resize: vertical;
    min-height: 96px;
}
.avg-fb-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13.5px;
    line-height: 1.4;
    padding: 11px 14px;
    border-radius: 10px;
}
.avg-fb-form .avg-big-btn { margin-top: 4px; }

/* Lien Google en pied de page sur l'ecran feedback.
   Remplace "Propulse par TapNow" : trait fin puis phrase discrete, sans grand espace. */
.avg-fb-google-fallback {
    margin-top: 28px;
    padding: 18px 8px 4px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}
.avg-fb-google-text {
    font-size: 11px;
    line-height: 1.5;
    color: var(--gray-400, #94a3b8);
    font-style: italic;
    margin: 0;
}
.avg-fb-google-text a {
    color: var(--gray-500, #64748b);
    text-decoration: none;
    font-weight: 400;
}

/* Sur l'ecran feedback uniquement, on masque le pied de page global "Propulse par TapNow" */
body.avg-mode-feedback .scan-footer { display: none; }

/* ============================================================
   PARCOURS AVIS GOOGLE - REMERCIEMENT FEEDBACK
   ============================================================ */
.avg-fb-merci-title {
    font-size: 23px;
    font-weight: 800;
    color: var(--marine);
    text-align: center;
    line-height: 1.25;
    margin: 18px 0 8px;
    letter-spacing: -0.3px;
}
.avg-fb-merci-sub {
    font-size: 15px;
    color: var(--gray-500, #64748b);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ============================================================
   SCAN - Aucune fonctionnalité activée sur ce TapNow
   ============================================================ */
.scan-empty {
    text-align: center;
    padding: 16px 8px 8px;
}
.scan-empty-icon {
    font-size: 44px;
    margin-bottom: 14px;
    opacity: 0.85;
}
.scan-empty-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--marine, #031C49);
    margin: 0 0 8px;
    line-height: 1.35;
}
.scan-empty-sub {
    font-size: 14px;
    color: var(--gray-500, #64748b);
    margin: 0 0 22px;
    line-height: 1.5;
}
.scan-empty-btn {
    display: inline-block;
    background: var(--marine, #031C49);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 12px;
    transition: background 0.15s;
}
.scan-empty-btn:hover { background: var(--marine-light, #0A2D6B); }



/* ============================================================
   Reseaux sociaux : petites icones dans le coin haut-droit de la carte
   ============================================================ */
/* Reseaux sociaux de l'etablissement : ligne centree sous le nom.
   Auparavant en position absolue dans le coin haut-droit : les noms longs
   passaient SOUS les icones. En flux normal, plus aucun recouvrement possible,
   quelle que soit la longueur du nom. */
.scan-rs-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 10px;
}
.scan-rs-link {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(3, 28, 73, .20);
    transition: transform .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.scan-rs-link svg {
    width: 30px;
    height: 30px;
    display: block;
}
.scan-rs-link:active,
.scan-rs-link:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(3, 28, 73, .30);
}

/* ========== Bouton retour (transmission / avis -> orienteur) ========== */
/* Positionne a la hauteur du titre, n'ajoute pas de hauteur a la page. */
.scan-back {
    position: absolute;
    top: 25px;
    left: 16px;
    z-index: 5;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--marine);
    text-decoration: none;
    transition: background .15s;
}
.scan-back:hover { background: #e2e8f0; }

/* Nom d'etablissement long + bouton retour : le bouton est en position absolue
   (volontairement, pour ne pas ajouter de hauteur), donc le texte du titre
   passait DESSOUS et sa premiere lettre disparaissait. On reserve sa place.
   Calcul : le bouton s'arrete a 46px du bord de la carte (left 16 + largeur 30),
   la carte a 28px de padding, il faut donc 18px minimum. 24px laisse 6px de jeu.
   Padding des DEUX cotes pour ne pas decentrer le titre.
   Mesure : a 24px le titre garde le meme nombre de lignes, la page ne grandit
   pas d'un pixel. Applique seulement quand le bouton existe (:has), donc les
   pages sans retour gardent toute leur largeur. */
.scan-card:has(.scan-back) .scan-title {
    padding-left: 24px;
    padding-right: 24px;
}
/* Masque le retour sur l'ecran feedback (note basse), garde-le sur les etoiles. */
body.avg-mode-feedback .scan-back { display: none; }
@media (max-width: 480px) {
    .scan-back { top: 18px; left: 12px; width: 28px; height: 28px; }
}
