/* ─────────────────────────────────────────────────────────────
   Radio CCPL — Home
   Charte inspirée du site cc-paysdelimours.fr
   ───────────────────────────────────────────────────────────── */

:root {
    --ccpl-teal:        #029ba1;
    --ccpl-teal-dark:   #00667f;
    --ccpl-teal-light:  #20bdc3;
    --ccpl-teal-soft:   #5dd6db;
    --ccpl-orange:      #f7941d;
    --ccpl-red:         #f84425;
    --ccpl-ink:         #333d42;
    --ccpl-ink-soft:    #778a93;
    --ccpl-line:        #dce2e6;
    --ccpl-bg:          #f4f8fa;
    --ccpl-bg-soft:     #eaf7f8;
    --ccpl-white:       #ffffff;

    --radius:           14px;
    --radius-lg:        22px;
    --shadow:           0 10px 30px rgba(0, 102, 127, .08);
    --shadow-lg:        0 20px 50px rgba(0, 102, 127, .15);
    --header-h:         84px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--ccpl-white);
    color: var(--ccpl-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ccpl-teal-dark); text-decoration: none; }
a:hover { color: var(--ccpl-teal); }

h1, h2, h3 { color: var(--ccpl-ink); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header ───────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ccpl-white);
    border-bottom: 1px solid var(--ccpl-line);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    flex-shrink: 0;
}

.site-header__logo {
    height: 48px;
    width: auto;
    display: block;
}

.site-header__title { display: flex; flex-direction: column; line-height: 1.1; }
.site-header__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ccpl-ink-soft);
}
.site-header__title strong {
    font-size: 1.25rem;
    color: var(--ccpl-teal-dark);
    font-weight: 800;
}

.site-header__nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    font-weight: 600;
    font-size: .95rem;
}
.site-header__nav a {
    color: var(--ccpl-ink);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.site-header__nav a:hover { color: var(--ccpl-teal); border-color: var(--ccpl-teal-light); }

/* ─── Player header ────────────────────────────────────────── */

.site-header__player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--ccpl-teal) 0%, var(--ccpl-teal-dark) 100%);
    color: #fff;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.player__btn {
    appearance: none;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--ccpl-teal-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform .15s;
}
.player__btn:hover { transform: scale(1.05); }
[data-state="loading"] .player__btn { cursor: wait; }

.player__icon--pause   { display: none; }
.player__icon--loading { display: none; }

[data-state="playing"] .player__icon--play    { display: none; }
[data-state="playing"] .player__icon--pause   { display: inline; }

[data-state="loading"] .player__icon--play    { display: none; }
[data-state="loading"] .player__icon--pause   { display: none; }
[data-state="loading"] .player__icon--loading { display: inline-block; }

.player__icon--loading {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 102, 127, .25);
    border-top-color: var(--ccpl-teal-dark);
    border-radius: 50%;
    animation: player-spin .7s linear infinite;
}

@keyframes player-spin {
    to { transform: rotate(360deg); }
}

.player__meta { display: flex; flex-direction: column; line-height: 1.1; }
.player__live {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.player__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ccpl-red);
    box-shadow: 0 0 0 0 rgba(248, 68, 37, .6);
    animation: pulse 1.8s ease-out infinite;
}
.player__label { font-weight: 700; font-size: .95rem; }
.player__listeners {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    text-transform: uppercase;
    letter-spacing: .04em;
    display: block;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(248, 68, 37, .55); }
    70%  { box-shadow: 0 0 0 10px rgba(248, 68, 37, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 68, 37, 0); }
}

/* ─── Hero ─────────────────────────────────────────────────── */

