/* Thème /jeteste/ — motif « anneau RF » (couleurs métier du logo). Surcharge style.css. */
:root {
    --green-900: #004A31;
    --green-700: #006E49;
    --green-600: #00804F;
    --green-400: #7EBB4C;
    --green-100: #DBECCD;
    --green-50: #F1F7EC;

    --cat-fiscal: #0372B2;
    --cat-social: #E6184A;
    --cat-paye: #EC6D1A;
    --cat-affaires: #00AC95;
    --cat-compta: #F9CC00;
    --cat-patrimoine: #C35EA0;

    --text: #13241C;
    --text-muted: #46564E;
    --surface: #FFFFFF;
    --border: #DCE5DE;
    --danger: #C81E1E;
    --ring-focus: 0 0 0 3px rgba(0, 110, 73, .30);

    --font-display: 'Poppins', 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(0, 74, 49, .06), 0 2px 8px rgba(0, 74, 49, .05);
    --shadow-md: 0 8px 24px rgba(0, 74, 49, .10);
    --shadow-lg: 0 24px 48px -12px rgba(0, 74, 49, .25);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --rf-ring: conic-gradient(from -30deg,
        var(--cat-affaires) 0 60deg, var(--cat-compta) 60deg 120deg,
        var(--cat-fiscal) 120deg 180deg, var(--cat-social) 180deg 240deg,
        var(--cat-paye) 240deg 300deg, var(--cat-patrimoine) 300deg 360deg);
    --rf-stripe: linear-gradient(90deg,
        var(--cat-fiscal), var(--cat-social), var(--cat-paye),
        var(--cat-affaires), var(--cat-compta), var(--cat-patrimoine));
}

/* ---------- Base ---------- */
body {
    background: var(--green-50);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body .container {
    background: transparent;
}
body h1,
body h2.titre-section {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--green-700);
    margin: 0 0 16px;
}
body h1 span,
body h2.titre-section span {
    color: var(--text);
    font-weight: 500;
}
body p {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0 0 24px;
}
body .bold {
    font-weight: 700;
    color: var(--text);
}
body a:focus-visible,
body button:focus-visible,
body input:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
}

