/* ============================================================================
   pt_client_ui.css — composants des pages CLIENT.

   Pendant de pt_ui.css. A charger APRES pt_client_tokens.css et APRES
   Bootstrap, dont il surcharge les boutons.

   Les regles reprennent a l'identique celles qui etaient recopiees dans les
   dix pages client — 2 333 lignes de <style>, dont dix classes redefinies
   huit fois. Rien n'est redessine ici : une page migree doit rendre pareil.

   Ce qui reste dans les pages : les surcouches d'habillage, la carte Mosaic
   Wall, l'editeur riche — du specifique, pas du vocabulaire commun.
   ========================================================================= */

/* --- Socle ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--police-corps);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-top: 80px;          /* bandeau fixe */
}

h1, h2, h3, h4, h5 {
    font-family: var(--police-titre);
    color: var(--titles);
}

a        { color: var(--text); text-decoration: none; }
a:hover  { color: var(--text); text-decoration: none; }

/* Utilitaires d'affichage, pilotes par le JavaScript des fiches. */
.show { display: block !important; }
.hide { display: none; }
/* Le bouton Valider du bloc Email/SMS s'affiche en ligne, pas en bloc. */
#validEmail.show { display: inline-block !important; }

/* --- Bandeau -------------------------------------------------------------- */
.navbar-brand {
    font-family: var(--police-titre);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

/* --- Accueil : logo, titre, pied ------------------------------------------ */
.logo-block        { text-align: center; padding: 30px 0 10px; }
.logo-block img    { max-width: 200px; }

.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    border-radius: 2px;
    margin: 15px auto 25px;
}

.client-title { text-align: center; margin-bottom: 5px; }
.client-title h4 {
    font-family: var(--police-titre);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--titles);
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}
.client-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.footer-block          { text-align: center; padding: 50px 0 30px; }
.footer-block img      { width: 60px; opacity: 0.3; }
.footer-block small    { display: block; margin-top: 8px; color: #bbb; font-size: 0.75rem; }
.footer-block small a  { color: var(--pink); text-decoration: none; }

/* --- Sections ------------------------------------------------------------- */
.section-block {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--ombre-carte);
    padding: 30px 30px 35px;
    margin-bottom: 25px;
    scroll-margin-top: 90px;    /* le bandeau fixe ne recouvre pas l'ancre */
}

.section-tag {
    display: inline-block;
    background: var(--titles);
    color: #fff;
    font-family: var(--police-titre);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.section-status {
    display: inline-block;
    margin-left: 10px;
    font-family: var(--police-titre);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 3px;
}
.section-status.done { background: var(--cyan-soft); color: var(--cyan); }
.section-status.todo { background: var(--pink-soft); color: var(--pink); }

.section-title {
    font-family: var(--police-titre);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--titles);
    margin-bottom: 8px;
}
.section-title span { color: var(--pink); }

.section-intro { color: var(--muted); margin-bottom: 20px; }

