/* ═══════════════════════════════════════════════════════════════
   TIB.CSS — Page T.I.B dans l'ADN du site Europale
═══════════════════════════════════════════════════════════════ */

/* ── Réduire l'espace du text_section sur cette page ─────────── */
.tib-text-section {
    padding-top: 30px !important;
    padding-bottom: 55px !important;
    overflow: visible !important;
}

/* ── Liste tib-list ──────────────────────────────────────────── */
.tib-list {
    list-style: none;
    margin: 18px 0 0;
}
.tib-list li {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tib-list li i {
    color: #097eeb;
    font-size: 0.75rem;
}

/* ── Stats strip ─────────────────────────────────────────────── */
.tib-stats-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    background: #097eeb;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.tib-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    text-align: center;
    transition: background 0.3s;
}
.tib-stat:hover { background: rgba(255,255,255,0.1); }

.stat-number {
    font-family: 'Anton', sans-serif;
    font-size: 2.2rem;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
}
.stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 600;
    white-space: nowrap;
}

.tib-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* Responsive stats strip */
@media (max-width: 768px) {
    .tib-stats-strip {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .tib-stat-sep { display: none; }
    .tib-stat {
        padding: 22px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .tib-stat:nth-child(7),
    .tib-stat:nth-child(8) { border-bottom: none; }
    .stat-number { font-size: 1.8rem; }
    .stat-label  { font-size: 0.65rem; letter-spacing: 0.5px; white-space: normal; }
}
@media (max-width: 480px) {
    .tib-stats-strip { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 1.6rem; }
}

/* ── Présentation owner ──────────────────────────────────────── */
.tib-owner {
    padding: 60px 15%;
    box-sizing: border-box;
    align-items: center;
    margin: 60px 0 0 !important;
    height: auto !important;
}
.tib-owner .image_box_owner {
    width: 42%;
    height: 420px;
}
.tib-owner .image_box_owner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 24px 60px -18px rgba(0,0,0,0.25);
}
.tib-owner .image_box_owner {
    text-align: center;
}
.tib-owner .image_box_owner p {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #097eeb, #0568c8);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(9,126,235,0.35);
}
.tib-owner .image_box_owner p i {
    color: #ffd700;
    font-size: 0.9rem;
}

/* ── Responsive cover4 + badge FIBA ── */
@media (max-width: 992px) {
    .tib-owner {
        flex-direction: column !important;
        padding: 36px 5% !important;
        gap: 28px !important;
        margin: 30px 0 0 !important;
        height: auto !important;
        align-items: stretch !important;
    }
    .tib-owner .image_box_owner {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .tib-owner .image_box_owner img {
        width: 100% !important;
        height: 240px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        display: block !important;
    }
    .tib-owner .image_box_owner p {
        display: inline-flex !important;
        margin-top: 12px !important;
        font-size: 0.78rem !important;
        align-self: center !important;
    }
    .tib-owner .content_box { width: 100% !important; }
    .tib-owner .small_title { font-size: 0.72rem !important; }
    .tib-owner .big_title   { font-size: 1.4rem !important; line-height: 1.25 !important; }
}
@media (max-width: 480px) {
    .tib-owner { padding: 28px 4% !important; gap: 20px !important; }
    .tib-owner .image_box_owner img { height: 190px !important; }
    .tib-owner .big_title { font-size: 1.2rem !important; }
}
.tib-owner .content_box { width: 50%; }

/* ── Villes partenaires — split 50/50 ───────────────────────── */
.tib-villes-split {
    display: flex;
    height: 55vh;
    overflow: hidden;
    margin-bottom: 0;
}

.tib-ville-half {
    position: relative;
    flex: 1;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: flex 0.5s ease;
}
.tib-villes-split:hover .tib-ville-half { flex: 0.7; }
.tib-villes-split .tib-ville-half:hover { flex: 1.3; }

.tib-ville-half-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.tib-ville-half:hover .tib-ville-half-bg { transform: scale(1.06); }

.tib-ville-half-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    transition: background 0.4s;
}
.tib-ville-half:hover .tib-ville-half-overlay {
    background: linear-gradient(to top, rgba(9,126,235,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.tib-ville-half-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 36px;
    color: #fff;
}

.tib-ville-tag {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.tib-ville-half-content h3 {
    font-family: 'Anton', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: #fff;
    line-height: 1;
}

.tib-ville-half-content p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 14px;
    line-height: 1.5;
}

.tib-ville-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.tib-ville-half:hover .tib-ville-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Séparateur entre les deux villes */
.tib-ville-half:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: rgba(255,255,255,0.3);
    z-index: 2;
}

/* ── Galerie preview ─────────────────────────────────────────── */
.tib-gallery-preview {
    background: #111;
    padding: 0 0 70px;
}

.tib-gallery-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 4px;
    margin-bottom: 50px;
}

.tib-preview-item {
    position: relative;
    overflow: hidden;
}
.tib-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    filter: brightness(0.85);
}
.tib-preview-item:hover img {
    transform: scale(1.06);
    filter: brightness(1);
}

