/* ========================================
   CONCIERGERIES — fiche publique (concierges/detail.html), chargée par cette page via
   extra_css. La page liste a sa feuille : conciergeries_annuaire.css.
   Préfixe .cg-. Une colonne, sur la maquette du client (26 nov. 2026, revue le 27 nov. :
   bandeau sans rectangle blanc, pictos sans cercle, tous les services, plus de visionneuse).
   ======================================== */

.cg-detail {
    padding-top: 16px;
    padding-bottom: clamp(48px, 7vw, 88px);
}

/* ---------- Bandeau : la photo en fond, assombrie, tout le texte en blanc dessus (client,
   27 nov. 2026 : plus de rectangle blanc, 30 % moins haut). Logo, nom et accroche en haut à
   gauche, « Nos annonces » en haut à droite ; badges en bas à gauche, coordonnées en bas à
   droite. ---------- */
.cg-heros {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: clamp(196px, 24vw, 280px);
    margin-top: 8px;
    padding: clamp(16px, 2.6vw, 28px) clamp(16px, 3vw, 32px);
    border-radius: var(--radius-2xl);
    background: var(--color-dark);
    color: var(--color-on-dark);
    overflow: hidden;
    isolation: isolate;
}

.cg-heros__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Le voile part de la gauche et du bas, où est le texte, quelle que soit la photo */
.cg-heros:not(.cg-heros--sans-photo)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, var(--color-scrim) 0%, transparent 70%),
        linear-gradient(0deg, var(--color-scrim) 0%, transparent 60%);
    pointer-events: none;
}

.cg-heros__haut,
.cg-heros__bas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
}

.cg-heros__haut {
    align-items: flex-start;
}

.cg-heros__bas {
    align-items: flex-end;
}

.cg-heros__identite {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    max-width: 720px;
}

.cg-heros__logo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 3px solid var(--color-on-dark);
    box-shadow: var(--shadow-sm);
}

.cg-heros__texte {
    min-width: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.cg-heros__nom {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--color-on-dark);
    overflow-wrap: anywhere;
}

/* L'accroche, plus imposante qu'une ligne en italique gris (client, 27 nov. 2026) */
.cg-heros__accroche {
    margin-top: 4px;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    font-style: italic;
    line-height: 1.3;
    color: var(--color-on-dark);
    overflow-wrap: anywhere;
}

/* « Nos annonces » : à la place d'« Afficher toutes les photos » (client, 27 nov. 2026) */
.cg-heros__annonces {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s var(--ease);
}

.cg-heros__annonces:hover {
    background: var(--color-surface);
}

.cg-heros__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

/* Badge doré « Partenaire Premium » de la maquette */
.cg-heros__premium {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-ampoule);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 700;
}

/* Avis Google en blanc sur la photo */
.cg-heros .avis-google,
.cg-heros .avis-google:hover,
.cg-heros .avis-google__texte,
.cg-heros .avis-google:hover .avis-google__texte {
    margin-top: 0;
    color: var(--color-on-dark);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Téléphone et email : quittent le bas de la page pour le bandeau (client, 27 nov. 2026) */
.cg-heros__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cg-heros__coordonnee {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-on-dark);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    overflow-wrap: anywhere;
}

.cg-heros__coordonnee:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Le picto seul, en orange, sans cercle (client, 27 nov. 2026) */
.cg-heros__picto {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ---------- « À propos de nous » : photo à gauche, texte plafonné à droite ---------- */
.cg-apropos {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(32px, 5vw, 48px) 0;
    border-bottom: 1px solid var(--color-surface-2);
}

.cg-apropos__photo {
    width: 100%;
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.cg-apropos__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cg-apropos:not(:has(.cg-apropos__photo)) {
    grid-template-columns: minmax(0, 1fr);
}

/* ---------- Sections ---------- */
.cg-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--color-surface-2);
}

.cg-section__title {
    margin-bottom: 16px;
    font-size: var(--font-size-title);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cg-section__text {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

/* ---------- Services : tous, quatre dessins par ligne, séparés d'un trait (client, 27 nov.
   2026 : plus de repli « Voir les N autres services ») ---------- */
.cg-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cg-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-align: center;
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

/* Un trait entre deux services d'une même ligne, jamais en début de ligne */
.cg-service:not(:nth-child(4n + 1)) {
    border-left: 1px solid var(--color-surface-2);
}

/* Le dessin seul, en orange, sans cercle (client, 27 nov. 2026) */
.cg-service__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-strong);
}

/* ---------- Tarification ---------- */
.cg-pricing {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid var(--color-surface-2);
    border-radius: var(--radius-xl);
}

/* Le picto seul, en orange, sans carré (client, 27 nov. 2026) */
.cg-pricing__icon {
    display: inline-flex;
    flex-shrink: 0;
    padding-top: 3px;
    color: var(--color-primary-strong);
}

.cg-pricing__value {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.cg-pricing__note {
    margin-top: 4px;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--color-text-light);
}

/* ---------- Contact : le bouton marine centré (téléphone et email dans le bandeau) ---------- */
.cg-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 0 8px;
    scroll-margin-top: calc(var(--nav-height, 76px) + 24px);
}

.cg-contact__bouton {
    gap: 10px;
    padding-inline: 32px;
    border-radius: var(--radius-pill);
}

.cg-contact__bouton::after {
    content: "→";
}

/* ---------- Bandeaux de ses annonces (rail et cartes de patterns.css / cards.css) ---------- */
.cg-bandeau {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-surface-2);
}

.cg-bandeau + .cg-bandeau {
    margin-top: 16px;
    border-top: none;
}

/* ---------- Zones en pied de page : « Antibes · Juan-les-Pins · … » ---------- */
.cg-zones {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-surface-2);
    color: var(--color-primary-strong);
}

.cg-zones svg {
    flex-shrink: 0;
}

.cg-zones__liste {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--font-size-md);
    color: var(--color-text-light);
}

.cg-zones__liste li + li::before {
    content: "·";
    margin: 0 8px;
}

.cg-zones__liste a:hover {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    /* Bandeau : même voile, les blocs s'empilent */
    .cg-heros {
        min-height: 240px;
        border-radius: var(--radius-xl);
    }

    .cg-heros__identite {
        gap: 12px;
    }

    .cg-heros__logo {
        width: 56px;
        height: 56px;
    }

    .cg-heros__bas {
        flex-direction: column;
        align-items: flex-start;
    }

    .cg-heros__contact {
        flex-direction: column;
    }

    .cg-apropos {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    /* Services : deux par ligne, sans traits */
    .cg-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 16px;
    }

    .cg-service:not(:nth-child(4n + 1)) {
        border-left: none;
    }

    .cg-section {
        padding: 28px 0;
    }

    .cg-section__title {
        font-size: 20px;
    }

    .cg-pricing {
        padding: 16px;
    }
}
