@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root{
    --red:#a80d18;
    --red-dark:#780912;
    --gold:#c79b42;
    --cream:#f8f0f1;
    --cream2:#fff8f7;
    --ink:#2b2223;
    --muted:#75686a;
    --line:#ead9db;
    --shadow:0 18px 45px rgba(90,20,25,.12)
}

*{
    box-sizing:border-box
}

html{
    scroll-behavior:smooth
}

body{
    margin:0;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    background:var(--cream);
    color:var(--ink);
    font-family:Montserrat,Arial,sans-serif;
    line-height:1.55
}

.hero{
    flex:1;
}

a{
    color:inherit
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header{
    background:linear-gradient(105deg,#970a14,var(--red));
    color:#fff
}

.header-inner{
    max-width:1220px;
    margin:auto;
    min-height:92px;
    padding:15px 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px
}

.brand{
    display:flex;
    align-items:center;
    gap:13px;
    text-decoration:none;
    font-size:20px;
    font-weight:700;
    white-space:nowrap
}

/* LOGO EN COULEUR */
.brand img{
    width:86px;
    height:auto;
    display:block;
    filter:none !important;
    -webkit-filter:none !important;
    mix-blend-mode:normal !important;
}

.site-nav{
    display:flex;
    gap:26px;
    font-size:13px;
    font-weight:600
}

.site-nav a,
.site-nav span{
    text-decoration:none;
    opacity:.94
}

.site-nav a:hover{
    text-decoration:underline;
    text-underline-offset:5px
}


/* =========================================================
   HERO
   ========================================================= */

.hero{
    position:relative;
    overflow:hidden;
    background:var(--cream2);
    border-bottom:1px solid var(--line)
}

.hero-inner{
    max-width:1220px;
    margin:auto;
    padding:58px 28px 52px;
    text-align:center;
    position:relative;
    z-index:2
}

.eyebrow{
    font-size:12px;
    font-weight:800;
    letter-spacing:3px;
    color:var(--red);
    margin-bottom:12px
}

.hero h1{
    margin:0;
    color:var(--red-dark);
    font-size:clamp(42px,7vw,82px);
    line-height:.98;
    letter-spacing:-3px;
    font-weight:800
}

.hero-date{
    margin-top:18px;
    color:var(--red);
    font-size:16px;
    font-weight:700;
    letter-spacing:4px
}

.hero p{
    margin:16px 0 0;
    color:var(--muted);
    font-size:15px
}

.hero-decoration{
    position:absolute;
    width:150px;
    height:150px;
    border:3px solid rgba(199,155,66,.32);
    border-radius:50%;
    top:35px
}

.hero-decoration-left{
    left:-65px
}

.hero-decoration-right{
    right:-65px
}

.hero-decoration:after{
    content:"";
    position:absolute;
    inset:20px;
    border:1px solid rgba(168,13,24,.22);
    border-radius:50%
}


/* =========================================================
   PAGE
   ========================================================= */

.page{
    max-width:1100px;
    margin:auto;
    padding:38px 20px 65px
}

.form-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-intro{
    padding:31px 34px 25px;
    border-bottom:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    gap:35px;
    align-items:end
}

.kicker{
    font-size:11px;
    font-weight:800;
    letter-spacing:2px;
    color:var(--red)
}

.form-intro h2{
    margin:6px 0 7px;
    font-size:28px;
    color:var(--ink);
    letter-spacing:-.7px
}

.form-intro p{
    max-width:680px;
    margin:0;
    color:var(--muted);
    font-size:13px
}

.progress-wrap{
    width:210px;
    flex:none
}

.progress-label{
    display:flex;
    justify-content:space-between;
    font-size:11px;
    color:var(--muted);
    margin-bottom:8px
}

.progress-label strong{
    color:var(--red)
}

.progress{
    height:6px;
    background:#f0e3e4;
    overflow:hidden
}

.progress span{
    display:block;
    height:100%;
    background:var(--red);
    width:10%;
    transition:width .25s ease
}


/* =========================================================
   FORMULAIRE
   ========================================================= */

form{
    padding:34px
}

.step{
    display:none;
    animation:fade .18s ease
}

.step.active{
    display:block
}

@keyframes fade{
    from{
        opacity:.3;
        transform:translateY(5px)
    }
    to{
        opacity:1;
        transform:none
    }
}

.step-title{
    display:flex;
    gap:17px;
    align-items:flex-start;
    margin-bottom:28px
}

.step-title>span{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    background:var(--red);
    color:#fff;
    font-weight:800;
    font-size:14px
}

.step-title small{
    display:block;
    color:var(--red);
    font-size:10px;
    font-weight:800;
    letter-spacing:2px
}

.step-title h3{
    margin:0;
    color:var(--ink);
    font-size:24px;
    letter-spacing:-.5px
}

.step-intro{
    margin:-12px 0 25px;
    color:var(--muted);
    font-size:13px
}

.grid{
    display:grid;
    gap:18px
}

.two-col{
    grid-template-columns:repeat(2,minmax(0,1fr))
}

.field{
    display:block
}

.field>span{
    display:block;
    font-size:13px;
    font-weight:700;
    color:#554749;
    margin-bottom:7px
}

input,
select,
textarea{
    width:100%;
    border:1px solid #ddccce;
    background:#fff;
    border-radius:6px;
    padding:12px 13px;
    font:inherit;
    font-size:13px;
    color:var(--ink);
    outline:none;
    transition:border-color .15s,box-shadow .15s
}

input:focus,
select:focus,
textarea:focus{
    border-color:var(--red);
    box-shadow:0 0 0 3px rgba(168,13,24,.08)
}

textarea{
    resize:vertical
}

.choice-grid{
    display:grid;
    gap:12px
}

.choice-grid.two{
    grid-template-columns:repeat(2,minmax(0,1fr))
}

.choice{
    position:relative
}

.choice input{
    position:absolute;
    opacity:0;
    pointer-events:none
}

.choice span{
    display:block;
    border:1px solid var(--line);
    padding:13px 15px;
    background:#fff;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    text-align:center
}

.choice input:checked+span{
    border-color:var(--red);
    background:#fff1f2;
    color:var(--red-dark);
    box-shadow:inset 0 0 0 1px var(--red)
}

.notice,
.final-note{
    margin-top:24px;
    padding:16px 18px;
    background:#fbf5ed;
    border-left:4px solid var(--gold);
    font-size:12px;
    color:#66595b
}

.notice strong,
.final-note strong{
    color:var(--red-dark)
}


/* =========================================================
   SOUS-CARTES
   ========================================================= */

.subcard{
    border:1px solid var(--line);
    padding:21px 22px;
    margin-top:18px;
    background:#fffdfd
}

.subcard h4{
    margin:0;
    color:var(--red-dark);
    font-size:16px
}

.subcard p{
    font-size:12px;
    color:var(--muted);
    margin:5px 0 14px
}

.conditional{
    margin-top:18px;
    padding-top:18px;
    border-top:1px dashed var(--line)
}

.hidden{
    display:none!important
}


/* =========================================================
   PLAN DE TABLE
   ========================================================= */

.chair-layout{
    margin:15px auto 5px;
    max-width:720px;
    padding:28px 20px 25px;
    background:#fcf5f5;
    border:1px solid var(--line);
    position:relative
}

.chair-stage{
    width:220px;
    margin:0 auto 18px;
    background:var(--red);
    color:#fff;
    text-align:center;
    padding:9px 12px;
    font-size:11px;
    font-weight:800;
    letter-spacing:2px
}

.chair-rows{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px
}

.chair-row{
    height:39px;
    border:2px solid rgba(168,13,24,.55);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.72)
}

.chair-row label{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--red-dark);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:1px
}

