/* ─────────────────────────────────────────────────────────────
   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); }
.player__icon--pause { display: none; }
[data-state="playing"] .player__icon--play  { display: none; }
[data-state="playing"] .player__icon--pause { display: inline; }

.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; }

@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 (équaliseur) */
.hero__waves {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 70px;
    opacity: .8;
    pointer-events: none;
}
.hero__waves span {
    display: block;
    width: 6px;
    background: linear-gradient(180deg, var(--ccpl-teal-light), var(--ccpl-teal));
    border-radius: 3px 3px 0 0;
    animation: eq 1.4s ease-in-out infinite;
}
.hero__waves span:nth-child(odd)   { animation-duration: 1.1s; }
.hero__waves span:nth-child(3n)    { animation-duration: 1.6s; }
.hero__waves span:nth-child(5n)    { animation-duration: 0.9s; }
.hero__waves span:nth-child(7n)    { animation-duration: 1.3s; }

@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; }

/* ─── 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 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; }
    .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; }
    .section { padding: 60px 0; }
    .site-footer__small { text-align: left; }
}