.hero {
    position: relative;
    padding: 90px 0 120px;
    background:
        radial-gradient(1200px 600px at 90% -10%, rgba(32, 189, 195, .25), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(0, 102, 127, .15), transparent 60%),
        linear-gradient(180deg, #f8fdfd 0%, #ffffff 100%);
    overflow: hidden;
}

.hero__inner { position: relative; z-index: 2; max-width: 820px; }

.hero__eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 14px;
    background: var(--ccpl-bg-soft);
    color: var(--ccpl-teal-dark);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.hero__title { margin-bottom: 24px; }
.hero__title-accent {
    background: linear-gradient(120deg, var(--ccpl-teal) 0%, var(--ccpl-teal-light) 60%, var(--ccpl-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lede {
    font-size: 1.15rem;
    color: var(--ccpl-ink);
    max-width: 640px;
    margin: 0 0 36px;
}

.hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero__strap { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__strap-tag {
    background: var(--ccpl-white);
    border: 1px solid var(--ccpl-line);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--ccpl-teal-dark);
    font-size: .9rem;
}

/* Waves animées en bas du hero (groupe compact centré) */
.hero__waves {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 72px;
    width: max-content;
    pointer-events: none;
}
.hero__waves::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(2, 155, 161, .12);
    border-radius: 2px;
}
.hero__waves span {
    display: block;
    width: 12px;
    flex: none;
    height: 100%;
    background: var(--ccpl-teal-soft);
    border-radius: 999px 999px 0 0;
    transform-origin: bottom center;
    transform: scaleY(.18);
    animation: spectrum-idle 1.4s ease-in-out infinite;
}
.hero__waves span:nth-child(odd)  { animation-duration: 1.15s; }
.hero__waves span:nth-child(3n)   { animation-duration: 1.55s; }
.hero__waves span:nth-child(5n)   { animation-duration: .95s; }
.hero__waves span:nth-child(4n)   { animation-delay: .12s; }
.hero__waves span:nth-child(7n)   { animation-duration: 1.3s; animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
    .hero__waves span {
        animation: none;
        transform: scaleY(.28);
    }
}

@keyframes spectrum-idle {
    0%, 100% { transform: scaleY(.16); }
    50%      { transform: scaleY(.72); }
}

@keyframes eq {
    0%, 100% { height: 14px; }
    50%      { height: 60px; }
}

/* ─── Boutons ──────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s, box-shadow .15s, background .15s;
    text-decoration: none;
}
.btn__icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--ccpl-teal) 0%, var(--ccpl-teal-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 102, 127, .25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 102, 127, .35); color: #fff; }

.btn--ghost {
    background: transparent;
    color: var(--ccpl-teal-dark);
    border: 2px solid var(--ccpl-teal-light);
}
.btn--ghost:hover { background: var(--ccpl-bg-soft); }

/* ─── Sections ─────────────────────────────────────────────── */

.section { padding: 90px 0; }
.section--light    { background: var(--ccpl-bg); }
.section--whatsapp { background: linear-gradient(135deg, var(--ccpl-teal-dark) 0%, var(--ccpl-teal) 100%); color: #fff; }
.section--vision   { background: var(--ccpl-white); text-align: center; }

.section__header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--ccpl-teal);
    margin-bottom: 12px;
}
.section__eyebrow--light { color: var(--ccpl-teal-soft); }
.section__intro { color: var(--ccpl-ink-soft); font-size: 1.05rem; }

/* ─── Cartes programmes ────────────────────────────────────── */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.card {
    background: var(--ccpl-white);
    border: 1px solid var(--ccpl-line);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--ccpl-teal-light);
}
.card__icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--ccpl-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.card p { color: var(--ccpl-ink-soft); margin: 0; }

/* ─── Application mobile ───────────────────────────────────── */

.section--app {
    background:
        radial-gradient(800px 400px at 15% 50%, rgba(32, 189, 195, .12), transparent 70%),
        radial-gradient(600px 350px at 85% 30%, rgba(247, 148, 29, .1), transparent 65%),
        linear-gradient(180deg, var(--ccpl-white) 0%, var(--ccpl-bg-soft) 100%);
}

.app-banner__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.app-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 16px 7px 12px;
    background: var(--ccpl-white);
    border: 1px solid var(--ccpl-line);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ccpl-teal-dark);
    box-shadow: var(--shadow);
}

.app-banner__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ccpl-orange);
    box-shadow: 0 0 0 0 rgba(247, 148, 29, .5);
    animation: pulse 1.8s ease-out infinite;
}

.app-banner__copy h2 {
    margin-bottom: 16px;
    max-width: 520px;
}

.app-banner__copy > p {
    color: var(--ccpl-ink-soft);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 0 28px;
}

.app-banner__features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-banner__features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: var(--ccpl-white);
    border: 1px solid var(--ccpl-line);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}

.app-banner__features li:hover {
    border-color: var(--ccpl-teal-light);
    box-shadow: var(--shadow);
}

.app-banner__feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ccpl-bg-soft);
    border-radius: 12px;
    font-size: 1.15rem;
}

.app-banner__features strong {
    color: var(--ccpl-teal-dark);
}

.app-banner__stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    border-radius: 12px;
    background: var(--ccpl-ink);
    color: #fff;
    min-width: 168px;
}

.store-badge--soon {
    opacity: .88;
    border: 1px dashed rgba(255, 255, 255, .25);
}

.store-badge--android {
    background: linear-gradient(135deg, #1a4d3e 0%, #0d3b2e 100%);
}

.store-badge__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.store-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.store-badge__text small {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .75;
}

.store-badge__text strong {
    font-size: 1rem;
    font-weight: 700;
}

/* Mockup téléphone */

.app-banner__visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    width: min(100%, 290px);
}

