/* ==========================================================================
1. POLICES & CONFIGURATION DE BASE
========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap');

:root {
--tara-orange: #FF4500;
--tara-green: #008069;
--tara-blue: #229ED9;
 --tara-dark: #111827;
}

body { font-family: 'Montserrat', sans-serif; overflow-x: hidden; }

/* ==========================================================================
2. SECTION HERO
========================================================================== */
.hero-tara {
 min-height: 75vh;
display: flex;
align-items: center;
justify-content: center;
background-size: cover;
background-position: center;
position: relative;
 background-image: url('/static/accueil.jpg');
margin-bottom: 0 !important;
}

.hero-overlay {
 position: absolute; inset: 0;
 background: rgba(0, 0, 0, 0.45);
}

.tara-title {
 line-height: 1.1 !important;
letter-spacing: -0.02em;
color: #ffffff;
}

.text-huge { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; }
.text-large { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; }

.tara-underline {
font-style: italic;
display: inline-block;
position: relative;
z-index: 1;
}

.tara-underline::after {
 content: "";
position: absolute;
left: 0;
bottom: 4px;
width: 100%;
 height: 6px;
background: linear-gradient(90deg, var(--tara-orange) 70%, transparent 70%);
background-size: 20px 100%;
 z-index: -1;
}


/* --- SECTION 2 : Ajustement de l'image --- */
.about-image-container {
    position: relative;
    z-index: 10;
    margin-bottom: 0;
}

.about-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- SECTION 3 : Style "Tara Money" (Contours minces) --- */
.barre-abonnement {
    background-color: transparent;
    border: none; 
    border-radius: 50px;
    padding: 1.5rem 2.5rem !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: transparent;
}

/* Suppression de l'effet de décalage brutal pour rester sur le style Tara */
.barre-abonnement:hover {
    box-shadow: none;
    transform: none;
}

/* --- Bouton S'abonner style Tara (plus fin) --- */
.btn-abonnement-orange {
    background-color: var(--tara-orange);
    color: #ffffff;
    padding: 12px 24px;
    font-size: 0.85rem;
    border-radius: 9999px; /* Bouton totalement rond */
    font-weight: 700;
    text-transform: none; /* Moins agressif que l'uppercase */
    border: none; /* Pas de bordure noire sur le bouton pour ce style */
    transition: all 0.3s ease;
}





/* ==========================================================================
3. SECTION PRÉSENTATION
========================================================================== */

.about-badge-pill {
display: inline-flex;
 align-items: center;
background-color: #ffffff;
border: 1px solid #f3f4f6;
padding: 4px 16px 4px 4px;
 border-radius: 9999px;
 box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
 margin-bottom: 1.5rem;
}
#multi-channel-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Transition fluide pour l'image de fond */
    transition: background-image 0.8s ease-in-out; 
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    max-width: 98%;
    margin: 2rem auto;
}

/* On s'assure que le contenu survole bien l'image */
#multi-channel-section > div {
    position: relative;
    z-index: 2;
}

.about-badge-tag {
 background-color: var(--tara-orange);
color: #ffffff;
padding: 4px 12px;
 border-radius: 9999px;
 font-size: 10px;
 font-weight: 700;
 text-transform: uppercase;
}

.about-image-container {
 position: relative;
 z-index: 1;
}

/* ==========================================================================
4. SECTION MULTI-CANAL (CORRIGÉE)
========================================================================== */

#multi-channel-section { transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.channel-selector-wrapper {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
 border: 1px solid rgba(255, 255, 255, 0.2);
 padding: 5px;
 border-radius: 9999px;
display: inline-flex;
}

.channel-btn {
padding: 10px 24px;
border-radius: 9999px;
color: #ffffff;
font-weight: 700;
font-size: 0.9rem;
transition: all 0.3s ease;
border: none;
background: transparent;
cursor: pointer;
 opacity: 0.7;
}