.chair-row input{
    width:58px;
    padding:6px 5px;
    text-align:center;
    font-weight:700;
    border:1px solid var(--line);
    background:#fff
}

.row-1{
    width:32%
}

.row-2{
    width:45%
}

.row-3{
    width:58%
}

.row-4{
    width:71%
}

.row-5{
    width:84%
}

.chef{
    margin:18px auto 0;
    width:92px;
    height:35px;
    display:grid;
    place-items:center;
    background:#fff;
    border:1px solid var(--red);
    color:var(--red);
    font-size:10px;
    font-weight:800
}

.chair-total{
    text-align:center;
    margin-top:18px;
    color:var(--muted);
    font-size:12px
}

.chair-total strong{
    color:var(--red-dark);
    font-size:16px
}


/* =========================================================
   BOUTONS
   ========================================================= */

.form-actions{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:36px;
    padding-top:25px;
    border-top:1px solid var(--line)
}

.btn{
    border:0;
    padding:13px 21px;
    font:inherit;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    text-transform:uppercase;
    letter-spacing:.4px
}

.btn.primary{
    background:var(--red);
    color:#fff
}

.btn.primary:hover{
    background:var(--red-dark)
}

.btn.secondary{
    background:#f4e9ea;
    color:var(--red-dark)
}

.btn.secondary:hover{
    background:#eadbdd
}

.btn:disabled{
    opacity:.4;
    cursor:not-allowed
}

.form-message{
    margin:13px 0 0;
    text-align:right;
    color:var(--red);
    font-size:12px;
    min-height:18px
}

/* =========================================================
   CHAMPS EN ERREUR
   ========================================================= */

.field-error input,
.field-error select,
.field-error textarea {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(168, 13, 24, 0.08);
}

.field-error input:focus,
.field-error select:focus,
.field-error textarea:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(168, 13, 24, 0.12);
}

.hp{
    position:absolute;
    left:-10000px!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer{
    width:100%;
    max-width:none;
    margin:0;
    background:linear-gradient(105deg,#970a14,var(--red));
    color:#fff;
  	text-align: center;
    display:flex;
    justify-content: center;
    gap:20px;
    padding:24px max(20px,calc((100% - 1100px)/2));
    font-size:11px
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:800px){

    .header-inner{
        padding:13px 18px
    }

    .site-nav{
        display:none
    }

    .hero-inner{
        padding:45px 20px 40px
    }

    .hero h1{
        font-size:47px;
        letter-spacing:-2px
    }

    .hero-date{
        font-size:12px;
        letter-spacing:2px
    }

    .form-intro{
        display:block;
        padding:25px 22px
    }

    .progress-wrap{
        width:100%;
        margin-top:22px
    }

    form{
        padding:23px 20px
    }

    .two-col,
    .choice-grid.two{
        grid-template-columns:1fr
    }

    .step-title h3{
        font-size:20px
    }

    .step-title>span{
        width:40px;
        height:40px
    }

    .chair-row{
        height:36px
    }

    .row-1{
        width:45%
    }

    .row-2{
        width:59%
    }

    .row-3{
        width:73%
    }

    .row-4{
        width:87%
    }

    .row-5{
        width:94%
    }

    .site-footer{
        display:block
    }

    .site-footer div+div{
        margin-top:7px
    }
}

/* =========================================================
   Message affiché lorsque "Par poste" est sélectionné
   ========================================================= */

.notice-poste{
    display:none;
    margin-top:12px;
    padding:12px 15px;
    background:#fbf5ed;
    border-left:4px solid var(--gold);
    color:#66595b;
    font-size:12px;
    line-height:1.5;
}

.notice-poste.visible{
    display:block;
}