/* --- Sommaire ------------------------------------------------------------- */
.sommaire {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0 30px;
}
.sommaire-item {
    font-family: var(--police-titre);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 4px;
    border: 2px solid var(--hairline);
    color: #888;
    background: var(--surface);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sommaire-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--ombre-douce);
    color: var(--titles);
}
.sommaire-item.done        { border-color: var(--cyan); color: var(--cyan); }
.sommaire-item.done:hover  { background: var(--cyan); color: #fff; }
.sommaire-item .check      { font-size: 0.85rem; }

/* --- Cartes --------------------------------------------------------------- */
.card-link        { text-decoration: none; color: inherit; }
.card-link:hover  { color: inherit; text-decoration: none; }
.card-link .card {
    border: none;
    border-radius: 12px;
    background: var(--surface);
    transition: all 0.25s ease;
    box-shadow: var(--ombre-carte);
    overflow: hidden;
}
.card-link:hover .card { transform: translateY(-5px); box-shadow: var(--ombre-levee); }

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 auto 14px;
}
.card-icon.icon-cyan { background: linear-gradient(135deg, var(--cyan), var(--teal)); }
.card-icon.icon-pink { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); }
.card-icon.icon-dark { background: linear-gradient(135deg, var(--titles), #555); }

.card-title-text {
    font-family: var(--police-titre);
    font-weight: 700;
    font-size: 1rem;
    color: var(--titles);
    margin-bottom: 4px;
}
.card-desc { font-size: 0.8rem; color: var(--faint); }

.card-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    border-radius: 12px;
}
.card-clickable:hover     { transform: translateY(-6px); box-shadow: var(--ombre-vignette); }
.card-clickable img       { height: 100%; width: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card-clickable:hover img { transform: scale(1.05); }

/* Libelle pose sur une vignette de rendu : le nom du rendu choisi. */
.card-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    z-index: 2;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Formats des visuels : portrait pour les bornes, paysage pour PlayArt. */
.card-ratio-2-3 { aspect-ratio: 2 / 3; width: 100%; border-radius: 12px; overflow: hidden; }
.card-ratio-3-2 { aspect-ratio: 3 / 2; width: 100%; border-radius: 12px; overflow: hidden; }
.card-ratio-1-1 { aspect-ratio: 1;     width: 100%; border-radius: 12px; overflow: hidden; }
.card-ratio-9-16 { aspect-ratio: 9 / 16; width: 100%; border-radius: 12px; overflow: hidden; }

/* --- Boutons -------------------------------------------------------------- */
.btn-primary {
    background-color: var(--pink) !important;
    border-color: var(--pink) !important;
}
.btn-primary:hover {
    background-color: var(--pink-dark) !important;
    border-color: var(--pink-dark) !important;
}
.btn-cyan {
    background-color: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
}
.btn-cyan:hover {
    background-color: var(--cyan-dark);
    border-color: var(--cyan-dark);
    color: #fff;
}

/* --- Choix Oui / Non, et positions d'habillage ---------------------------- */
.mode-selector { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.mode-btn {
    font-family: var(--police-titre);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 30px;
    border-radius: 50px;
    border: 2px solid var(--hairline);
    background: var(--surface);
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 220px;
}
/* Trois tailles, selon ce que porte le bouton.
   Pleine (par defaut) : un libelle long, « Habillage unique ».
   moyen : un choix principal dont le libelle tient en un mot, « Oui ».
           Meme typographie que la pleine — il doit rester bien visible —
           mais sans la largeur minimale de 220 px, faite pour deux lignes.
   sm    : une question posee au fil du formulaire. */
.mode-btn.moyen { padding: 11px 26px; min-width: 110px; }
.mode-btn.sm { font-size: 0.85rem; padding: 8px 22px; min-width: 0; }
.mode-btn:hover { border-color: var(--pink); color: var(--pink); }
.mode-btn.active,
.btn-check:checked + .mode-btn {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
}

.place-img {
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    max-width: 200px;
    margin: 0 10px;
}
.place-img:hover    { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.place-img.selected { border: 6px solid var(--pink); }

/* --- Avis ------------------------------------------------------------------
   Une information que le client ne doit pas manquer : condition tarifaire,
   contrainte, consequence. Se pose AVANT le champ qu'elle concerne — on la
   lit avant de repondre, pas apres. */
.avis {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--avis-soft);
    border-left: 4px solid var(--avis-filet);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
    color: var(--avis);
    font-size: 0.95rem;
    line-height: 1.45;
}
.avis .bi { flex: none; font-size: 1.05rem; line-height: 1.35; }

/* --- Fond de la photo classique (util/fond_classique_bloc.php) ------------
   Exigences a gauche, apercu a droite ; l'etat (envoye, refuse) sous les deux. */
.fond-classique .modal-title { font-family: var(--police-titre); font-weight: 700; color: var(--titles); }
.fond-classique .fc-intro    { color: var(--text); margin-bottom: 18px; }
.fond-classique .fc-titre    {
    font-family: var(--police-titre);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.fc-exigences    { list-style: none; padding: 0; margin: 0 0 14px; }
.fc-exigences li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; line-height: 1.4; }
.fc-exigences .bi { flex: none; color: var(--pink); font-size: 1.1rem; line-height: 1.3; }
.fc-apercu {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    border: 2px dashed var(--hairline);
}
.fc-apercu.plein { border-style: solid; }   /* pointilles = emplacement vide */
.fc-apercu img   { display: block; width: 100%; height: 100%; object-fit: cover; }
.fc-vide, .fc-attente {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: var(--faint);
}
.fc-vide .bi     { font-size: 2.2rem; }
.fc-attente .spinner-border { color: var(--pink); }
.fc-legende      { display: block; max-width: 320px; margin-top: 6px; color: var(--muted); font-size: 0.8rem; }
.fc-etat         { margin-top: 16px; font-weight: 700; }
.fc-etat:empty   { display: none; }
.fc-etat.ok      { color: var(--titles); }
.fc-etat.ok::before { content: "✓ "; color: var(--cyan-dark); }
/* Un refus, pas un avis : rouge, seule teinte hors palette de la fenetre. */
.fc-etat.erreur  { color: #C62828; }
/* Premiere fenetre (clientpersobp_ia_v2.php #choixClassic) : deux options en cartes cliquables. */
.fc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .fc-options { grid-template-columns: 1fr; } }
.fc-option {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    text-align: left; padding: 18px; border-radius: 12px;
    background: var(--bg); border: 2px solid var(--hairline); color: var(--text);
    transition: border-color .15s, transform .15s;
}
.fc-option:hover, .fc-option:focus-visible { border-color: var(--pink); transform: translateY(-1px); outline: none; }
.fc-option .bi { font-size: 1.6rem; color: var(--pink); }
.fc-option-titre  { font-family: var(--police-titre); font-weight: 700; color: var(--titles); }
.fc-option-texte  { font-size: 0.9rem; line-height: 1.45; }
.fc-option-action { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--pink); }
/* Les deux classes ont un display : sans cette regle, hidden ne masquait rien. */
.fond-classique [hidden] { display: none !important; }

/* --- Avancement ----------------------------------------------------------- */
.progress-badge {
    font-family: var(--police-titre);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 50px;
}
.progress-badge.done        { background: var(--cyan); color: #fff; }
.progress-badge.in-progress { background: var(--pink); color: #fff; }

/* --- Telephone ------------------------------------------------------------ */
@media (max-width: 768px) {
    .section-block { padding: 20px 18px; }
    .place-img     { max-width: 100px; margin: 5px; }
}