.tib-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9,126,235,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.tib-preview-overlay i {
    color: #fff;
    font-size: 2rem;
}
.tib-preview-item:hover .tib-preview-overlay { opacity: 1; }

/* CTA */
.tib-gallery-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 0 20px;
}
.tib-gallery-cta p {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    margin: 0;
}
.tib-gallery-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    padding: 14px 36px !important;
    background: #fff !important;
    color: #111 !important;
    border-color: #fff !important;
}
.tib-gallery-btn:hover {
    background: #097eeb !important;
    color: #fff !important;
    border-color: #097eeb !important;
}

/* ── Formules — pattern ADN owner ───────────────────────────── */
.tib-formules-wrap {
    padding: 0 10% 0;
    background: #f4f4f4;
}

.tib-formule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 70px 0;
    border-bottom: 1px solid #e4e4e4;
}
.tib-formule-row:last-child { border-bottom: none; }
.tib-formule-row-reverse { flex-direction: row-reverse; }

/* ── Responsive formules ── */
@media (max-width: 1100px) {
    .tib-formules-wrap { padding: 0 6% 0; }
    .tib-formule-row { gap: 40px; padding: 60px 0; }
}
/* ── Responsive formules ── */
@media (max-width: 992px) {
    .tib-formules-wrap  { padding: 0 5% 0; }
    .tib-formule-row    { flex-direction: column !important; gap: 24px; padding: 48px 0; }
    .tib-formule-img    { width: 100% !important; height: 240px !important; flex-direction: column !important; align-items: flex-start !important; justify-content: flex-end !important; padding: 20px !important; }
    .tib-formule-content{ width: 100% !important; }
    .tib-prix-visual .prix-item { font-size: 2.2rem; }
    /* Label : sort de position absolute, devient badge visible */
    .tib-formule-label  {
        position: relative !important;
        bottom: auto !important; left: auto !important;
        transform: none !important;
        display: inline-flex !important;
        align-self: flex-start !important;
        margin-top: 12px !important;
        white-space: nowrap !important;
    }
}
@media (max-width: 600px) {
    .tib-formules-wrap  { padding: 0 4% 0; }
    .tib-formule-row    { padding: 32px 0; gap: 16px; }
    .tib-formule-img    { height: 180px !important; border-radius: 10px !important; }
    .tib-prix-visual .prix-item { font-size: 1.8rem; }
    .tib-formule-label  { font-size: 0.68rem !important; padding: 5px 12px !important; }
    .tib-prix-list li   { font-size: 0.85rem; padding: 10px 0; }
    .tib-prix-list li strong { font-size: 1.05rem; }
}
@media (max-width: 480px) {
    .tib-formule-notes  { padding: 20px 4% 36px !important; flex-direction: column !important; }
    .note-card          { font-size: 0.78rem; padding: 10px 14px; width: 100%; }
    .tib-formule-img    { height: 160px !important; }
    .tib-prix-visual .prix-item { font-size: 1.5rem; }
}

/* Bloc image/couleur à gauche */
.tib-formule-img {
    width: 42%;
    height: 360px;
    border-radius: 14px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    background: #eaeaea;
    border: 1px solid #dedede;
    border-left: 5px solid #097eeb;
    overflow: hidden;
}
.tib-formule-img::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(9,126,235,0.05);
}
.tib-formule-img::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(9,126,235,0.04);
}
.tib-formule-img.premium-img {
    background: #eaeaea;
    border-left: 5px solid #7c3aed;
}
.tib-formule-img.premium-img::before { background: rgba(124,58,237,0.05); }
.tib-formule-img.premium-img::after  { background: rgba(124,58,237,0.04); }