/* ---------- En-tête : liseré multicolore + contacts en pastilles ---------- */
body .header {
    position: relative;
    background: var(--surface);
    padding: 28px 0 4px;
    margin-bottom: 0;
    box-shadow: var(--shadow-sm);
}
body .header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--rf-stripe);
}
body .header .accroche {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-muted);
    margin-top: 12px;
}
body .header .separation {
    height: 1px;
    margin: 16px auto;
    background: var(--border);
}
body .header a {
    display: block;
    border-radius: var(--radius-md);
}
body .header .blocGreen {
    background-color: var(--green-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin: 8px 0 20px;
    color: var(--green-700);
    transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
body .header .blocGreen:hover {
    background-color: var(--green-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
body .header .blocGreen .email,
body .header .blocGreen .phone {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}

/* ---------- Hero : anneau RF décoratif derrière le formulaire ---------- */
body section.centrale {
    position: relative;
    overflow: hidden;
    padding-top: 56px;
    padding-bottom: 48px;
}
body section.centrale:before,
body section.centrale:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--rf-ring);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 34px), #000 calc(100% - 33px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 34px), #000 calc(100% - 33px));
    pointer-events: none;
    z-index: 0;
}
body section.centrale:before {
    width: 560px;
    height: 560px;
    top: -120px;
    right: -170px;
    opacity: .16;
    animation: rf-spin 90s linear infinite;
}
body section.centrale:after {
    width: 180px;
    height: 180px;
    bottom: 40px;
    left: -70px;
    opacity: .12;
}
body section.centrale > div {
    z-index: 1;
}
body section .presentation {
    margin-bottom: 24px;
    animation: rf-rise .6s var(--ease) both;
}
body section .presentation h1,
body section .presentation h2.titre-section {
    font-size: 44px;
    margin-bottom: 20px;
}
body section .presentation h1:after,
body section .presentation h2.titre-section:after {
    content: '';
    display: block;
    width: 72px;
    height: 6px;
    margin-top: 20px;
    border-radius: 6px;
    background: var(--rf-stripe);
}

/* Les 4 atouts : tuiles */
body section .presentation .margin-top-30 {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}
body section .presentation .margin-top-30:before,
body section .presentation .margin-top-30:after {
    display: none;
}
body section .lesPlus {
    display: flex;
    flex-direction: column;
    padding: 0 8px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}
body section .lesPlus > div,
body section .lesPlus img {
    position: relative;
}
body section .lesPlus {
    animation: rf-rise .6s var(--ease) both;
}
body section .lesPlus:nth-child(2) { animation-delay: .08s; }
body section .lesPlus:nth-child(3) { animation-delay: .16s; }
body section .lesPlus:nth-child(4) { animation-delay: .24s; }
body section .lesPlus img {
    width: 56px;
    margin: 20px auto 12px;
    display: block;
    transition: transform .6s var(--ease);
}
body section .lesPlus:hover img {
    transform: rotate(60deg);
}
body section .lesPlus > div {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 52px 12px 16px;
    margin-top: -48px;
    min-height: 170px;
    flex: 1;
}
body section .lesPlus img {
    z-index: 1;
}

/* ---------- Formulaire : carte à bordure « anneau » ---------- */
body section .formulaire {
    position: relative;
    text-align: left;
    border: 3px solid transparent;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--rf-ring) border-box;
    box-shadow: var(--shadow-lg);
    padding: 40px 28px 28px;
    margin-top: 0;
    animation: rf-rise .7s .1s var(--ease) both;
}
body section .formulaire:before {
    content: 'Gratuit · Sans engagement';
    position: absolute;
    top: -15px;
    left: 28px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--green-700);
    color: #fff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    box-shadow: var(--shadow-md);
}
body section .formulaire h1,
body section .formulaire h2.titre-section {
    font-size: 30px;
    margin-bottom: 4px;
}
body section .formulaire h1 span,
body section .formulaire h2.titre-section span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0;
    margin-bottom: 4px;
}
body section .formulaire > p {
    font-size: 15px;
    margin-bottom: 16px;
}
body section .formulaire .meff {
    padding: 10px 0 0;
}
body section .formulaire .meff .champs {
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
body section .formulaire .meff input[type=text] {
    height: 48px;
    text-align: left;
    font-size: 16px;
    color: var(--text);
    background: var(--green-50);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0 14px;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
body section .formulaire .meff input[type=text]::placeholder {
    color: #6A7A71;
}
body section .formulaire .meff input[type=text]:hover {
    border-color: var(--green-100);
}
body section .formulaire .meff input[type=text]:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--green-700);
    box-shadow: var(--ring-focus);
}
body section .formulaire .meff.has-error input[type=text],
body section .formulaire .meff input.error {
    border-color: var(--danger);
    background: #FFF5F5;
}
body section .formulaire .form-error,
body section .formulaire .help-block {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}
/* Civilité en segmented control */
body section .formulaire .containerCivilite {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--green-50);
    border-radius: 999px;
    margin-bottom: 4px;
}
body section .formulaire .containerCivilite input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
body section .formulaire .meff .radioLabel {
    flex: 1;
    margin: 0;
    padding: 10px 12px;
    border-radius: 999px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
body section .formulaire .meff #female {
    margin-left: 0;
}
body section .formulaire .containerCivilite input[type=radio]:checked + .radioLabel {
    background: var(--surface);
    color: var(--green-700);
    box-shadow: var(--shadow-sm);
}
body section .formulaire .containerCivilite input[type=radio]:focus-visible + .radioLabel {
    box-shadow: var(--ring-focus);
}
/* Bouton */
body section .formulaire .meff button {
    position: relative;
    display: block;
    width: 100%;
    height: 54px;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .08em;
    cursor: pointer;
    box-shadow: 0 10px 20px -8px rgba(0, 74, 49, .55);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
body section .formulaire .meff button:after {
    content: ' →';
    display: inline-block;
    transition: transform .2s var(--ease);
}
body section .formulaire .meff button:hover {
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -10px rgba(0, 74, 49, .6);
}
body section .formulaire .meff button:hover:after {
    transform: translateX(4px);
}
body section .formulaire .meff button:active {
    transform: translateY(0);
}

/* ---------- Offres ---------- */
body section.produit {
    padding-top: 48px;
    padding-bottom: 24px;
}
body section.produit h1,
body section.produit h2.titre-section {
    text-align: center;
    font-size: 34px;
    max-width: 760px;
    margin: 0 auto 8px;
}
body section .domaine {
    --cat: var(--green-700);
    --cat-tint: var(--green-50);
    --cat-ink: var(--green-700);
    background: var(--surface);
    border: 0;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 28px 0 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    font-size: 15px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
body section .domaine:before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 22px solid var(--cat);
    opacity: .12;
    transition: transform .4s var(--ease), opacity .4s var(--ease);
}
body section .domaine:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
body section .domaine:hover:before {
    transform: scale(1.15);
    opacity: .2;
}
body section .domaine.compta     { --cat: var(--cat-compta);     --cat-tint: #FEF7D6; --cat-ink: #6B5100; }
body section .domaine.paye       { --cat: var(--cat-paye);       --cat-tint: #FDE9DC; --cat-ink: #9A3F07; }
body section .domaine.fiscal     { --cat: var(--cat-fiscal);     --cat-tint: #E1EFF8; --cat-ink: #02507E; }
body section .domaine.social     { --cat: var(--cat-social);     --cat-tint: #FCE4EA; --cat-ink: #A3102F; }
body section .domaine.affaires   { --cat: var(--cat-affaires);   --cat-tint: #DDF5F1; --cat-ink: #00614F; }
body section .domaine.patrimoine { --cat: var(--cat-patrimoine); --cat-tint: #F6E7F1; --cat-ink: #86306A; }

body section .categorie,
body section .categorie.compta,
body section .categorie.paye,
body section .categorie.fiscal,
body section .categorie.social,
body section .categorie.affaires,
body section .categorie.patrimoine {
    display: inline-block;
    top: 0;
    padding: 6px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background-color: var(--cat-tint);
    color: var(--cat-ink);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
}
body section .categorie:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--cat);
    vertical-align: 1px;
}
body section .domaine .activites {
    top: 0;
    text-align: left;
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    color: var(--text-muted);
}
body section .domaine .activites .bold {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}
body section .liste {
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 22px;
}
body section .domaine > .liste {
    padding-left: 0;
    margin-bottom: 16px;
}
body section .domaine > .liste:before {
    display: none;
}
body section .liste .bold {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}
body section .liste:before,
body section .liste.compta:before,
body section .liste.paye:before,
body section .liste.fiscal:before,
body section .liste.social:before,
body section .liste.affaires:before,
body section .liste.patrimoine:before {
    top: 8px;
    width: 10px;
    height: 10px;
    border: 3px solid var(--cat);
    border-radius: 50%;
}

/* ---------- Bandeau final ---------- */
body .cta {
    margin: 48px 0 0;
}
body .cta .container {
    position: relative;
    overflow: hidden;
    padding: 56px 32px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background:
        radial-gradient(120% 140% at 0% 0%, var(--green-600) 0%, var(--green-700) 45%, var(--green-900) 100%);
    text-align: center;
}
body .cta .container:after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -90px;
    bottom: -150px;
    border-radius: 50%;
    background: var(--rf-ring);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 26px), #000 calc(100% - 25px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 26px), #000 calc(100% - 25px));
    opacity: .45;
    pointer-events: none;
}
body .cta h1,
body .cta h1 span,
body .cta h2.titre-section,
body .cta h2.titre-section span {
    color: #fff;
}
body .cta h1 span,
body .cta h2.titre-section span {
    color: var(--green-100);
}
body .cta p {
    max-width: 760px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, .88);
}
body .cta p .bold {
    color: #fff;
}
body .cta .btn,
body .cta .btn:focus {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 16px 32px;
    margin: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--green-700);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: transform .2s var(--ease), background-color .2s var(--ease);
}
body .cta .btn:hover {
    background: var(--green-100);
    color: var(--green-900);
    transform: translateY(-2px);
}
body .cta .btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .6);
}

