/* ==========================================================================
   rabatjeunesse.lifemoz.com — ameliorations visuelles
   Fichier propre a la copie statique (absent du site source).
   Charge en dernier : il ne fait que corriger, il ne remplace rien.
   ========================================================================== */

/* --- 1. Appels a l'action masques -------------------------------------
   Une regle du site (.cacher a.btn-inscription { display:none }) masquait
   le bouton des 7 pages de discipline sportive : elles n'avaient donc
   aucun moyen de s'inscrire. */
.cacher a.btn-inscription { display: inline-block !important; }

/* --- 0. Theme clair impose ---------------------------------------------
   Samsung Internet, Chrome Android (mode sombre force), Opera, Brave...
   assombrissent d'office les pages qui ne declarent pas de theme.
   Le site n'a pas de version sombre : on declare "clair uniquement"
   (en plus de la meta color-scheme dans le <head> de chaque page). */
:root { color-scheme: only light; }

/* --- 2. Boutons : une seule identite visuelle -------------------------
   Il y avait trois styles concurrents (violet, peche pale, rouge). */
.btn-inscription,
.wpcf7-form input[type="submit"],
input.wpcf7-form-control.wpcf7-submit.has-spinner {
    background: #7d60b9 !important;
    border: 2px solid #7d60b9 !important;
    color: #fff !important;
    padding: 14px 34px !important;
    font-size: 17px !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background .25s ease, transform .15s ease, box-shadow .25s ease;
}
.btn-inscription:hover,
.wpcf7-form input[type="submit"]:hover,
input.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
    background: #5e45a0 !important;
    border-color: #5e45a0 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(94, 69, 160, .28);
}

/* --- 3. Formulaires ---------------------------------------------------
   Les deux colonnes prevues (.groupe-champs > .colonne) n'ont jamais eu
   de CSS : les champs s'empilaient dans un ordre illisible
   (Nom, Naissance, Telephone, Arrondissement, puis Prenom, Sexe, Email...). */
.groupe-champs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 34px;
    align-items: start;
}
@media (max-width: 767px) {
    .groupe-champs { grid-template-columns: 1fr; gap: 0; }
}
.formulaire-rabat { max-width: 860px; margin: 0 auto; }
.formulaire-rabat h3 { font-size: 20px; margin: 32px 0 18px; }
.wpcf7-form label { display: block; font-size: 15px; color: #33333b; margin-bottom: 16px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 11px 14px;
    margin-top: 6px;
    border: 1px solid #d9d3e7;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.4;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #7d60b9;
    box-shadow: 0 0 0 3px rgba(125, 96, 185, .18);
}
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px dashed #c9c0de;
    border-radius: 6px;
    background: #faf8ff;
    font-size: 14px;
}

/* --- 4. FAQ -----------------------------------------------------------
   Aucune taille n'etait definie : questions et reponses sortaient
   en tout petit, deux fois plus petites que le reste du site. */