/* Montants en grand dans le bloc couleur */
.tib-formule-img::before {
    font-family: 'Anton', sans-serif;
}
.tib-prix-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}
.tib-prix-visual .prix-item {
    font-family: 'Anton', sans-serif;
    font-size: 3.2rem;
    color: #097eeb;
    letter-spacing: 1px;
    line-height: 1;
    opacity: 0.85;
}
.tib-formule-img.premium-img .tib-prix-visual .prix-item { color: #7c3aed; }
.tib-prix-visual .prix-item small {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.tib-formule-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.economic-label {
    background: linear-gradient(135deg, #097eeb, #0568c8);
    color: #fff;
}
.premium-label {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
}

/* Contenu texte */
.tib-formule-content { width: 50%; }

.tib-prix-list {
    list-style: none;
    margin-top: 28px;
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}
.tib-prix-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 0.95rem;
}
.tib-prix-list li:last-child { border-bottom: none; }
.tib-prix-list li span { color: #888; }
.tib-prix-list li strong {
    font-size: 1.3rem;
    color: #097eeb;
}
.tib-prix-list.premium li strong { color: #7c3aed; }
.tib-prix-list li strong small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #bbb;
    margin-left: 2px;
}

/* Notes */
.tib-formule-notes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 30px 15% 50px;
    background: #f4f4f4;
}
.note-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid transparent;
}
.note-card.ok   { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.note-card.ok i { color: #43a047; }
.note-card.warn { background: #fff8e1; color: #795548; border-color: #ffe082; }
.note-card.warn i { color: #f59e0b; }

/* ── Services — cartes sur fond gris ─────────────────────────── */
.tib-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 15% 60px;
    background: #f4f4f4;
}

.tib-service-item {
    background: #fff;
    border-radius: 14px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: default;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.tib-service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px -10px rgba(9,126,235,0.15);
    border-color: #d0e8ff;
}

.tib-service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f4fe, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}
.tib-service-item:hover .tib-service-icon {
    background: linear-gradient(135deg, #097eeb, #45aff0);
    transform: rotate(-5deg);
}
.tib-service-icon i {
    font-size: 1.2rem;
    color: #097eeb;
    transition: color 0.3s;
}
.tib-service-item:hover .tib-service-icon i { color: #fff; }

.tib-service-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.tib-service-item p {
    font-size: 0.82rem;
    color: #999;
    line-height: 1.6;
    margin: 0;
}

/* Note contact */
.tib-contact-note {
    text-align: center;
    padding: 28px 10%;
    background: #f4f4f4;
    font-size: 0.88rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}
.tib-contact-note i { color: #097eeb; }
.tib-contact-note a { color: #097eeb; font-weight: 700; text-decoration: none; }
.tib-contact-note a:hover { text-decoration: underline; }

/* ══ RESPONSIVE tib.css ═══════════════════════════════════════ */
@media (max-width: 1100px) {
    .tib-services-grid { padding: 0 8% 60px !important; }
    .tib-edition-grid  { padding: 0 8% 60px !important; }
}
@media (max-width: 992px) {
    .tib-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 6% 50px !important;
    }
    .tib-edition-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 6% 50px !important;
    }
    .tib-hero-content { padding: 120px 6% 40px !important; }
    .tib-palmarès-grid { grid-template-columns: repeat(2, 1fr) !important; padding: 0 6% 50px !important; }
    .tib-contact-note  { padding: 24px 6% !important; flex-direction: column !important; gap: 16px !important; }
    .tib-galerie-grid  { grid-template-rows: auto !important; grid-template-columns: repeat(2, 1fr) !important; padding: 0 6% 50px !important; }
}
@media (max-width: 768px) {
    .tib-services-grid { gap: 16px !important; }
    .tib-edition-grid  { gap: 16px !important; }
    .tib-stat-row { flex-wrap: wrap !important; justify-content: center !important; gap: 16px !important; padding: 30px 6% !important; }
    .tib-stat-item { min-width: 130px !important; }
    .tib-galerie-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    .tib-services-grid { grid-template-columns: 1fr !important; padding: 0 5% 40px !important; }
    .tib-edition-grid  { grid-template-columns: 1fr !important; padding: 0 5% 40px !important; }
    .tib-palmarès-grid { grid-template-columns: 1fr !important; }
    .tib-service-card  { padding: 22px 18px !important; }
}
@media (max-width: 480px) {
    .tib-stat-num  { font-size: clamp(28px, 10vw, 48px) !important; }
    .tib-stat-label { font-size: 0.75rem !important; }
}
