/* Footer du site, version sur fond noir (08/11). Gabarit : templates/snippets/footer.html.twig.
   Chargé après le CSS d'Apik et ptj-arrondis.css (layout.html.twig, et layout-snippets.html.twig pour le mode édition).
   Rayons : variables de ptj-arrondis.css. Tout est limité à .ptj-footer : rien d'autre ne change sur le site. */

.ptj-footer {
    background: #0d0d0d;
    color: #fff;
    border-top: 1px solid #262626;
    padding: 56px 0 22px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px; /* le site hérite de 28 px : base fixée ici pour que les interlignes restent ceux voulus */
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.ptj-footer *,
.ptj-footer *::before,
.ptj-footer *::after { box-sizing: border-box; }
.ptj-footer a { transition: color .15s ease, border-color .15s ease; }
.ptj-footer ul { list-style: none; margin: 0; padding: 0; }
.ptj-footer li { display: block; margin: 0; padding: 0; }
.ptj-footer li::before { content: none; }

.ptj-footer__in {
    max-width: 1220px; /* 1180 px utiles + 2 × 20 px */
    margin: 0 auto;
    padding: 0 20px;
}

.ptj-footer__grille {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 220px;
    gap: 40px;
    align-items: start;
}

/* --- Zone gauche : logo, e-mail, réseaux --- */
.ptj-footer__logo img {
    display: block;
    width: auto;
    max-width: 170px;
    height: auto;
    /* logo noir du back-office (footerLogo) rendu en blanc sur le fond noir */
    filter: brightness(0) invert(1);
}
.ptj-footer__mail { margin-top: 20px; }
.ptj-footer__mail a,
.ptj-footer__mail a:visited {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.ptj-footer__mail a:hover { color: #FA6401; }

.ptj-footer__reseaux {
    display: flex;
    gap: 10px;
    margin-top: 20px !important;
}
.ptj-footer__reseaux a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #262626;
    border-radius: var(--ptj-r-bouton, 4px);
    color: #fff;
    text-decoration: none;
}
.ptj-footer__reseaux a:hover,
.ptj-footer__reseaux a:focus-visible { border-color: #FA6401; color: #FA6401; }
.ptj-footer__reseaux svg,
.ptj-footer__reseaux img { width: 19px; height: 19px; display: block; }
.ptj-footer__reseaux svg [fill]:not([fill="none"]) { fill: currentColor; }

/* --- Petits titres --- */
.ptj-footer__titre {
    font-family: Roboto, Arial, sans-serif;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #9a9a9a;
    margin: 0 0 18px;
}

/* --- Zone centre : les centres sur deux colonnes --- */
.ptj-footer__centres {
    column-count: 2;
    column-gap: 28px;
}
.ptj-centre,
.ptj-footer__texte {
    display: block;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin: 0 0 22px;
    padding: 0;
    overflow-wrap: break-word;
}
.ptj-centre:last-child,
.ptj-footer__texte:last-child { margin-bottom: 0; }
.ptj-centre__nom,
.ptj-centre__nom:visited {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
    margin: 0 0 4px;
}
.ptj-centre__nom:hover { color: #FA6401; }
.ptj-centre__adr {
    display: block;
    color: #9a9a9a;
    font-size: 14px;
    line-height: 1.55;
}
.ptj-centre__tel,
.ptj-centre__tel:visited {
    display: block;
    width: max-content;
    max-width: 100%;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
}
.ptj-centre__tel:hover { color: #FA6401; }
.ptj-centre__etiquette {
    display: table; /* sur sa propre ligne, à la largeur du texte */
    margin-top: 7px;
    background: #FA6401;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.25;
    padding: 3px 7px;
    border-radius: var(--ptj-r-petit, 3px);
}
.ptj-centre__plus { display: block; color: #9a9a9a; font-size: 14px; line-height: 1.55; }
.ptj-centre__plus a,
.ptj-footer__texte a { color: #fff; }
.ptj-footer__texte { color: #9a9a9a; font-size: 14px; line-height: 1.55; }

/* --- Zone droite : liens utiles --- */
.ptj-footer__liens li { margin: 0 0 10px; }
.ptj-footer__liens li:last-child { margin-bottom: 0; }
.ptj-footer__liens a,
.ptj-footer__liens a:visited {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
}
.ptj-footer__liens a:hover { color: #FA6401; }

/* --- Barre du bas : paiement, crédit Apik --- */
.ptj-footer__bas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid #262626;
}
.ptj-footer__paiement {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}
.ptj-footer__paiement-titre {
    font-weight: 700;
    font-size: 13px;
    color: #9a9a9a;
}
.ptj-footer__moyens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ptj-footer__moyens li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 44px;
    padding: 0 8px;
    background: #fff;
    border-radius: var(--ptj-r-bouton, 4px);
}
.ptj-footer__moyens img { display: block; width: auto; height: 18px; max-width: 60px; }
.ptj-footer__moyens img[alt="Bancontact"] { height: 24px; }
.ptj-footer__moyens img[alt="Visa"] { height: 13px; }
.ptj-footer__moyens img[alt="PayPal"] { height: 15px; }

.ptj-footer__apik {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9a9a9a;
    font-size: 12px;
}
.ptj-footer__apik img {
    display: block;
    /* logo Apik, foncé à l'origine : passé en gris clair pour rester lisible */
    filter: brightness(0) invert(.6);
}

/* --- Ligne légale et Conditions générales --- */
.ptj-footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #9a9a9a;
}
.ptj-footer__droits { display: flex; flex-wrap: wrap; gap: 0 6px; }
.ptj-footer__legal a,
.ptj-footer__legal a:visited { color: #9a9a9a; text-decoration: none; }
.ptj-footer__legal a:hover { color: #fff; }

/* --- Mobile --- */
@media (max-width: 799px) {
    .ptj-footer { padding: 36px 0 22px; }
    .ptj-footer__grille { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .ptj-footer__centres { column-gap: 20px; }
    .ptj-centre__nom { font-size: 15px; }
    .ptj-centre__adr,
    .ptj-centre__tel,
    .ptj-centre__plus,
    .ptj-footer__texte { font-size: 13px; }
    .ptj-footer__liens { column-count: 2; column-gap: 20px; }
    .ptj-footer__liens li { break-inside: avoid; }
    .ptj-footer__bas { flex-direction: column; align-items: flex-start; }
    .ptj-footer__legal { flex-direction: column; align-items: flex-start; }
}
/* 08/11 : sous 640 px, la barre fixe « Réserve ton studio » d'Apik (apk-header-mobile-sticky, environ 80 px) couvre le bas
   de l'écran : la ligne légale et le lien CG restent au-dessus, seulement sur les pages qui ont cette barre */
@media (max-width: 639px) {
    body:has(.apk-header-mobile-sticky) .ptj-footer { padding-bottom: 104px; }
}

/* --- Mode édition (admin Pimcore) : champs sur fond clair pour rester lisibles --- */
.ptj-footer--edition .ptj-footer__aide {
    display: block;
    color: #FA6401;
    font-size: 11px;
    font-weight: 700;
    margin: 10px 0 4px;
}
.ptj-footer--edition .ptj-footer__droits .ptj-footer__aide,
.ptj-footer--edition .ptj-footer__cg .ptj-footer__aide { display: inline; margin: 0 6px 0 12px; }
.ptj-footer--edition .ptj-footer__champ,
.ptj-footer--edition .pimcore_editable_input,
.ptj-footer--edition .pimcore_editable_textarea,
.ptj-footer--edition .pimcore_editable_link {
    background: #fff;
    color: #111;
    border-radius: var(--ptj-r-surface, 4px);
}
.ptj-footer--edition .ptj-footer__champ { padding: 8px 10px; }
/* texte et liens en foncé ; une couleur saisie dans le texte (ex. « Ouverture le … » en orange) reste visible */
.ptj-footer--edition .ptj-footer__champ a,
.ptj-footer--edition .pimcore_editable_link a,
.ptj-footer--edition .ptj-footer__liens a { color: #111 !important; }
.ptj-footer--edition .ptj-footer__liens li { background: #fff; padding: 4px 8px; border-radius: var(--ptj-r-surface, 4px); }
.ptj-footer--edition .pimcore_editable_input { display: inline-block; min-width: 260px; padding: 2px 6px; }