.phone-mockup__frame {
    position: relative;
    z-index: 2;
    background: linear-gradient(160deg, #2a2f33 0%, #111518 100%);
    border-radius: 38px;
    padding: 12px;
    box-shadow:
        0 30px 60px rgba(0, 102, 127, .22),
        inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.phone-mockup__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 24px;
    background: #111518;
    border-radius: 0 0 16px 16px;
    z-index: 4;
}

.phone-mockup__screen {
    background: linear-gradient(180deg, #f8fdfd 0%, #ffffff 55%, var(--ccpl-bg-soft) 100%);
    border-radius: 28px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.phone-mockup__statusbar {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px 4px;
    font-size: .68rem;
    font-weight: 700;
    color: var(--ccpl-ink);
}

.phone-mockup__signal {
    letter-spacing: .12em;
    color: var(--ccpl-teal);
}

.phone-mockup__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 16px;
    font-weight: 800;
    color: var(--ccpl-teal-dark);
    font-size: .95rem;
}

.phone-mockup__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.phone-mockup__player {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 24px 24px;
    text-align: center;
}

.phone-mockup__artwork {
    width: 148px;
    height: 148px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--ccpl-teal) 0%, var(--ccpl-teal-dark) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    margin-bottom: 22px;
    box-shadow: 0 16px 36px rgba(0, 102, 127, .28);
}

.phone-mockup__waves {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 42px;
}

.phone-mockup__waves span {
    display: block;
    width: 5px;
    background: rgba(255, 255, 255, .9);
    border-radius: 3px;
    animation: eq 1.2s ease-in-out infinite;
}

.phone-mockup__waves span:nth-child(2) { animation-delay: .1s; }
.phone-mockup__waves span:nth-child(3) { animation-delay: .2s; }
.phone-mockup__waves span:nth-child(4) { animation-delay: .3s; }
.phone-mockup__waves span:nth-child(5) { animation-delay: .4s; }

.phone-mockup__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ccpl-teal-dark);
}

.phone-mockup__live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ccpl-red);
    animation: pulse 1.8s ease-out infinite;
}

.phone-mockup__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ccpl-ink);
}

.phone-mockup__artist {
    margin: 0 0 18px;
    font-size: .82rem;
    color: var(--ccpl-ink-soft);
}

.phone-mockup__play {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ccpl-teal) 0%, var(--ccpl-teal-dark) 100%);
    color: #fff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 102, 127, .3);
    margin-bottom: 12px;
}

.phone-mockup__listeners {
    margin: 0;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ccpl-ink-soft);
}

.phone-mockup__tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 10px 8px 14px;
    background: var(--ccpl-white);
    border-top: 1px solid var(--ccpl-line);
    font-size: .58rem;
    font-weight: 700;
    text-align: center;
    color: var(--ccpl-ink-soft);
}

.phone-mockup__tab--active {
    color: var(--ccpl-teal-dark);
}

.phone-mockup__glow {
    position: absolute;
    inset: 20% -10% -8%;
    background: radial-gradient(ellipse at center, rgba(32, 189, 195, .35), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ─── WhatsApp section ─────────────────────────────────────── */

.whatsapp__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.whatsapp__copy h2 { color: #fff; }
.whatsapp__copy p, .whatsapp__list { color: rgba(255, 255, 255, .9); }
.whatsapp__list { list-style: none; padding: 0; margin: 24px 0 0; }
.whatsapp__list li {
    padding: 12px 0 12px 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    position: relative;
}
.whatsapp__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ccpl-orange);
    font-weight: 800;
}

.whatsapp__bubble {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bubble {
    background: #fff;
    color: var(--ccpl-ink);
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 85%;
    font-size: .95rem;
    box-shadow: var(--shadow);
}
.bubble--out {
    align-self: flex-end;
    background: var(--ccpl-orange);
    color: #fff;
}
.bubble__name {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
    opacity: .8;
}

/* ─── Vision ───────────────────────────────────────────────── */

.vision__inner { max-width: 760px; margin: 0 auto; }
.vision__inner p { color: var(--ccpl-ink-soft); font-size: 1.1rem; }
.vision__inner .btn { margin-top: 24px; }

/* ─── Footer ───────────────────────────────────────────────── */

.site-footer {
    background: var(--ccpl-ink);
    color: rgba(255, 255, 255, .8);
    padding: 36px 0;
    font-size: .9rem;
}
.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}
.site-footer strong { display: block; color: #fff; font-size: 1.05rem; }
.site-footer__small { color: rgba(255, 255, 255, .55); text-align: right; }
.site-footer__small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__small a:hover { color: rgba(255, 255, 255, .85); }
.site-footer code {
    background: rgba(255, 255, 255, .08);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .82em;
}

/* ─── Responsive ───────────────────────────────────────────── */

@media (max-width: 960px) {
    .site-header__nav { display: none; }
    .app-banner__inner { grid-template-columns: 1fr; gap: 40px; }
    .app-banner__visual { order: -1; }
    .whatsapp__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .site-header__inner { flex-wrap: wrap; gap: 12px; }
    .site-header__brand { order: 1; }
    .site-header__player { order: 2; margin-left: auto; }
    .site-header__title strong { font-size: 1.05rem; }
    .site-header__eyebrow { display: none; }
    .player__meta { display: none; }
    .site-header__player { padding: 6px; }

    .hero { padding: 60px 0 90px; }
    .hero__waves { height: 56px; gap: 4px; }
    .hero__waves span { width: 8px; }
    .section { padding: 60px 0; }
    .site-footer__small { text-align: left; }
}