/* ---------- Pied de page & loader ---------- */
body .footer {
    background-color: var(--green-900);
}
body .footer .container {
    padding-top: 32px;
    padding-bottom: 32px;
}
body .contentLoader {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-weight: 600;
}

/* ---------- Animations ---------- */
@keyframes rf-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
@keyframes rf-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    body *,
    body *:before,
    body *:after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    body section .presentation h1,
body section .presentation h2.titre-section { font-size: 38px; }
}
@media (max-width: 991px) {
    body section.centrale:before { width: 420px; height: 420px; top: -80px; right: -160px; }
    body section .lesPlus > div { min-height: 0; }
}
@media (max-width: 767px) {
    body section.centrale { padding-top: 32px; }
    body section .presentation h1,
body section .presentation h2.titre-section { font-size: 30px; }
    body section.produit h1,
body .cta h1,
body section.produit h2.titre-section,
body .cta h2.titre-section { font-size: 26px; }
    body section .formulaire { padding: 36px 18px 22px; }
    body section .formulaire h1,
body section .formulaire h2.titre-section { font-size: 26px; }
    body section .domaine { padding: 22px; }
    body .cta .container { padding: 40px 20px; border-radius: 0; }
    body section .lesPlus { margin-top: 24px; }
}

/* ======================================================================
   Pages de confirmation / d'erreur (confirm.php, error.php, submit.php)
   ====================================================================== */
body.bgDark {
    background:
        radial-gradient(120% 90% at 0% 0%, var(--green-600) 0%, var(--green-700) 40%, var(--green-900) 100%) fixed;
}
section.bgVert {
    position: relative;
    overflow: hidden;
    background: transparent;
    padding: 64px 0;
}
section.bgVert:before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    top: -160px;
    right: -160px;
    border-radius: 50%;
    background: var(--rf-ring);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 34px), #000 calc(100% - 33px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 34px), #000 calc(100% - 33px));
    opacity: .35;
    pointer-events: none;
    animation: rf-spin 90s linear infinite;
}
body:not(.bgDark) section.bgVert:before {
    opacity: .16;
}
section.bgVert .container {
    position: relative;
    z-index: 1;
}
section.bgVert .bloc {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 32px 36px;
    border: 3px solid transparent;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--rf-ring) border-box;
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
    animation: rf-rise .6s var(--ease) both;
}
section.bgVert .bloc table {
    width: 100%;
}
section.bgVert .bloc td {
    font-size: 17px;
    text-align: center;
}
section.bgVert .lien,
section.bgVert .lien:focus {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    color: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 24px -10px rgba(0, 74, 49, .55);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
section.bgVert .lien:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 30px -12px rgba(0, 74, 49, .6);
}
body.bgDark .header {
    box-shadow: none;
}
@media (max-width: 767px) {
    section.bgVert { padding: 32px 0; }
    section.bgVert .bloc { padding: 32px 18px 24px; font-size: 16px; }
}
