/* TC Chateauneuf-sur-Loire - Feuille de styles principale */
:root {
    --bleu: #4c69ad;
    --bleu-fonce: #0c4a7f;
    --bleu-nuit: #082f52;
    --jaune: #ffe600;
    --anthracite: #343434;
    --blanc: #fff;
    --gris: #f3f6fb;
    --texte: #172033;
    --ombre: 0 14px 36px rgba(8, 47, 82, .12);
    --rayon: 20px;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--texte);
    background: #fff;
    line-height: 1.65
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit
}

.container {
    width: min(calc(100% - 32px), var(--max));
    margin: auto
}

.skip-link {
    position: absolute;
    left: -9999px
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    background: #fff;
    padding: 10px;
    z-index: 9999
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 18px rgba(8, 47, 82, .09);
    backdrop-filter: blur(12px)
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 28px
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    min-width: max-content
}

.brand img {
    width: 66px;
    height: 66px;
    object-fit: contain
}

.brand strong {
    display: block;
    color: var(--bleu-fonce);
    line-height: 1.1;
    font-size: clamp(.92rem, 1.7vw, 1.15rem);
    letter-spacing: .02em
}

.brand small {
    color: #5b6880
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: var(--bleu-fonce);
    color: #fff;
    padding: 12px 14px;
    font-weight: 700
}

.main-nav {
    margin-left: auto
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0
}

.main-nav a,
.drop-button {
    display: block;
    padding: 12px 13px;
    border: 0;
    background: none;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    color: var(--bleu-nuit);
    border-radius: 10px;
    cursor: pointer
}

.main-nav a:hover,
.main-nav a:focus-visible,
.drop-button:hover,
.drop-button:focus-visible,
.main-nav a[aria-current=page] {
    background: var(--gris);
    color: var(--bleu)
}

.dropdown {
    position: relative
}

.main-nav .dropdown>.dropdown-menu {
    display: none !important;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 210px;
    background: #fff;
    padding: 8px !important;
    border-radius: 12px;
    box-shadow: var(--ombre);
    flex-direction: column !important;
    align-items: stretch !important
}

.main-nav .dropdown.open>.dropdown-menu {
    display: flex !important
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, var(--bleu-nuit), var(--bleu) 70%);
    color: #fff;
    padding: clamp(64px, 9vw, 118px) 0
}

.hero:before,
.hero:after {
    content: "";
    position: absolute;
    border: 24px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    width: 340px;
    height: 340px
}

.hero:before {
    right: -100px;
    top: -120px
}

.hero:after {
    right: 180px;
    bottom: -300px;
    border-color: rgba(255, 230, 0, .16)
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: 50px
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 900;
    color: var(--jaune)
}

h1 {
    font-size: clamp(2.35rem, 5.4vw, 4.8rem);
    line-height: 1.02;
    margin: .35em 0
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.24rem);
    max-width: 680px
}

.hero-logo {
    max-width: 330px;
    justify-self: end;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .2));
    background: #fff;
    border-radius: 50%;
    padding: 10px
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    border: 2px solid transparent
}

.btn-primary {
    background: var(--jaune);
    color: #172033
}

.btn-secondary {
    border-color: #fff;
    color: #fff
}

.btn:hover {
    transform: translateY(-2px)
}

section {
    padding: 76px 0
}

.section-alt {
    background: var(--gris)
}

.section-title {
    max-width: 720px;
    margin-bottom: 32px
}

.section-title h2{
    color: var(--bleu-nuit);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    margin: .2em 0
}

.page-head h1 {
    /* color: var(--bleu-nuit); */
    color: white;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    margin: .2em 0
}

.section-title p {
    color: #59667a
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.card {
    background: #fff;
    border-radius: var(--rayon);
    padding: 26px;
    box-shadow: var(--ombre);
    border-top: 5px solid var(--bleu)
}

.card h3 {
    color: var(--bleu-fonce);
    margin-top: 0
}

.card .icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--jaune);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 18px
}

.card a {
    color: var(--bleu-fonce);
    font-weight: 800
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    align-items: end
}

.media-placeholder {
    min-height: 320px;
    border-radius: var(--rayon);
    background: linear-gradient(145deg, var(--bleu), var(--bleu-nuit));
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
    padding: 28px
}

.media-placeholder:before {
    content: "";
    width: 160px;
    height: 160px;
    border: 18px solid var(--jaune);
    border-radius: 50%;
    position: absolute;
    opacity: .28
}

.media-placeholder span {
    position: relative;
    font-weight: 800
}

.content-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--rayon);
    box-shadow: var(--ombre)
}

.content-box li {
    margin-bottom: 6px;
}

.page-head {
    padding: 64px 0;
    /* background: linear-gradient(120deg, #eef3ff, #fff7b8) */
    background: linear-gradient(125deg, var(--bleu-nuit), var(--bleu) 70%)
}

.page-head p {
    max-width: 760px;
    color: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.gallery .media-placeholder {
    min-height: 230px
}

.timeline {
    display: grid;
    gap: 16px
}

.timeline article {
    border-left: 5px solid var(--jaune);
    padding: 8px 24px;
    background: #fff;
    border-radius: 0 16px 16px 0;
    box-shadow: var(--ombre)
}

.notice {
    border-radius: 16px;
    background: #fff8bf;
    border-left: 6px solid var(--jaune);
    padding: 20px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.field {
    display: grid;
    gap: 7px
}

.field-full {
    grid-column: 1/-1
}

label {
    font-weight: 800
}

input,
select,
textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #b9c4d5;
    border-radius: 10px;
    font: inherit
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(76, 105, 173, .28);
    border-color: var(--bleu)
}

button.btn {
    cursor: pointer
}

.form-status {
    font-weight: 800;
    color: var(--bleu-fonce)
}

.site-footer {
    background: var(--bleu-nuit);
    color: #fff;
    padding-top: 44px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-bottom: 32px
}

.footer-grid h2 {
    font-size: 1.15rem
}

.sponsor-strip {
    background: #004280;
    padding: 14px 0
}

.sponsor-strip img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin: auto
}

.legal {
    padding: 18px 0;
    font-size: .87rem;
    color: #cfe1f0;
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.editable-hint {
    font-size: .82rem;
    color: #718096;
    border: 1px dashed #aab4c3;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block
}

@media(max-width:900px) {
    .menu-toggle {
        display: block
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 10px 0
    }

    .main-nav {
        display: none;
        width: 100%;
        margin: 0
    }

    .main-nav.open {
        display: block
    }

    .main-nav ul {
        align-items: stretch;
        flex-direction: column
    }

    .main-nav a,
    .drop-button {
        width: 100%;
        text-align: left
    }

    .main-nav .dropdown>.dropdown-menu {
        position: static;
        box-shadow: none;
        margin-left: 15px !important
    }

    .hero-grid,
    .feature {
        grid-template-columns: 1fr
    }

    .hero-logo {
        justify-self: start;
        max-width: 210px
    }

    .cards,
    .gallery {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:620px) {
    .brand small {
        display: none
    }

    .brand img {
        width: 52px;
        height: 52px
    }

    .cards,
    .gallery,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .field-full {
        grid-column: auto
    }

    .hero {
        padding: 55px 0
    }

    .hero-logo {
        display: none
    }

    section {
        padding: 54px 0
    }

    .legal {
        flex-direction: column
    }
}