.channel-btn.active {
background-color: #ffffff !important;
color: #000000 !important;
opacity: 1;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.illustration-box {
width: 280px;
height: 280px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
 border-radius: 40px;
backdrop-filter: blur(15px);
display: flex;
align-items: center;
 justify-content: center;
}

/* ==========================================================================
5. ANIMATIONS
========================================================================== */
.reveal, .reveal-left, .reveal-right {
 opacity: 0;
 transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.active { opacity: 1 !important; transform: translate(0) !important; }

@keyframes floatY {
 0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
.floating-image-y { animation: floatY 5s ease-in-out infinite; }

.fade-out { opacity: 0; transform: translateY(10px); }

@keyframes kf-fade-in-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade-in { animation: kf-fade-in-up .6s ease both; }

@keyframes kf-slide-in-right { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.anim-slide-in { animation: kf-slide-in-right .6s cubic-bezier(.2,.6,.2,1) both; }

@keyframes kf-zoom-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.anim-zoom-in { animation: kf-zoom-in .6s cubic-bezier(.2,.6,.2,1) both; }

@keyframes kf-rotate-in { from { opacity: 0; transform: rotate(-3deg) scale(.98); } to { opacity: 1; transform: rotate(0) scale(1); } }
.anim-rotate-in { animation: kf-rotate-in .6s ease-out both; }

/* Animation de fondu pour le texte en boucle */
.fade-text {
    opacity: 0;
    transform: translateY(5px);
}

#loop-text {
    display: inline-block;
    min-width: 150px; /* Évite que la barre ne saute lors du changement de mot */
    transition: all 0.4s ease-in-out;
}
@keyframes channelColorCycle {
    0%   { color: var(--tara-green); }
    25%  { color: #ffffff; }
    50%  { color: #ff0000; }
    75%  { color: var(--tara-blue); }
    100% { color: var(--tara-green); }
}
.channel-color-cycle {
    animation: channelColorCycle 6s linear infinite;
}
/* Style de la barre transparente avec contours noirs */
.barre-abonnement {
    background-color: transparent;
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Effet au survol de la barre (optionnel) */
.barre-abonnement:hover {
    box-shadow: none;
    transform: none;
}


/* ... (Cherchez la classe .btn-abonnement-orange et remplacez par ceci) ... */

/* Style du bouton orange d'abonnement réduit */
.btn-abonnement-orange {
    background-color: #FF4500;
    color: #ffffff;
    /* Tailles réduites ici */
    padding: 10px 20px; 
    font-size: 0.9rem;   
    border-radius: 10px;
    
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    white-space: nowrap;
}

/* Optionnel : Ajuster aussi les boutons globaux si besoin */
.btn-tara-orange {
    background-color: var(--tara-orange);
    border-radius: 9999px;
    padding: 10px 22px; /* Réduit de 12px 28px */
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}









.btn-abonnement-orange:hover {
    background-color: #000000; /* Devient noir au survol */
    color: #FF4500;            /* Texte orange au survol */
    transform: scale(1.05);
}

/* Animation du texte */
#loop-text { display: inline-block; }

@media (max-width: 640px) {
  a.btn-tara-orange { padding: 6px 12px !important; font-size: 0.8rem !important; gap: 4px; }
  .btn-abonnement-orange { padding: 8px 14px; font-size: 0.75rem; }
  .channel-btn { padding: 6px 10px !important; font-size: 0.75rem !important; }
  #channel-cta { padding: 6px 10px !important; font-size: 0.8rem !important; gap: 4px; }
  .btn-icon-circle { width: 1rem; height: 1rem; }
  .about-image-container { max-width: 320px !important; }
  #multi-channel-section { min-height: 480px; padding-top: 2rem !important; padding-bottom: 2rem !important; border-radius: 20px; }
  .py-16 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .py-20 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .gap-12 { gap: 1rem !important; }
}

/* Boutons Tara */
.btn-tara-orange { background-color: var(--tara-orange); border-radius: 9999px; padding: 12px 28px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.btn-icon-circle { width: 28px; height: 28px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.tara-navbar { position: fixed !important; top: 0 !important; left: 0; right: 0; z-index: 1030; background: #ffffff; box-shadow: 0 8px 24px rgba(17,24,39,0.08); }
.tara-navbar .nav-link { color: var(--tara-dark); font-weight: 800; padding: 10px 14px; border-radius: 9999px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.tara-navbar .nav-link:hover { color: var(--tara-orange); background: rgba(0,0,0,0.04); transform: translateY(-1px); }
.tara-navbar .nav-cta { background: var(--tara-orange); color: #fff; border-radius: 9999px; padding: 10px 16px; font-weight: 900; }
.tara-navbar .nav-cta:hover { transform: scale(1.03); }

.hamburger { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; background: rgba(0,0,0,0.06); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.hamburger:hover { transform: scale(1.06); background: rgba(0,0,0,0.08); }
.hamburger-box { position: relative; width: 22px; height: 14px; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { position: absolute; width: 22px; height: 2px; background-color: var(--tara-dark); transition: transform .3s ease, opacity .3s ease; content: ""; display: block; }
.hamburger-inner { top: 6px; }
.hamburger-inner::before { top: -6px; }
.hamburger-inner::after { top: 6px; }
.hamburger.is-active .hamburger-inner { background-color: transparent; }
.hamburger.is-active .hamburger-inner::before { transform: translateY(6px) rotate(45deg); }
.hamburger.is-active .hamburger-inner::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; background: #ffffff; color: var(--tara-dark); z-index: 40; transform: translateY(-100%); transition: transform .35s cubic-bezier(.2,.6,.2,1); display: flex; flex-direction: column; padding: 80px 24px 24px; gap: 8px; }
.mobile-menu.menu-open { transform: translateY(0); }
.mobile-menu a { color: var(--tara-dark); font-weight: 900; letter-spacing: .01em; padding: 14px 12px; border-radius: 12px; transition: color .2s ease, background .2s ease; }
.mobile-menu a:hover { background: rgba(0,0,0,0.06); color: var(--tara-orange); }
.mobile-menu .menu-title { color: var(--tara-dark); font-weight: 900; font-size: 1.1rem; opacity: .9; }

.nav-overlay { display: none; }
.menu-open + .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); z-index: 30; }

header nav { z-index: 50; }
header .mobile-menu { background: #ffffff; }
nav .mobile-menu { background: #ffffff; }

@media (min-width: 1024px) { .mobile-menu { display: none; } }
/* Capsule interne Bootstrap: fond blanc et coins arrondis */
.navbar-floating .navbar-capsule { background: #ffffff; border-radius: 1.5rem; padding: 6px 10px; box-shadow: 0 8px 24px rgba(17,24,39,0.08); }
.navbar .nav-link { color: var(--tara-dark); font-weight: 800; padding: 8px 12px; border-radius: 9999px; }
.navbar .nav-link:hover { color: var(--tara-orange); background: rgba(0,0,0,0.04); }
/* Menu mobile Bootstrap en blanc */
@media (max-width: 991.98px) {
  .navbar-collapse { position: fixed; top: 64px; left: 0; right: 0; height: calc(100vh - 64px); overflow-y: auto; background: #ffffff; border-radius: 12px; padding: 20px 16px; z-index: 1029; box-shadow: 0 8px 24px rgba(17,24,39,0.08); }
  .navbar-collapse .nav-link { color: var(--tara-dark); }
  .navbar-collapse .nav-link:hover { color: var(--tara-orange); background: rgba(0,0,0,0.06); }
  .navbar-collapse form { background: #ffffff; border-radius: 12px; padding: 12px; margin: 8px 0; box-shadow: 0 4px 12px rgba(17,24,39,0.08); }
  .navbar-collapse form .nav-link, .navbar-collapse form button { background: #ffffff; color: var(--tara-dark); border-radius: 10px; padding: 10px 12px; width: 100%; }
}
/* Toggler hamburger custom */
.navbar-toggler { width: 40px; height: 40px; border-radius: 10px; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { position: relative; width: 22px; height: 2px; background: var(--tara-dark); display: inline-block; }
.navbar-toggler-icon::before, .navbar-toggler-icon::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--tara-dark); }
.navbar-toggler-icon::before { top: -6px; }
.navbar-toggler-icon::after { top: 6px; }
