:root {
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    color: #233044;
    background: #fbfaf7;
    font-synthesis: none
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0
}

a {
    color: inherit
}

.header {
    max-width: 1160px;
    margin: auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center
}

.brand {
    font-weight: 850;
    text-decoration: none;
    color: #20466b
}

.header nav {
    display: flex;
    gap: 22px;
    font-size: 14px
}

.header nav a {
    text-decoration: none
}

.header nav a:hover {
    text-decoration: underline
}

.hero {
    background: #e7f2ff;
    padding: 65px max(24px, calc((100vw - 1112px)/2));
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 45px;
    align-items: center
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    margin: 15px 0
}

.hero p {
    font-size: 1.13rem;
    line-height: 1.65;
    color: #435a72
}

.hero .campaign-slogan {
    display: block;
    margin: 16px 0 16px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: clamp(2.65rem, 5.5vw, 4.8rem);
    font-weight: 900;
    color: #20466b;
    line-height: 1.06;
    letter-spacing: -.045em;
    text-wrap: balance
}

.hero .candidate-name {
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 850;
    line-height: 1.25;
    color: #187a84
}

.hero .hero-subtitle {
    margin: 0 0 16px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 650;
    line-height: 1.4;
    color: #435a72;
    letter-spacing: -.01em
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 800;
    color: #187a84
}

.button {
    display: inline-block;
    background: #2365ad;
    color: white;
    border: 0;
    border-radius: 13px;
    padding: 13px 20px;
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
    font-size: 1rem
}

.button:hover {
    background: #184d87
}

.image-slot {
    background: #d1e7e9;
    overflow: hidden
}

.hero-image {
  position: relative;
  border-radius: 28px;
  min-height: 330px;
  aspect-ratio: 4/3;

  /* Relief et profondeur */
  border: 6px solid #ffffff;
  box-shadow:
    0 12px 24px rgba(32, 70, 107, 0.12),
    0 30px 65px rgba(32, 70, 107, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.5);

  transform: rotate(2deg) translateY(-5px);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;

  isolation: isolate;
}

.hero-image:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.025);

  box-shadow:
    0 20px 35px rgba(32, 70, 107, 0.15),
    0 45px 85px rgba(32, 70, 107, 0.28);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 45%,
    rgba(15, 45, 85, 0.08) 100%
  );
}

.image-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.placeholder {
    height: 100%;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 4.5rem;
    gap: 10px
}

.info-pub{
    font-size: smaller;
}

.placeholder[hidden] {
    display: none
}

.placeholder small {
    font-size: 13px;
    color: #426270
}

.section {
    max-width: 1160px;
    margin: auto;
    padding: 78px 24px
}

.section-head {
    max-width: 700px;
    margin-bottom: 30px
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.035em;
    margin: 10px 0
}

.section-head p {
    line-height: 1.65;
    color: #576477
}

/* Carrousel horizontal : 3 cartes desktop, 2 tablette, 1+aperçu mobile */
.carousel {
    --gap: 22px;
    --visible: 3;
    min-width: 0
}

.carousel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px
}

.carousel-count {
    font-size: .9rem;
    font-weight: 750;
    color: #50637b;
    margin: 0
}

.carousel-controls {
    display: flex;
    gap: 9px
}

.carousel-arrow {
    width: 43px;
    height: 43px;
    border: 1px solid #d6e0e9;
    border-radius: 50%;
    background: #fff;
    color: #20466b;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px #172a4210
}

.carousel-arrow:hover:not(:disabled) {
    background: #e7f2ff
}

.carousel-arrow:disabled {
    opacity: .38;
    cursor: not-allowed
}

.cards {
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #aac2d7 transparent;
    padding: 4px 2px 18px
}

.card {
    flex: 0 0 calc((100% - (var(--visible) - 1)*var(--gap))/var(--visible));
    min-width: 0;
    scroll-snap-align: start;
    background: white;
    border: 1px solid #e4e8ed;
    border-radius: 19px;
    overflow: hidden;
    box-shadow: 0 6px 24px #172a4210
}

.card-image {
    height: 205px
}

.card-body {
    padding: 23px
}

.card-body h3 {
    font-size: 1.35rem;
    line-height: 1.3
}

.card-body p {
    line-height: 1.7;
    color: #536176
}

.tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 30px;
    background: #fff1cf;
    color: #74500c;
    font-size: 12px;
    font-weight: 800
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 0 0
}

.carousel-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: #c6d6e4;
    cursor: pointer;
    padding: 0
}

.carousel-dot[aria-current="true"] {
    background: #2365ad;
    transform: scale(1.25)
}

.ideas {
    max-width: none;
    background: #f0f5f8;
    padding-left: max(24px, calc((100vw - 1112px)/2));
    padding-right: max(24px, calc((100vw - 1112px)/2))
}

.ideas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.panel {
    padding: 25px;
    background: white;
    border: 1px solid #e4e8ed;
    border-radius: 19px;
    overflow: hidden;
    box-shadow: 0 6px 24px #172a4210
}

.panel h3 {
    margin-top: 0
}

.panel label {
    display: block;
    margin: 15px 0 7px;
    font-weight: 650;
    font-size: 14px
}

.panel input,
.panel textarea {
    width: 100%;
    border: 1px solid #cbd5df;
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    background: white
}

.panel input:focus,
.panel textarea:focus {
    outline: 3px solid #aad5f5
}

.panel button {
    margin-top: 16px
}

.messages {
    display: grid;
    gap: 12px
}

.message {
    border: 1px solid #e2e9ef;
    background: #fbfdff;
    border-radius: 12px;
    padding: 14px
}

.message strong {
    color: #205d8b
}

.message p {
    margin: 8px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.muted,
.status {
    color: #5d6a78
}

.trap {
    position: absolute;
    left: -9999px
}

footer {
    background: #21364c;
    color: #e3ebf4;
    padding: 32px 24px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6
}

.footer-slogan {
    font-weight: 850;
    font-size: 1.15rem;
    color: #ffdf8b
}

@media(max-width:1000px) {
    .carousel {
        --visible: 2
    }
}

@media(max-width:760px) {
    .header {
        flex-wrap: wrap
    }

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

    .hero {
        padding: 45px 24px
    }

    .hero-image {
        min-height: 220px
    }

    .section {
        padding: 55px 22px
    }

    .ideas {
        padding: 55px 22px
    }

    .carousel {
        --visible: 1.13;
        --gap: 14px
    }

    .card-image {
        height: 195px
    }

    .card-body {
        padding: 19px
    }
}

@media(max-width:390px) {
    .carousel {
        --visible: 1.07
    }

    .header nav {
        gap: 14px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .cards {
        scroll-behavior: auto
    }
}

@media(max-width:760px) {
    .hero .campaign-slogan {
        font-size: clamp(2.4rem, 9vw, 3.7rem)
    }

    .hero .candidate-name {
        font-size: 1.45rem
    }
}