@charset "UTF-8";

.ent-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 36px 10%;
    background: #3d3d3d;
    min-height: calc(100vh - 80px);
}

.ent-section-title {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

/* ===== CARTES ===== */
.ent-card {
    background: #1e1e1e;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.ent-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #3d3d3d;
}

.ent-card__header h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #efefef;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ent-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== TEXTES ===== */
.ent-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #efefefd5;
    line-height: 1.7;
}

.ent-text + .ent-text {
    margin-top: 12px;
}

.ent-lead {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: 1.7;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--accent);
}

.ent-strong {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.6;
}

.ent-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.ent-link:hover {
    text-decoration: underline;
}

.ent-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1e1e1e;
    background: var(--accent);
    border-radius: 8px;
    padding: 9px 16px;
    text-decoration: none;
    transition: filter 0.15s;
}

.ent-btn:hover {
    filter: brightness(0.9);
}

/* ===== PHOTOS ===== */
.ent-photo {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #2a2a2a;   /* visible tant que l'image n'est pas chargée */
    aspect-ratio: 4 / 3;
}

.ent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== INTRO ===== */
.ent-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 32px;
    align-items: center;
}

.ent-hero__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ent-hero__title {
    font-family: 'Manrope', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

/* Image de l'intro : format d'origine, pas de recadrage ni de fond,
   coins arrondis comme les autres photos (le cadre coupe l'image : overflow hidden) */
.ent-hero__photo {
    aspect-ratio: auto;
    background: none;
    border-radius: 10px;
    width: 300px;
    max-width: 100%;
}

.ent-hero__photo img {
    height: auto;
    object-fit: contain;
}

/* ===== CHIFFRES ===== */
.ent-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ent-stat {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ent-stat__value {
    font-family: 'Manrope', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
}

.ent-stat__label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999;
}

/* ===== BLOCS IMAGE + TEXTE ===== */
.ent-split {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: start;
}

.ent-split--reverse {
    grid-template-columns: 1fr 340px;
}

.ent-split--reverse .ent-photo {
    order: 2;
}

/* ===== COORDONNÉES ===== */
.ent-contact {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: center;
}

.ent-contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ent-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ent-info__label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ent-info__label--spaced {
    margin-top: 14px;
}

.ent-info__value {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #efefef;
    line-height: 1.6;
}

.ent-info__value--link {
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

.ent-info__value--link:hover {
    color: var(--accent);
}

/* ===== GALERIE ===== */
.ent-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.ent-gallery__item {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a2a;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    transition: border-color 0.15s;
}

.ent-gallery__item:hover,
.ent-gallery__item:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.ent-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ent-gallery__item:hover img {
    transform: scale(1.05);
}

/* ===== ZOOM ===== */
.ent-lightbox {
    margin: auto;          /* centre la fenêtre, même si un reset CSS met margin: 0 */
    border: none;
    padding: 0;
    background: transparent;
    max-width: 92vw;
    max-height: 92vh;
    overflow: visible;
}

.ent-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.ent-lightbox__img {
    display: block;
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 10px;
}

.ent-lightbox__btn {
    position: fixed;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #1e1e1e;
    color: #efefef;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ent-lightbox__btn:hover {
    background: var(--accent);
    color: #1e1e1e;
}

.ent-lightbox__close { top: 20px; right: 20px; font-size: 16px; }
.ent-lightbox__prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.ent-lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .ent-page {
        padding: 24px 5%;
    }
    .ent-hero,
    .ent-split,
    .ent-split--reverse,
    .ent-contact {
        grid-template-columns: minmax(0, 1fr);   /* 1fr seul ne descend pas sous le mot le plus long */
    }
    .ent-split--reverse .ent-photo {
        order: 0;
    }
    .ent-hero__photo {
        justify-self: center;   /* image centrée, sans recadrage */
    }
    .ent-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ent-page {
        padding: 20px 16px;
    }
    .ent-hero,
    .ent-card__body {
        padding: 20px;
    }
    .ent-hero__title {
        font-size: 22px;
    }
    .ent-contact__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ent-stat__value {
        font-size: 22px;
    }
    /* Mots longs (allemand…) coupés plutôt que d'élargir la page */
    .ent-stat {
        padding: 16px;
        overflow-wrap: anywhere;
        -webkit-hyphens: auto;   /* Safari iOS */
        hyphens: auto;
    }
}


/* =====================================================================
   SAVOIR-FAIRE
   Sélecteurs préfixés par .ent-page + remises à zéro, pour que les
   styles globaux du site (ul, ol, li, li::before...) ne passent pas devant.
   ===================================================================== */

/* ===== FRISE DES ÉTAPES ===== */
.ent-page .sf-process {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.ent-page .sf-process__step {
    list-style: none;
    float: none;
    width: auto;
    margin: 0;
    background: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px;
}

/* Ligne qui relie une étape à la suivante */
.ent-page .sf-process__step::before {
    content: none;
}

.ent-page .sf-process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 19px;
    left: calc(50% + 26px);
    right: calc(-50% + 26px);
    height: 2px;
    background: #4a4a4a;
}

.ent-page .sf-process__dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: #1e1e1e;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
    flex-shrink: 0;
}

/* Dernière étape (contrôles) pleine */
.ent-page .sf-process__step:last-child .sf-process__dot {
    background: var(--accent);
    color: #1e1e1e;
}