.faq-section { max-width: 900px; }
.faq-item { padding: 22px 26px; margin-bottom: 18px; }
.faq-item h3 { font-size: 20px !important; line-height: 1.35; margin-bottom: 10px !important; }
.faq-item p { font-size: 17px; line-height: 1.7; color: #3f3f46; margin: 0; }

/* --- 5. Pages de discipline ------------------------------------------
   Corps de texte a 16px gris clair sous un titre a 42px : trop faible. */
.football-description,
.football-description p { font-size: 18px !important; color: #3c3c44 !important; line-height: 1.75; }
.football-description { margin: 30px auto 10px; }
/* le bloc CTA n'etait centre que sur les pages de discipline */
.football-cta { text-align: center; }
/* bouton + lien secondaire : quand ils passent sur deux lignes, le lien collait au bouton */
.football-cta:has(.lien-detail) { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }
.football-cta .lien-detail { margin: 0; }
.btn-inscription, .btn-inscription:hover { text-decoration: none !important; display: inline-block; }
.football-categories h3 { font-size: 20px; }

/* --- 6. Cartes de /competitions-concours/ ------------------------------
   Elles sont devenues cliquables : on le montre au survol. */
.vc_col-has-fill .vc_column-inner { transition: transform .2s ease, box-shadow .2s ease; }
.vc_col-has-fill .vc_column-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(80, 52, 163, .14);
}

/* --- 7. Accessibilite clavier ----------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #f85551;
    outline-offset: 2px;
}

/* --- 8. Lien secondaire « En savoir plus » / « S'inscrire »  ----------- */
.lien-detail {
    display: inline-block;
    margin-left: 14px;
    color: #7d60b9;
    font-size: 16px;
    text-decoration: underline;
    vertical-align: middle;
}
.lien-detail:hover { color: #5e45a0; }

/* --- 10. Bouton « S'inscrire » du menu --------------------------------
   Les inscriptions sont gerees par une application externe
   (rabatj.projects-dev.com) : le menu doit y mener depuis chaque page.
   On habille le <span> interieur plutot que le <a>, dont la hauteur est
   pilotee par l'en-tete du theme The7. */
.main-nav > li.menu-item-inscription > a .menu-text,
.mobile-main-nav > li.menu-item-inscription > a .menu-text {
    display: inline-block;
    background: #7d60b9;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.2;
    transition: background .25s ease, box-shadow .25s ease;
}
.main-nav > li.menu-item-inscription > a:hover .menu-text,
.mobile-main-nav > li.menu-item-inscription > a:hover .menu-text {
    background: #5e45a0;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(94, 69, 160, .3);
}
/* le theme dessine un soulignement anime sous chaque entree : pas sur un bouton */
.main-nav > li.menu-item-inscription > a:before,
.main-nav > li.menu-item-inscription > a:after,
.main-nav > li.menu-item-inscription > a .menu-item-text:before,
.main-nav > li.menu-item-inscription > a .menu-item-text:after {
    display: none !important;
}
.main-nav > li.menu-item-inscription > a,
.mobile-main-nav > li.menu-item-inscription > a {
    color: #fff !important;
}

/* --- 11. /competitions-concours/ : copie conforme de l'accueil de l'application -----
   Demande client (28/09/2026) : page identique a https://rabatj.projects-dev.com/
   (memes rubriques, textes, images, couleurs, ordre), avec en plus la description
   du site sous l'accroche de chaque carte (.rj-desc).
   L'app tourne sous Milligram (html { font-size: 62.5% }) : ses rem valent 10 px,
   d'ou les valeurs en px ci-dessous. Police : pile systeme de l'app, pas DINPro. */
body.page-id-102 { overflow-x: hidden; }
body.page-id-102 #main { padding-top: 0; padding-bottom: 0; }

.rj-app {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: #F5F6FA;
    color: #2D3436;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: .01em;
}
.rj-app, .rj-app h1, .rj-app h2, .rj-app h3, .rj-app p, .rj-app span, .rj-app a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}
.rj-app a, .rj-app a:hover { text-decoration: none; color: inherit; }
.rj-app h1, .rj-app h2, .rj-app h3 { font-weight: 600; line-height: 1.2; letter-spacing: -1px; margin: 0 0 10px; text-transform: none; }
.rj-app p { font-weight: 400 !important; margin: 0 0 10px; color: #636E72; }
.rj-app img { max-width: none; }

.rj-app .rj-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.rj-app .sports-list { padding: 70px 0 30px; min-height: 100vh; background-color: #f8f9fa; } /* app : 30px ; +40px demandes par le client entre l'en-tete et le titre */
.rj-app .header-section { text-align: center; margin-bottom: 30px; }
.rj-app .header-section h1 { font-size: 25px; color: #333; margin-bottom: 10px; }
.rj-app .subtitle { font-size: 12px; color: #666; }

.rj-app .sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.rj-app .sport-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    transition: transform .3s ease, box-shadow .3s ease;
}
.rj-app .sport-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0, 0, 0, .15); }
.rj-app .sport-link, .rj-app .concours-link { display: block; }
.rj-app .sport-image { position: relative; height: 200px; overflow: hidden; background-color: #f0f0f0; }
.rj-app .sport-image img,
.rj-app .concours-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform .3s ease;
}
.rj-app .sport-card:hover .sport-image img,
.rj-app .concours-card:hover .concours-image img { transform: scale(1.05); }
.rj-app .sport-overlay,
.rj-app .concours-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px;
    opacity: 0;
    transition: opacity .3s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
}
.rj-app .concours-overlay { background: linear-gradient(to top, rgba(155, 89, 182, .8), transparent); }
.rj-app .sport-card:hover .sport-overlay,
.rj-app .concours-card:hover .concours-overlay { opacity: 1; }
.rj-app .view-more { color: #fff; font-weight: 500; font-size: 9px; }

.rj-app .sport-info { padding: 15px; }
.rj-app .sport-info h3 { font-size: 15px; margin-bottom: 5px; color: #333; }
.rj-app .sport-info p { color: #666; margin-bottom: 10px; line-height: 1.5; }
.rj-app .sport-categories { display: flex; flex-wrap: wrap; gap: 5px; }
.rj-app .category-badge {
    background-color: #e8f4f8;
    color: #2980b9;
    padding: 2.5px 7.5px;
    border-radius: 20px;
    font-size: 8.5px;
    font-weight: 500;
    line-height: 1.6;
}

.rj-app .concours-section { background-color: #f4ecf7; padding: 30px 0; margin-top: 30px; }
.rj-app .concours-section .header-section h2 { font-size: 25px; color: #9B59B6; margin-bottom: 10px; }
.rj-app .concours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.rj-app .concours-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(155, 89, 182, .1);
    transition: transform .3s ease, box-shadow .3s ease;
}
.rj-app .concours-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(155, 89, 182, .2); }
.rj-app .concours-image { position: relative; height: 180px; overflow: hidden; background-color: #f0f0f0; }
.rj-app .concours-info { padding: 15px; }
.rj-app .concours-info h3 { font-size: 13px; margin-bottom: 5px; color: #9B59B6; }
.rj-app .concours-info p { color: #666; line-height: 1.5; font-size: 12px; } /* app : 9,5px, agrandi a la demande du client */

/* description du site, ajoutee sous l'accroche de l'app */
.rj-app .sport-info p.rj-desc { font-size: 13px; color: #888; }
.rj-app .concours-info p.rj-desc { font-size: 13px; color: #888; margin-bottom: 0; }

/* au-dessus de 991 px l'en-tete du site est flottant : on descend le contenu */
@media (min-width: 992px) {
    .rj-app { padding-top: 100px; }
}
@media (max-width: 768px) {
    .rj-app .header-section h1,
    .rj-app .header-section h2 { font-size: 20px !important; }
    .rj-app .sports-grid,
    .rj-app .concours-grid { grid-template-columns: 1fr; padding: 0 10px; }
    .rj-app .concours-section { margin-top: 20px; }
}

/* =========================================================================
   12. Version mobile (29/09/2026)
   Demande client : logo trop grand, trop de vide entre le menu et la
   banniere, textes trop gros. Les tailles 42px / 24px sont en style inline
   dans les pages, d'ou les !important.
   ========================================================================= */
@media (max-width: 767px) {
    /* en-tete : logo 192x80 -> 46px de haut, barre plus basse */
    .masthead .mobile-header-bar .mobile-branding img,
    .masthead .mobile-branding img { height: 46px !important; width: auto !important; max-height: 46px; }
    .masthead .mobile-header-bar { min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
    /* en-tete fixe au defilement : le theme masquait le logo (il attend un logo "sticky"
       qui n'existe pas) -> la barre restait vide, logo visible ou non selon la position */
    .masthead.sticky-mobile-on .mobile-branding > a { display: block !important; }

    /* menu lateral : plus etroit, lignes plus serrees, bouton fermer aux couleurs du site */
    .dt-mobile-header { width: 280px !important; max-width: 85vw; }
    .dt-mobile-header .mobile-header-scrollbar-wrap { padding: 60px 20px 24px 24px !important; }
    .mobile-main-nav > li > a { padding-top: 11px !important; padding-bottom: 11px !important; font-size: 15px !important; }
    .mobile-main-nav > li.menu-item-inscription > a { padding-top: 16px !important; }
    .dt-close-mobile-menu-icon,
    .dt-close-mobile-menu-icon::before,
    .dt-close-mobile-menu-icon::after { background: #7d60b9 !important; border-color: #7d60b9 !important; border-radius: 8px; }

    /* accueil : colonne vide de 35px + padding 35px + marge 20px au-dessus de la banniere */
    .vc_custom_1753355319722 > .wpb_column:first-child:not(:has(.hero-banniere)) { display: none; }
    #main .vc_custom_1753355319722 .vc_column-inner { padding-top: 0 !important; }
    .hero-banniere { margin-top: 0; }

    /* titres et textes : echelle mobile */
    #main h1:not(.rj-app *) { font-size: 28px !important; line-height: 1.2 !important; }
    #main h2:not(.rj-app *) { font-size: 24px !important; line-height: 1.25 !important; }
    #main h3:not(.rj-app *) { font-size: 18px !important; line-height: 1.35 !important; }
    #main p:not(.rj-app *) { font-size: 16px !important; line-height: 1.6 !important; }

    /* espacements : 35px partout (colonnes, blocs), 80px en tete de section */
    #main .vc_column-inner { padding-top: 20px !important; }
    #main .wpb_content_element,
    #main .wpb_video_widget { margin-bottom: 20px !important; }
    #main .vc_row.competitions { padding-top: 30px !important; }
    #main .vc_btn3-container { margin-bottom: 20px; }
    #main .vc_empty_space { height: 20px !important; }   /* espaceurs de 120px en tete de page */

    /* bouton + lien secondaire : empiles, le lien passait sous le bouton */

    /* formulaire de contact : padding 50px en content-box, debordait a droite */
    #main .wpcf7 { padding-left: 0 !important; padding-right: 0 !important; width: 100%; box-sizing: border-box; }
    #main .wpcf7-form { width: 100%; }

    /* /competitions-concours/ : les 40px ajoutes pour l'en-tete flottant du bureau sont inutiles ici */
    .rj-app .sports-list { padding-top: 20px; }

    /* accueil : cartes des disciplines sur 2 colonnes au lieu d'une (13 cartes pleine largeur).
       Chaque rangee de 3 est un vc_inner distinct : on les "aplatit" pour que la grille coule. */
    .home #main .wpb_wrapper:has(> .vc_inner > .box, > .vc_inner > .box2) { display: flex; flex-wrap: wrap; justify-content: center; }
    .home #main .wpb_wrapper > .vc_inner:has(> .box, > .box2) { display: contents; }
    .home #main .vc_inner > :is(.box, .box2) { width: 50%; }
    .home #main .vc_inner > :is(.box, .box2):not(:has(img)) { display: none; }
    .home #main .vc_inner > :is(.box, .box2) .vc_column-inner { padding: 0 5px !important; }
    .home #main .vc_inner > :is(.box, .box2) .wpb_single_image { margin-bottom: 10px !important; }

    /* pied de page : 1250px de haut sur mobile -> compact.
       Logo reduit, stores et partenaires cote a cote, menu principal en ligne,
       Competitions et Concours sur 2 colonnes. */
    #footer .wf-container-footer { padding-top: 24px; padding-bottom: 0; }
    #footer .wf-container-footer .wf-container { display: flex; flex-wrap: wrap; }
    #footer .wf-cell { width: 100%; margin-bottom: 16px; text-align: center; }
    #footer .wf-cell:nth-child(3),
    #footer .wf-cell:nth-child(4) { width: 50%; }
    #footer .footer { padding: 0; }
    #footer .logo-section { margin-bottom: 14px; }
    #footer .logo { margin-bottom: 12px; }
    #footer .logo-icon img { width: 150px; height: auto; }
    #footer .social-icons { gap: 12px; margin-bottom: 14px; }
    #footer .social-icon { width: 40px; height: 40px; padding: 0; box-sizing: border-box; }
    #footer .social-icon svg { width: 16px; height: 16px; }
    #footer .app-stores { flex-direction: row; justify-content: center; align-items: center; gap: 12px; margin-bottom: 14px; }
    #footer .app-stores .store-btn { width: auto; padding: 0; }
    #footer .app-stores img { height: 22px; width: auto; }
    #footer .credits { display: flex; flex-direction: row; justify-content: center; align-items: flex-end; gap: 28px; height: auto; }
    #footer .credits > div { text-align: center; }
    #footer .footer { padding-bottom: 8px; }
    #footer .credits img { height: 56px; width: auto; }

    #footer ul.menu-footer,
    #footer ul.competitions { padding-top: 0; margin: 0; }
    #footer ul.menu-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
    #footer ul.menu-footer li,
    #footer ul.competitions li { line-height: 1.35 !important; height: auto; }
    #footer ul.menu-footer li { margin: 0; }
    #footer ul.menu-footer a { font-size: 14px !important; }
    #footer ul.competitions li { margin-bottom: 4px; font-size: 14px !important; }
    #footer ul.competitions li.title { font-size: 15px !important; margin-bottom: 8px; }
    #footer ul.competitions a { font-size: 14px !important; }
    #bottom-bar { min-height: 0; height: auto; }   /* barre du bas vide : 60px pour rien */
    #bottom-bar .wf-container-bottom { min-height: 0; padding: 12px 0; }
}

/* =========================================================================
   13. Corrections client du 19/10/2026 (document « Taches de correction »)
   Maquettes : fond creme, titres violet fonce encadres de deux traits,
   textes centres. Illustrations decoupees dans les maquettes :
   /wp-content/uploads/refonte-2026-10/.
   ========================================================================= */
:root {
    --rj-creme: #fcf8ec;
    --rj-encre: #3b1f99;      /* titres */
    --rj-texte: #5a46a6;      /* paragraphes */
    --rj-vif: #6b46c9;        /* boutons, pastilles, mots en gras */
    --rj-lilas: #ece6fb;
    --rj-traits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 44'%3E%3Cpath d='M34 5 46 21' stroke='%23F6C343' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M6 29 40 35' stroke='%23B9A4EC' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --- 13a. Titre commun : centre, deux traits decoratifs ------------------ */
.rj-titre {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    margin: 0 0 18px; color: var(--rj-encre) !important;
    font-size: clamp(30px, 4.2vw, 52px) !important; font-weight: 800 !important;
    line-height: 1.15; letter-spacing: -.01em; text-align: center;
}
.rj-titre::before,
.rj-titre::after {
    content: ""; flex: 0 0 auto; width: 58px; height: 40px;
    background: var(--rj-traits) center / contain no-repeat;
}
.rj-titre::after { transform: scaleX(-1); }

/* --- 13b. Gabarit des pages refaites (pleine largeur, fond creme) -------- */
body.page-id-11, body.page-id-133, body.page-id-142, body.page-id-261, body.page-id-288 { overflow-x: hidden; }
body.page-id-11 #main, body.page-id-133 #main, body.page-id-142 #main,
body.page-id-261 #main, body.page-id-288 #main { padding-top: 0 !important; padding-bottom: 0 !important; background: var(--rj-creme); }
.rj-page {
    position: relative;
    width: 100vw; margin-left: calc(50% - 50vw);
    background: var(--rj-creme); color: var(--rj-texte);
    padding: 80px 16px 0;
    box-sizing: border-box;
}
.rj-page p { color: var(--rj-texte); font-size: 18px; line-height: 1.7; }
.rj-page strong { color: var(--rj-encre); font-weight: 700; }
.rj-intro { max-width: 860px; margin: 0 auto; text-align: center; }
.rj-chapeau { max-width: 860px; margin: 0 auto 10px; text-align: center; }
.rj-bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 10px; border: 0;
    background: var(--rj-vif); color: #fff !important; font-size: 16px; font-weight: 600;
    text-decoration: none !important; cursor: pointer;
    box-shadow: 0 8px 20px rgba(107, 70, 201, .25); transition: background .2s, transform .2s;
}
.rj-bouton:hover, .rj-bouton:focus-visible { background: var(--rj-encre); transform: translateY(-1px); }
.rj-lien { background: none; border: 0; padding: 0; color: var(--rj-vif) !important; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rj-lien:hover { color: var(--rj-encre) !important; }

/* --- 13c. Presentation -------------------------------------------------- */
.rj-presentation .rj-intro p { margin: 0 0 22px; }
.rj-presentation mark {
    background: #f6dff3; color: var(--rj-encre); font-weight: 700;
    padding: 2px 10px; border-radius: 999px;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.rj-illustration { max-width: 1240px; margin: 0 auto; }
.rj-illustration img { display: block; width: 100%; height: auto; }
.rj-presentation .rj-illustration { margin-top: 10px; }

/* --- 13d. Programme ----------------------------------------------------- */
.rj-programme .rj-intro { position: relative; z-index: 2; }
.rj-programme .rj-intro p { font-size: 20px; margin: 0; }
.rj-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 30px; margin-top: 26px; }
/* l'illustration remonte sous les boutons : la zone effacee de la maquette les accueille */
.rj-programme .rj-illustration { position: relative; z-index: 1; margin-top: -4.5%; }

/* --- 13e. Galerie ------------------------------------------------------- */
.rj-galerie { display: flex; flex-direction: column; padding-left: 0; padding-right: 0; }
.rj-gal-hero { order: 1; position: relative; padding: 0 16px 40px; background: #fbf4dc; } /* fond chaud de la maquette */
.rj-galerie { background: #fbf4dc; }
.rj-gal-avis-haut { order: 2; }
.rj-gal-avis-bas { order: 3; }
.rj-gal-participe { order: 4; }
.rj-gal-scene {
    position: relative; max-width: 1400px; margin: 0 auto;
    /* demi-largeur de la scene du carrousel : les persos se calent sur ses bords */
    --rj-carr: min(940px, 100% - 2 * clamp(120px, 15vw, 230px));
}
.rj-gal-scene .rj-carousel { position: relative; z-index: 1; max-width: var(--rj-carr); margin-bottom: 10px; }
/* comme sur la maquette, les vignettes laterales passent devant les personnages :
   la partie du dessin qu'elles cachaient a ete effacee de la decoupe */
.rj-gal-scene::before,
.rj-gal-scene::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    background: center top / contain no-repeat;
}
.rj-gal-scene::before { width: 240px; height: 430px; top: -65px; left: calc(50% - var(--rj-carr) / 2 + 20px - 112px); background-image: url(/wp-content/uploads/refonte-2026-10/galerie-chanteuse.webp); }
.rj-gal-scene::after { width: 235px; height: 348px; top: -26px; left: calc(50% + var(--rj-carr) / 2 - 20px - 112px); background-image: url(/wp-content/uploads/refonte-2026-10/galerie-photographe.webp); }
.rj-gal-avis { position: relative; padding: 0 16px; background: #f7f3fe; }
.rj-gal-avis-haut { padding-top: 70px; }
.rj-gal-avis-bas { padding-bottom: 70px; }
.rj-gal-participe { padding-top: 70px; padding-bottom: 90px; background: linear-gradient(#f1ecfd, #f7f3fe); }
.rj-gal-avis-haut::after,
.rj-gal-participe::before,
.rj-gal-participe::after { content: ""; position: absolute; pointer-events: none; background: center / contain no-repeat; }
.rj-gal-avis-haut::after { right: max(16px, calc(50% - 600px)); top: 120px; width: 90px; height: 96px; background-image: url(/wp-content/uploads/refonte-2026-10/galerie-coeur.webp); }
.rj-gal-participe::before { left: max(16px, calc(50% - 610px)); top: 50px; width: 84px; height: 90px; background-image: url(/wp-content/uploads/refonte-2026-10/galerie-etoile.webp); }
.rj-gal-participe::after { right: max(16px, calc(50% - 620px)); top: 150px; width: 100px; height: 114px; background-image: url(/wp-content/uploads/refonte-2026-10/galerie-trophee.webp); }
.rj-avis-grille {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
    max-width: 1040px; margin: 34px auto 0;
}
.rj-avis {
    margin: 0; padding: 28px 26px 22px; background: #fff; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(80, 50, 160, .1); display: flex; flex-direction: column;
}
.rj-avis::before { content: "\201C"; font: 800 54px/0.6 Georgia, serif; color: #9b7be6; height: 26px; }
.rj-avis blockquote {
    margin: 12px 0 18px; padding: 0 !important; border: 0 !important; background: none !important; flex: 1;
    font-style: italic; font-size: 16px; line-height: 1.6; color: #3d3566;
}
.rj-avis blockquote::before, .rj-avis blockquote::after { content: none; }
.rj-avis figcaption { text-align: right; color: var(--rj-vif); font-weight: 700; font-size: 15px; }

/* --- 13f. FAQ ----------------------------------------------------------- */
.rj-faq { display: flex; flex-direction: column; align-items: center; padding-bottom: 90px;
    background: radial-gradient(60% 40% at 0% 30%, #efe8fd 0, transparent 70%), radial-gradient(50% 40% at 100% 75%, #efe8fd 0, transparent 70%), var(--rj-creme); }
.rj-faq .rj-titre { order: 1; }
.rj-faq .rj-sous-titre { order: 2; margin: 0 0 34px; text-align: center; color: var(--rj-vif); }
.rj-faq-liste { order: 3; width: 100%; max-width: 780px; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.rj-faq::after {
    content: ""; position: absolute; right: max(16px, calc(50% - 640px)); top: 230px;
    width: 140px; height: 190px; background: url(/wp-content/uploads/refonte-2026-10/faq-question.webp) center / contain no-repeat;
    pointer-events: none;
}
.rj-faq-item {
    background: #fff; border-radius: 14px; border-left: 4px solid var(--rj-vif);
    box-shadow: 0 8px 24px rgba(80, 50, 160, .09); overflow: hidden;
}
.rj-faq-item summary {
    display: flex; align-items: center; gap: 18px; padding: 20px 22px;
    cursor: pointer; list-style: none;
}
.rj-faq-item summary::-webkit-details-marker { display: none; }
.rj-faq-item summary h3 { flex: 1; margin: 0 !important; font-size: 19px !important; font-weight: 700; color: var(--rj-encre) !important; line-height: 1.35; }
.rj-faq-ico { flex: 0 0 auto; color: var(--rj-encre); display: flex; }
.rj-faq-fleche {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #f1ecfd;
    color: var(--rj-encre); display: flex; align-items: center; justify-content: center;
    transition: transform .25s ease;
}
.rj-faq-item[open] .rj-faq-fleche { transform: rotate(180deg); }
.rj-faq-item p { margin: 0 !important; padding: 0 22px 22px 66px; font-size: 16px !important; color: #4a4565 !important; }

/* --- 13g. Contact ------------------------------------------------------- */
.rj-contact { padding-bottom: 60px; background: radial-gradient(40% 50% at 0% 60%, #efe8fd 0, transparent 70%), radial-gradient(40% 50% at 100% 30%, #efe8fd 0, transparent 70%), var(--rj-creme); }
.rj-contact .rj-intro { margin-bottom: 26px; }
.rj-contact-scene { position: relative; max-width: 1240px; margin: 0 auto; min-height: 470px; }
.rj-perso { position: absolute; bottom: -60px; height: auto; pointer-events: none; }
.rj-perso-gauche { left: 0; width: 29%; max-width: 370px; }
.rj-perso-droite { right: 0; width: 31%; max-width: 400px; }
.rj-form, .rj-form-merci {
    position: relative; z-index: 1; max-width: 560px; margin: 0 auto;
    background: #fff; border-radius: 18px; padding: 30px 30px 26px;
    box-shadow: 0 16px 40px rgba(80, 50, 160, .12); box-sizing: border-box;
}
.rj-champ { margin-bottom: 16px; }
.rj-champ label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 15px; color: #23203a; }
.rj-saisie { position: relative; }
.rj-saisie .rj-ico { position: absolute; left: 14px; top: 14px; color: #6f6a8e; display: flex; pointer-events: none; }
.rj-form input, .rj-form textarea {
    width: 100%; box-sizing: border-box; margin: 0;
    padding: 12px 14px 12px 44px !important; border: 1.5px solid #ddd6f3 !important; border-radius: 10px !important;
    background: #fff !important; font-size: 15px; color: #23203a; box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s;
}
.rj-form textarea { min-height: 120px; resize: vertical; }
.rj-form input:focus, .rj-form textarea:focus { outline: none; border-color: var(--rj-vif) !important; box-shadow: 0 0 0 3px rgba(107, 70, 201, .15) !important; }
.rj-form [aria-invalid="true"] { border-color: #d93a3a !important; }
.rj-err { display: block; min-height: 0; margin-top: 5px; color: #c62828; font-size: 13px; }
.rj-err:empty { display: none; }
.rj-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rj-bouton-plein { width: 100%; margin-top: 6px; padding: 15px; }
.rj-bouton.is-envoi { opacity: .7; cursor: progress; }
.rj-form-retour { margin-top: 12px; text-align: center; color: #c62828; font-size: 14px; }
.rj-form-retour:empty { display: none; }
.rj-form-merci { text-align: center; padding: 46px 30px; }
.rj-form-merci:focus { outline: none; }
.rj-merci-titre { font-size: 24px !important; font-weight: 800; color: var(--rj-encre) !important; margin: 0 0 10px; }
.rj-merci-titre::before { content: "✓"; display: block; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: #e9e1fb; color: var(--rj-vif); font-size: 30px; line-height: 58px; }

/* --- 13h. Accueil : procedure d'inscription + competitions sportives ---- */
.home .title_sections { color: var(--rj-encre) !important; font-weight: 800 !important; }
.home #bloc-etape { padding-top: 40px !important; padding-bottom: 30px !important; }
.home #bloc-etape > .wpb_column { position: relative; padding: 0 22px; }
.home #bloc-etape > .wpb_column > .vc_column-inner {
    position: relative; height: 100%; box-sizing: border-box;
    padding: 50px 22px 26px !important; border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(80, 50, 160, .1);
}
/* « 01 » : pastille ronde a cheval sur le haut de la carte */
.home #bloc-etape .wpb_text_column:first-child {
    position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
    width: 56px; height: 56px; margin: 0 !important; padding: 0 !important;
    border-radius: 50% !important; background-color: var(--rj-vif) !important;
    box-shadow: 0 6px 16px rgba(107, 70, 201, .35);
}
.home #bloc-etape .wpb_text_column:first-child p { margin: 0 !important; font-size: 21px !important; line-height: 56px !important; }
/* picto au-dessus du texte */
.home #bloc-etape .wpb_text_column + .wpb_text_column::before {
    content: ""; display: block; height: 96px; margin: 0 auto 16px;
    background: center / contain no-repeat;
}
.home #bloc-etape .etape-1 .wpb_text_column + .wpb_text_column::before { background-image: url(/wp-content/uploads/refonte-2026-10/etape-1.webp); }
.home #bloc-etape .etape-2 .wpb_text_column + .wpb_text_column::before { background-image: url(/wp-content/uploads/refonte-2026-10/etape-2.webp); }
.home #bloc-etape .etape-3 .wpb_text_column + .wpb_text_column::before { background-image: url(/wp-content/uploads/refonte-2026-10/etape-3.webp); }
.home #bloc-etape .etape-4 .wpb_text_column + .wpb_text_column::before { background-image: url(/wp-content/uploads/refonte-2026-10/etape-4.webp); }
.home #bloc-etape .wpb_text_column + .wpb_text_column p { color: #4a3f80 !important; font-size: 17px !important; margin: 0 !important; }
.home #bloc-etape .wpb_text_column + .wpb_text_column strong { color: var(--rj-vif); font-weight: 700; }
/* fleche entre deux cartes, sur une ligne pointillee */
.home #bloc-etape > .wpb_column:not(.etape-4)::after {
    content: "›"; position: absolute; z-index: 2; top: 50%; right: -16px;
    width: 32px; height: 32px; margin-top: -16px; box-sizing: border-box;
    border-radius: 50%; border: 2px solid #b9a4ec; background: #fff;
    color: var(--rj-vif); font: 700 20px/26px Arial, sans-serif; text-align: center;
    box-shadow: -14px 0 0 -12px #b9a4ec, 14px 0 0 -12px #b9a4ec;
}
.home .competitions p strong { color: var(--rj-vif); font-weight: 700; }

/* --- 13i. /competitions-concours/ : les illustrations du client (Patinage artistique, Conte,
   Art oratoire, Sketch) remplacent les images de l'app, d'abord prevues au survol (21/10/2026) */
/* --- 13k. Tuiles et cartes : meme aspect partout (demande client du 22/10/2026) --
   coins arrondis, fond de couleur, et au survol seulement un contour violet :
   ni ombre, ni soulevement, ni zoom, ni voile. Les 4 illustrations du client ont
   ete detourees (tuile-*.webp) pour prendre le fond de couleur de leur tuile. */
.home .img-competition.tag,
.home .img-concours { border-radius: 20px !important; overflow: hidden; transition: border-color .2s ease; }
.home .img-competition.tag img,
.home .img-concours img { display: block; border-radius: 0 !important; transform: none !important; }
.home .img-competition.tag:hover,
.home .img-concours:hover { border-color: var(--rj-vif) !important; box-shadow: none !important; }
.home .img-competition .rollover i, .home .img-concours .rollover i,
.home .img-competition .rollover:after, .home .img-concours .rollover:after { display: none !important; }
/* au survol le theme passait le fond en transparent : chaque tuile garde le sien */
.home .box.element-1 .img-competition.tag:hover { background: #fbc859 !important; }
.home .box.element-2 .img-competition.tag:hover { background: #E1A686 !important; }
.home .box.element-3 .img-competition.tag:hover { background: #F3CB6C !important; }
.home .box.element-4 .img-competition.tag:hover { background: #ffcb85 !important; }
.home .box.element-5 .img-competition.tag:hover { background: #C590F8 !important; }
.home .box.element-6 .img-competition.tag:hover { background: #ffcb85 !important; }
.home .box.element-7 .img-competition.tag:hover { background: #E1A686 !important; }
.home .box.element-8 .img-competition.tag:hover { background: #20D4CC !important; }
.home .box2.element-1 .img-concours:hover { background: #F3CB6C !important; }
.home .box2.element-2 .img-concours:hover { background: #3FD4C5 !important; }
.home .box2.element-3 .img-concours:hover { background: #F3CB6C !important; }
.home .box2.element-7 .img-concours:hover { background: #FBCA74 !important; }
.home .box2.element-8 .img-concours:hover { background: #FAC64F !important; }
.home .box2.element-9 .img-concours:hover { background: #C590F8 !important; }

/* /competitions-concours/ : cartes arrondies, contour violet au survol */
.rj-app .sport-card,
.rj-app .concours-card { border: 3px solid transparent; transition: border-color .2s ease; }
.rj-app .sport-card:hover,
.rj-app .concours-card:hover { transform: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); border-color: var(--rj-vif); }
.rj-app .sport-card:hover .sport-image img,
.rj-app .concours-card:hover .concours-image img { transform: none; }
.rj-app .sport-overlay, .rj-app .concours-overlay { display: none; }
.rj-app .rj-tuile-patinage .sport-image { background: #20D4CC; }
.rj-app .rj-tuile-conte .concours-image { background: #FBCA74; }
.rj-app .rj-tuile-oratoire .concours-image { background: #FAC64F; }
.rj-app .rj-tuile-sketch .concours-image { background: #C590F8; }

/* concours : 3 par ligne (demande client du 21/10/2026), 2 sur tablette ; 1 sous 768px (section 11) */
@media (min-width: 992px) { .rj-app .concours-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 769px) and (max-width: 991px) { .rj-app .concours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- 13j. Tablette et mobile -------------------------------------------- */
@media (max-width: 1180px) {
    .rj-gal-scene::before, .rj-gal-scene::after { display: none; }
    .rj-gal-scene { --rj-carr: 100%; }
}
@media (max-width: 991px) {
    .rj-page { padding-top: 40px; }
    .rj-avis-grille { grid-template-columns: 1fr; max-width: 560px; }
    .rj-faq::after { display: none; }
    .rj-contact-scene { min-height: 0; }
    .rj-perso { position: static; display: inline-block; width: 46%; max-width: 260px; vertical-align: bottom; margin-top: 24px; }
    .rj-contact-scene { text-align: center; }
    .rj-contact-scene .rj-form, .rj-contact-scene .rj-form-merci { text-align: left; }
    .rj-contact-scene .rj-form-merci { text-align: center; }
    .home #bloc-etape > .wpb_column { margin-bottom: 44px; }
    .home #bloc-etape > .wpb_column::after { display: none; }
}
@media (max-width: 767px) {
    .rj-page { padding-top: 24px; }
    .rj-titre { gap: 10px; }
    .rj-titre::before, .rj-titre::after { width: 36px; height: 26px; }
    .rj-page p { font-size: 16px !important; }
    .rj-faq-item summary { gap: 12px; padding: 16px; }
    .rj-faq-item summary h3 { font-size: 16px !important; }
    .rj-faq-item p { padding: 0 16px 18px 16px; }
    .rj-form, .rj-form-merci { padding: 22px 18px; }
    .rj-programme .rj-illustration { margin-top: 10px; }
    .rj-gal-avis-haut, .rj-gal-participe { padding-top: 46px; }
    .rj-gal-avis-haut::after, .rj-gal-participe::before, .rj-gal-participe::after { display: none; }
    .home #bloc-etape > .wpb_column { padding: 0 8px; }
}
