*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sand: #F5F0E8;
    --sand-dark: #EAE3D2;
    --ink: #1C1A17;
    --ink-soft: #4A4640;
    --ink-muted: #8A8078;
    --sage: #4A7A55;
    --sage-light: #E8F0E9;
    --gold: #B8985A;
    --gold-light: #F7F0E0;
    --white: #FDFCF9;
    --error: #A32D2D;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', sans-serif;
}

.contenu {
    font-family: var(--sans);
    background: var(--sand);
    color: var(--ink);
    /*min-height: 100vh;*/
    -webkit-font-smoothing: antialiased;
}

/* État par défaut */
/*.formule-check {*/
/*    border: 2px solid transparent;*/
/*    border-radius: 14px;*/
/*    padding: 1.25rem;*/
/*    cursor: pointer;*/
/*    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;*/
/*}*/

/* État sélectionné */
.gchoice:has(input[type="radio"]:checked) .formule-check {
    /*border-color: #b08d57;*/
    /*background: #faf6f0;*/
    height: 20px;
    width: 20px;
    border-color: var(--ink);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 8px 24px -10px rgba(176, 141, 87, .55);
    border:8px solid;
}

/* Accessibilité clavier */
.gchoice:has(input[type="radio"]:focus-visible) .formule-check {
    outline: 2px solid #b08d57;
    outline-offset: 3px;
}
/* HEADER */
.gform_heading { display:none;}
.header {
    background: var(--ink);
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.04em;
}
.header-sub {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

/* HERO */
.hero {
    background: var(--ink);
    padding: 48px 48px 64px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* BOUSSOLE MINI */
.boussole-strip {
    background: var(--gold-light);
    border-bottom: 1px solid var(--sand-dark);
    padding: 20px 48px;
    display: flex;
    gap: 0;
    justify-content: center;
}
.boussole-item {
    flex: 1;
    max-width: 200px;
    text-align: center;
    padding: 0 16px;
    border-right: 1px solid var(--sand-dark);
}
.boussole-item:last-child { border-right: none; }
.boussole-direction {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}
.boussole-axe {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 2px;
}
.boussole-nom {
    font-size: 11px;
    color: var(--ink-muted);
}

/* MAIN */
.main {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* FORMULES */
.formules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 48px;
}
.formule-card, .gchoice_4_8_0, .gchoice_4_8_1 {
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
    position: relative;
}
.formule-card:hover, .gchoice_4_8_0:hover, .gchoice_4_8_1:hover { border-color: var(--ink-muted); }
.formule-card.selected { border-color: var(--ink); background: var(--white); }
.gchoice_4_8_0.selected { border-color: var(--ink); background: var(--white); }
.gchoice_4_8_1.selected { border-color: var(--ink); background: var(--white); }
.formule-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.gchoice_4_8_0 input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.gchoice_4_8_1 input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.formule-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.badge-decouverte { background: var(--sand-dark); color: var(--ink-soft); }
.badge-programme { background: var(--sage-light); color: var(--sage); }
.formule-name {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 4px;
}
.formule-price {
    font-size: 28px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
}
.formule-price span { font-size: 14px; font-weight: 300; color: var(--ink-muted); }
.formule-desc {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-top: 8px;
}
.formule-check {
    position: absolute;
    top: 16px; right: 16px;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--sand-dark);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.formule-card.selected .formule-check,
.gchoice_4_8_0.selected .formule-check,
.gchoice_4_8_1.selected .formule-check
{
    background: var(--ink);
    border-color: var(--ink);
}
.formule-check::after {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0;
    transition: opacity 0.2s;
}
.formule-card.selected .formule-check::after,
.gchoice_4_8_0.selected .formule-check::after,
.gchoice_4_8_1.selected .formule-check::after
{ opacity: 1; }

/* FORM */
.form-section-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sand-dark);
}

.field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.field-group.full { grid-template-columns: 1fr; }

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
}
.field label .req { color: var(--gold); margin-left: 2px; }
.field input, .field textarea, .field select {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: 2px;
    padding: 12px 16px;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--ink);
}
.field input.error, .field textarea.error, .field select.error {
    border-color: var(--error);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-error {
    font-size: 12px;
    color: var(--error);
    display: none;
}
.field-error.visible { display: block; }

/* SECTION SÉPARATEUR */
.section-sep {
    margin: 36px 0 28px;
}

/* CHECKBOX */
.checkbox-field {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 8px;
}
.checkbox-field input[type="checkbox"] {
    margin-top: 2px;
    width: 18px; height: 18px;
    accent-color: var(--ink);
    flex-shrink: 0;
    cursor: pointer;
}
.checkbox-field label {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
    cursor: pointer;
}

/* SUBMIT */
#input_4_18 { background: var(--white);}
.gform_footer { margin-top: 36px; }
.gform_button {
    width: 100%;
    background: var(--ink);
    color: var(--white);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    padding: 18px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.2s;
}
.gform_button:hover { background: var(--sage); }
.gform_button:disabled { opacity: 0.5; cursor: not-allowed; }
.submit-note {
    text-align: center;
    font-size: 13px;
    color: var(--ink-muted);
    margin-top: 12px;
    line-height: 1.6;
}

/* SUCCÈS */
.success-screen {
    /*display: none;*/
    text-align: center;
    /*padding: 64px 24px;*/
}
.success-screen.visible { display: block; }
.success-icon {
    width: 64px; height: 64px;
    background: var(--sage-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
}
.success-title {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 16px;
}
.success-title em { font-style: italic; color: var(--gold); }
.success-body {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink-soft);
    line-height: 1.75;
    max-width: 440px;
    margin: 0 auto 32px;
}
.success-card {
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: 4px;
    padding: 24px 32px;
    max-width: 400px;
    margin: 0 auto 32px;
    text-align: left;
}
.success-card-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.success-card-text {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
}
.success-contact {
    font-size: 14px;
    color: var(--ink-muted);
}

.badge-form {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.badge-decouverte-sm { background: rgba(184,152,90,0.2); color: var(--gold); }
.badge-programme-sm { background: rgba(74,122,85,0.2); color: #7ABF8A; }
.admin-empty {
    text-align: center;
    padding: 32px;
    color: rgba(255,255,255,0.3);
    font-style: italic;
}
.admin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.btn-admin {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 2px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.btn-admin:hover { opacity: 0.8; }
.btn-export { background: var(--gold); color: var(--ink); }
.btn-clear { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.admin-count {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .header { padding: 20px 24px; }
    .hero { padding: 36px 24px 48px; }
    .boussole-strip { padding: 16px 24px; gap: 8px; }
    .boussole-item { padding: 0 8px; }
    .formules { grid-template-columns: 1fr; }
    .field-group { grid-template-columns: 1fr; }
    .admin-section { padding: 32px 24px; }
}