.ent-page .sf-process__label {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.ent-page .sf-process__desc {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #999;
    line-height: 1.5;
}

/* ===== LISTE QUALITÉ ===== */
.ent-page .sf-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}

.ent-page .sf-checklist > li {
    list-style: none;
    float: none;
    width: auto;
    margin: 0;
    position: relative;
    padding: 0 0 0 22px;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #efefefe1;
    line-height: 1.6;
}

.ent-page .sf-checklist > li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: calc(0.8em - 4px);      /* centré sur la première ligne */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ===== RESPONSIVE SAVOIR-FAIRE ===== */
@media (max-width: 1100px) {
    /* Frise verticale sur tablette et mobile */
    .ent-page .sf-process {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .ent-page .sf-process__step {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 16px;
        align-items: start;
        text-align: left;
        padding: 0 0 22px;
    }
    .ent-page .sf-process__step:last-child {
        padding-bottom: 0;
    }
    .ent-page .sf-process__dot {
        grid-row: span 2;
        margin-bottom: 0;
    }
    .ent-page .sf-process__label {
        margin: 9px 0 2px;
    }
    .ent-page .sf-process__step:not(:last-child)::after {
        top: 44px;
        bottom: 4px;
        left: 19px;
        right: auto;
        width: 2px;
        height: auto;
    }
}

@media (max-width: 640px) {
    .ent-page .sf-checklist {
        grid-template-columns: 1fr;
    }
}


/* =========================================================================
   THÈME CLAIR
   Actif quand <html data-theme="light"> (bouton de l'en-tête ou page « Mon compte »).
   Tokens et principe : voir la section THÈME CLAIR de layout.css.
   :where() garde la spécificité de la règle sombre d'origine : ces règles
   passent devant parce qu'elles sont en fin de fichier.
   ========================================================================= */

:where(:root[data-theme="light"]) .ent-page { background-color: #e4e4e4; }
:where(:root[data-theme="light"]) .ent-section-title { color: #4a4a4a; }
:where(:root[data-theme="light"]) .ent-card {
  background-color: #ffffff;
  border-color: #c2c2c2;
}
:where(:root[data-theme="light"]) .ent-card__header { background-color: #e4e4e4; }
:where(:root[data-theme="light"]) .ent-card__header h2 { color: #1e1e1e; }
:where(:root[data-theme="light"]) .ent-text { color: #262626; }
:where(:root[data-theme="light"]) .ent-lead {
  color: #111111;
  border-left-color: var(--accent-mark);
}
:where(:root[data-theme="light"]) .ent-strong { color: var(--accent-text); }
:where(:root[data-theme="light"]) .ent-link { color: var(--accent-text); }
:where(:root[data-theme="light"]) .ent-btn {
  color: #1e1e1e;
  background-color: var(--accent);
}
:where(:root[data-theme="light"]) .ent-photo { background-color: #ececec; }
:where(:root[data-theme="light"]) .ent-hero__title { color: #111111; }
:where(:root[data-theme="light"]) .ent-hero__photo { background-color: transparent; }
:where(:root[data-theme="light"]) .ent-stat { background-color: #ffffff; }
:where(:root[data-theme="light"]) .ent-stat__value { color: var(--accent-text); }
:where(:root[data-theme="light"]) .ent-stat__label { color: #4a4a4a; }
:where(:root[data-theme="light"]) .ent-info__label { color: #4a4a4a; }
:where(:root[data-theme="light"]) .ent-info__value { color: #1e1e1e; }
:where(:root[data-theme="light"]) .ent-info__value--link:hover { color: var(--accent-text); }
:where(:root[data-theme="light"]) .ent-gallery__item {
  border-color: transparent;
  background-color: #ececec;
}
:where(:root[data-theme="light"]) .ent-gallery__item:hover,
:where(:root[data-theme="light"]) .ent-gallery__item:focus-visible { border-color: var(--accent-line); }
:where(:root[data-theme="light"]) .ent-lightbox { background-color: transparent; }
:where(:root[data-theme="light"]) .ent-lightbox::backdrop { background-color: rgba(0, 0, 0, 0.85); }
:where(:root[data-theme="light"]) .ent-lightbox__btn {
  background-color: #ffffff;
  color: #1e1e1e;
}
:where(:root[data-theme="light"]) .ent-lightbox__btn:hover {
  background-color: var(--accent);
  color: #1e1e1e;
}
:where(:root[data-theme="light"]) .ent-page .sf-process__step { background-color: transparent; }
:where(:root[data-theme="light"]) .ent-page .sf-process__step:not(:last-child)::after { background-color: #d6d6d6; }
:where(:root[data-theme="light"]) .ent-page .sf-process__dot {
  border-color: var(--accent-line);
  background-color: #ffffff;
  color: var(--accent-text);
}
:where(:root[data-theme="light"]) .ent-page .sf-process__step:last-child .sf-process__dot {
  background-color: var(--accent);
  color: #1e1e1e;
}
:where(:root[data-theme="light"]) .ent-page .sf-process__label { color: #111111; }
:where(:root[data-theme="light"]) .ent-page .sf-process__desc { color: #4a4a4a; }
:where(:root[data-theme="light"]) .ent-page .sf-checklist > li {
  background-color: transparent;
  color: #262626;
}
:where(:root[data-theme="light"]) .ent-page .sf-checklist > li::before { background-color: var(--accent); }