/*
 * Layer 1: what Elodie's Elementor pages, header 164 and footer 301 need and Elementor cannot set.
 * Colours, sizes, hover states and durations live in the Elementor settings (pass of 20/11/2026);
 * each rule left here says in one line why it has no native equivalent.
 */

/* Header icons (22 and 30 px): 44 px hit area without moving them; the Icon widget only pads its stacked view, which paints a disc. */
.elementor-location-header .elementor-widget-icon a.elementor-icon {
    padding: 11px;
    margin: -11px;
}

/* Header icons (and icons with the cpts-icone-bloc class) sat on a text line box, 4 px above their axis:
   the Icon widget has no line-box setting. */
.elementor-location-header .elementor-widget-icon .elementor-icon-wrapper,
.elementor-widget-icon.cpts-icone-bloc .elementor-icon-wrapper {
    display: flex;
}

.elementor-location-header .elementor-widget-icon .elementor-icon svg {
    display: block;
}

/* Top bar (XD): a 26 px rule; Elementor containers only have a min-height. */
.e-con.cpts-barre-filet {
    height: 26px;
}

/* Documents officiels: WP File Download markup has no Elementor control, and its own inline sizes need !important. */
.wpfd-elementor-category .wpfd-content,
.wpfd-elementor-category .wpfd-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin-inline: auto;
}

.wpfd-elementor-category .wpfd-content-default .wpfd_list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr));
    gap: 24px;
}

.wpfd-elementor-category .wpfd-content-default .wpfd_list .file {
    gap: 16px;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 24px !important;
    border: 1px solid var(--e-global-color-768d905, #f5e7f7) !important;
    border-radius: 20px !important;
    font-size: 15px;
}

.wpfd-elementor-category .wpfd-content-default .wpfd_list .file .filecontent :is(h2, h3),
.wpfd-elementor-category .wpfd-content-default .wpfd_list .file :is(h2, h3) a {
    font-size: 18px !important;
    line-height: 1.35 !important;
    color: var(--e-global-color-c974e91, #202627) !important;
}

/* The file titles are h2 (extension filter: they follow the H1), but WP File Download styles only h3 and gives
   h2 its category-title padding, size and grey; its h3 rules (wpfd-default/css/style.css 6.3.12) are carried
   over to the h2 with the same selectors and values, so the cards do not move. */
.wpfd-content-default .wpfd_list .file h2 {
    font-size: 1.2em;
    line-height: 1.2222222222em;
    padding-top: 0;
    margin: 0 0 0.5555555556em 0;
    clear: none;
    word-wrap: break-word;
    text-transform: none;
    overflow: unset;
}

.wpfd-content-default .wpfd_list .file h2 a,
.wpfd-content-default .wpfd_list .file h2 span.file_title_none {
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    letter-spacing: normal;
    text-align: left;
    color: #808080;
    text-transform: none;
    vertical-align: text-top;
    font-size: 16px;
    line-height: 16px;
    max-width: calc(100% - 10px);
}

.wpfd-content-default .wpfd_list .file .filecontent h2 {
    padding: 0 0 0 25px;
    margin: 0 0 5px 0;
    vertical-align: top;
    position: relative;
    font-size: 16px;
    line-height: 1.3;
    display: flex;
    overflow: unset;
}

.wpfd-content-default .wpfd_list .file .filecontent h2 a:hover {
    box-shadow: none;
}

.wpfd-content-default .wpfd_list .file.wpfd-new-file-marker h2 > .wpfd_downloadlink {
    max-width: calc(100% - 25px);
    position: relative;
    margin-top: -5px;
    min-width: 100px;
    display: inline;
    vertical-align: baseline;
}

.wpfd-content-default .wpfd_list .file.wpfd-new-file-marker .filecontent > h2 {
    display: block;
    margin-left: 70px;
    padding-left: 10px;
    text-align: left;
}

.wpfd-content-default .wpfd_list .file.wpfd-new-file-marker .filecontent > h2 .wpfd_checkbox {
    position: unset;
    display: inline;
    vertical-align: middle;
    margin: 5px 5px 0 0;
}

.wpfd-content-default .wpfd_list .file.wpfd-new-file-marker .filecontent > h2 .wpfd_checkbox span {
    vertical-align: text-bottom;
}

@media only screen and (max-width: 720px) {
    .wpfd-content-default .wpfd_list .file.wpfd-new-file-marker .filecontent > h2 {
        margin-left: 0;
        padding-left: 0;
    }
}

@media screen and (max-width: 450px) {
    .wpfd-content-default .wpfd_list .file .filecontent h2 {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 0;
        margin-bottom: 10px;
    }

    .wpfd-content-default .wpfd_list .file .filecontent h2 > .wpfd_checkbox,
    .wpfd-content-default .wpfd_list .file .filecontent h2 > a {
        display: inline-block;
        vertical-align: middle;
    }

    .wpfd-content-default .wpfd_list .file .filecontent h2 > .wpfd_checkbox {
        position: unset;
        margin-right: 5px;
    }
}

.wpfd-elementor-category .wpfd-content-default .wpfd_list .file .filecontent {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
}

.wpfd-elementor-category .wpfd-content-default .wpfd_list .file .file-right {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* WP File Download greys its file details (#999) and its preview link (#8f8f8f on #fafafa) below 4.5:1, with no colour setting. */
.wpfd-elementor-category .wpfd-content-default .wpfd_list .file :is(.file-size, .file-dated),
.wpfd-elementor-category .wpfd-content-default .wpfd_list .file .file-right a.openlink {
    color: #5b6366;
}

/* Touch layouts: its 32 px high buttons reach 44 px, and the file titles get a 44 px tap height without
   moving the line; the extension has no size setting. */
@media (max-width: 1024px) {
    .wpfd-elementor-category .wpfd-content-default .wpfd_list .file .file-right a {
        height: 44px;
        padding-block: 11px;
    }

    .wpfd-elementor-category .wpfd-content-default .wpfd_list .file :is(h2, h3) a {
        display: inline-block;
        padding-block: 10px;
        margin-block: -10px;
    }
}

/* WP File Download removes the focus ring of its links and animates "all"; it has no focus nor motion setting. */
.wpfd-elementor-category .wpfd-content-default .wpfd_list .file a {
    transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}

.wpfd-elementor-category .wpfd-content-default .wpfd_list .file a:focus-visible {
    outline: 2px solid var(--e-global-color-accent, #9a0aae);
    outline-offset: 2px;
    transition: none;
}

/* Posts: the decorative arcs of Elodie's post layout bleed past the window; the document wrapper has no overflow setting. */
body.single-post [data-elementor-type="wp-post"] {
    overflow-x: clip;
}

/* A G3W zone whose shortcodes print nothing (Instagram not connected yet) keeps no blank space: no conditional display in Elementor. */
.e-con.cpts-zone:not(:has(.elementor-shortcode > *, .elementor-widget:not(.elementor-widget-shortcode))) {
    display: none;
}

/* Breadcrumb (XD): the crumbs before the current page are 700 violet, "Ressources" included (a menu heading
   without a page, added by Cpts_Site_Breadcrumb), the current page 400; the widget styles the whole trail. */
#breadcrumbs > span > span:not(.breadcrumb_last) {
    color: var(--e-global-color-accent, #9a0aae);
}

#breadcrumbs .breadcrumb_last {
    font-weight: 400;
}

/* Astra underlines content links on some templates (Agenda); the XD trail is not underlined at rest. */
#breadcrumbs a {
    text-decoration: none;
}

/* Touch layouts: 44 px tap height on the breadcrumb links without moving the line; the widget has no link padding.
   The zone grows upwards only: when the trail wraps, it no longer covers the current page on the second line. */
@media (max-width: 1024px) {
    #breadcrumbs a,
    .cpts-breadcrumb a {
        display: inline-block;
        padding: 20px 0 0;
        margin: -20px 0 0;
    }
}

/* Touch layouts: phone and e-mail links alone in their paragraph (Text editor) or in a JetElements team card
   reach a 44 px tap height without moving the text; neither widget has a link padding. A paragraph with
   several lines (br) is left alone, where the taller zones would overlap. */
@media (max-width: 1024px) {
    .elementor-widget-text-editor p > a:only-child:is([href^="tel:"], [href^="mailto:"], .mail-link),
    .jet-team-member__socials-item:only-child > a:is([href^="tel:"], [href^="mailto:"]) {
        display: inline-block;
        padding-block: 10px;
        margin-block: -10px;
    }
}

/* ---------- Focus ----------
   Elementor has no focus-ring setting: violet on light backgrounds, white on the teal footer and on the
   white buttons that sit on violet or on a dark photo (class cpts-focus-clair). */
:is(a, button, summary, input[type="submit"], input[type="button"], [role="button"]):focus-visible {
    outline: 2px solid var(--e-global-color-accent, #9a0aae);
    outline-offset: 2px;
}

.elementor-location-footer :is(a, button, [role="button"]):focus-visible,
.cpts-focus-clair :is(a, button):focus-visible {
    outline-color: #fff;
}

/* Astra draws a dotted outline on any focused link, so a tap or a click left one behind. */
a:focus:not(:focus-visible) {
    outline: none;
}

/* ---------- Buttons ----------
   Hover and focus colours and the 150 ms duration are native (Button and Form widgets). Elementor animates "all"
   with its default curve and has no property nor easing setting; keyboard focus does not animate. */
.elementor-widget-button .elementor-button,
.elementor-widget-form .elementor-button {
    transition-property: background-color, border-color, color;
    transition-timing-function: ease-out;
}

.elementor-widget-button .elementor-button:focus-visible,
.elementor-widget-form .elementor-button:focus-visible {
    transition: none;
}

.elementor-widget-button .elementor-button-icon {
    transition: transform 150ms ease-out;
}

/* Arrow buttons (class cpts-btn-fleche): Elementor has no icon size, no vertical alignment of the button
   content and no icon motion. The arrow is 40 px (32 px on phones, except the footer one) and slides 4 px. */
.elementor-widget-button.cpts-btn-fleche .elementor-button .elementor-button-content-wrapper {
    align-items: center;
}

.elementor-widget-button.cpts-btn-fleche .elementor-button .elementor-button-icon svg {
    width: 40px;
    height: 40px;
}

@media (max-width: 767px) {
    .elementor-widget-button.cpts-btn-fleche:not(.cpts-btn-fleche--fixe) .elementor-button .elementor-button-icon svg {
        width: 32px;
        height: 32px;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .elementor-widget-button.cpts-btn-fleche .elementor-button:hover .elementor-button-icon {
        transform: translateX(4px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .elementor-widget-button.cpts-btn-fleche .elementor-button:focus-visible .elementor-button-icon {
        transform: translateX(4px);
        transition: none;
    }
}

/* Call to action cards (Ateliers parentalité): the widget animates "all" over 0.3 s and has no duration setting. */
.elementor-widget-call-to-action .elementor-cta__button.elementor-button {
    transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

/* ---------- Menus ----------
   Elementor nav menus animate "all" over 0.4 s and have no duration setting; body outweighs Elementor Pro's rule. */
body .elementor-location-header .elementor-nav-menu a,
body .elementor-location-footer .elementor-nav-menu--main .elementor-item {
    transition: color 150ms ease-out, background-color 150ms ease-out;
}

body .elementor-location-header .elementor-nav-menu a:focus-visible,
body .elementor-location-footer .elementor-nav-menu--main .elementor-item:focus-visible {
    transition: none;
}

/* Astra adds focusable sub-menu toggles (0 x 0) to every menu: invisible stops for keyboard users. */
.elementor-nav-menu .ast-header-navigation-arrow {
    display: none;
}

/* ---------- Icons ----------
   Colours are native; the Icon widget animates "all" and its hover colour has no :focus state. The focus
   selectors carry the weight of Elementor's per-element colour rules. */
.elementor-widget-icon a.elementor-icon {
    transition: color 150ms ease-out;
}

/* An Icon widget without a link has no interaction, yet Elementor gives it "transition: all 0.3s" and no setting. */
.elementor-widget-icon div.elementor-icon {
    transition: none;
}

.elementor-location-header .elementor-widget-icon.elementor-widget .elementor-icon-wrapper a.elementor-icon:focus-visible {
    color: var(--e-global-color-b41e10f, #d93373);
    transition: none;
}

.elementor-location-footer .elementor-widget-icon.elementor-widget .elementor-icon-wrapper a.elementor-icon:focus-visible,
.elementor-location-footer .elementor-widget-icon.elementor-widget .elementor-icon-wrapper a.elementor-icon:focus-visible svg {
    color: rgba(255, 255, 255, 0.8);
    fill: rgba(255, 255, 255, 0.8);
    transition: none;
}

/* ---------- Text links ----------
   Header and footer text links and breadcrumbs underline on hover and focus: the Heading, Text editor,
   Icon list and Breadcrumbs widgets have no hover decoration setting. */
.elementor-location-header .elementor-widget-heading a,
.elementor-location-footer .elementor-widget-text-editor a,
.elementor-location-footer .elementor-icon-list-item a,
#breadcrumbs a,
.cpts-breadcrumb a {
    text-underline-offset: 3px;
}

@media (hover: hover) {
    .elementor-location-header .elementor-widget-heading a:hover,
    .elementor-location-footer .elementor-widget-text-editor a:hover,
    .elementor-location-footer .elementor-icon-list-item a:hover .elementor-icon-list-text,
    #breadcrumbs a:hover,
    .cpts-breadcrumb a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

.elementor-location-header .elementor-widget-heading a:focus-visible,
.elementor-location-footer .elementor-widget-text-editor a:focus-visible,
.elementor-location-footer .elementor-icon-list-item a:focus-visible .elementor-icon-list-text,
#breadcrumbs a:focus-visible,
.cpts-breadcrumb a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Astra animates every link and field with "transition: all 0.2s linear": only paint properties change, in
   150 ms. html raises the specificity above Astra's; its input[type] rule needs the Form widget field class. */
html :is(a, input, select, textarea, button),
html .elementor-field-group .elementor-field {
    transition-property: color, background-color, border-color, text-decoration-color, opacity, box-shadow, transform;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

/* ---------- Video play pill (class cpts-video-pilule, modifier --framboise for the home tint) ----------
   The Video widget has no label nor position for its play button and paints no disc behind the icon;
   its corners are native (Advanced > Border radius). */
.elementor-widget-video.cpts-video-pilule {
    --cpts-pilule-voile: 32 38 39;
}

.elementor-widget-video.cpts-video-pilule--framboise {
    --cpts-pilule-voile: 83 25 50;
}

.elementor-widget-video.cpts-video-pilule .elementor-custom-embed-play {
    top: auto;
    left: 28px;
    bottom: 26px;
    transform: none;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 20px 0 6px;
    border-radius: 999px;
    background: rgb(var(--cpts-pilule-voile) / 0.6);
    opacity: 1;
    transition: background-color 150ms ease-out;
}

.elementor-widget-video.cpts-video-pilule .elementor-custom-embed-play :is(i, svg) {
    width: 45px;
    height: 45px;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 50%;
    background: var(--e-global-color-accent);
    color: var(--e-global-color-astglobalcolor8);
    fill: var(--e-global-color-astglobalcolor8);
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    text-shadow: none;
    filter: none;
}

.elementor-widget-video.cpts-video-pilule .elementor-custom-embed-play::after {
    content: "Voir la vidéo de présentation";
    color: var(--e-global-color-astglobalcolor8);
    font-family: "Barlow", sans-serif;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

@media (hover: hover) {
    .elementor-widget-video.cpts-video-pilule .elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play {
        background: rgb(var(--cpts-pilule-voile) / 0.8);
    }
}

@media (max-width: 767px) {
    .elementor-widget-video.cpts-video-pilule .elementor-custom-embed-play {
        left: 16px;
        bottom: 16px;
    }

    .elementor-widget-video.cpts-video-pilule .elementor-custom-embed-play::after {
        font-size: 14px;
    }
}

/* Main menu: a chevron on every entry that opens a sub-menu (Gianito, 26/11/2026). The header template (164)
   hides Elementor's arrow on desktop; it comes back here, drawn as the Phosphor caret, turned while open. */
.elementor-164 .elementor-widget-nav-menu .elementor-nav-menu--main .menu-item-has-children > a > .sub-arrow {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 0;
	line-height: 1;
}

.elementor-164 .elementor-nav-menu--main .menu-item-has-children > a > .sub-arrow svg {
	display: none;
}

.elementor-164 .elementor-nav-menu--main .menu-item-has-children > a > .sub-arrow::before {
	content: "";
	width: 12px;
	height: 12px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.elementor-164 .elementor-nav-menu--main .menu-item-has-children:hover > a > .sub-arrow::before {
	transform: rotate(180deg);
	transition: transform 160ms ease-out;
}

.elementor-164 .elementor-nav-menu--main .menu-item-has-children > a.highlighted > .sub-arrow::before,
.elementor-164 .elementor-nav-menu--main .menu-item-has-children:focus-within > a > .sub-arrow::before {
	transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
	.elementor-164 .elementor-nav-menu--main .menu-item-has-children:hover > a > .sub-arrow::before {
		transition: none;
	}
}

/* From 1025 to 1099 px the four chevrons push "Ressources" to a second line: tighter entries there only. */
@media (min-width: 1025px) and (max-width: 1099px) {
	body .elementor-164 .elementor-element.elementor-element-c4b9620 {
		--e-nav-menu-horizontal-menu-item-margin: 6px;
	}

	.elementor-164 .elementor-widget-nav-menu .elementor-nav-menu--main .menu-item-has-children > a > .sub-arrow {
		margin-left: 3px;
	}
}

/* ---------- Page gutters (26/11/2026) ----------
   Reference: the header and the "full width / stretched" Elementor pages (Outils, Découvrir): boxed containers of
   1440 px, 16 px from the screen edge on phones. */

/* Astra's "plain container" layout, set on the Ultimate Member pages, Mes réservations and Sport santé, wraps the
   Elementor full-width template in a 20 px padded box: their sections sat 20 px off the header's edge, their
   full-bleed bands stopped 20 px short of the window, and their full-width containers (breadcrumb of the login page)
   stuck to the window edge on a wide screen. Same box as the stretched pages... */
body.elementor-template-full-width.ast-plain-container .site-content > .ast-container {
	max-width: 100%;
	padding-inline: 0;
}

/* ...and their page sections get the header's side space, which Astra's box used to give them: the gutter
   (16 px on phones, 20 px up to 1440 px), then a centred 1440 px box (10 px minimum), as the boxed containers of
   the reference pages. Wider paddings set in Elementor are kept. */
body {
	--cpts-gouttiere: 20px;
}

@media (min-width: 1441px) {
	body {
		--cpts-gouttiere: 0px;
	}
}

body.elementor-template-full-width.ast-plain-container .elementor[data-elementor-type="wp-page"] > .e-con.e-parent {
	--padding-inline-start: max(var(--padding-left), var(--cpts-gouttiere), calc((100% - 1440px) / 2));
	--padding-inline-end: max(var(--padding-right), var(--cpts-gouttiere), calc((100% - 1440px) / 2));
}

/* WP File Download's search page has Astra's default template, whose 1920 px container put its title and form
   20 px from the window edge on a wide screen: the content width of the header instead. */
body.page-template-default.ast-plain-container .site-content > .ast-container {
	max-width: none;
	padding-inline: max(20px, calc((100% - 1440px) / 2));
}

/* Elementor's default container padding (10 px) left the sections, cards and texts of many inner pages 10 px from
   the screen edge: on phones (most pages), on tablets (legal pages, search results) and up to 1440 px (hero card of
   Nos adhérents), against the header's gutter (16 px on phones, 20 px up to 1440 px). A page section with a side
   padding between 1 px and the gutter gets the gutter; 0 (full-bleed) and wider paddings are kept. Multiplying the
   padding by 1000 turns any non-zero value into a length above the gutter, so min() gives the gutter for it and 0
   for 0. Above 1440 px the gutter is 0 and the rule changes nothing: the boxed containers centre their content. */
body .elementor:is([data-elementor-type="wp-page"], [data-elementor-type="search-results"]) > .e-con.e-parent {
	--padding-inline-start: max(var(--padding-left), min(var(--cpts-gouttiere), calc(var(--padding-left) * 1000)));
	--padding-inline-end: max(var(--padding-right), min(var(--cpts-gouttiere), calc(var(--padding-right) * 1000)));
}

/* Contact (page 69): the form card and the three contact cards sit in a section without side padding, and their
   own containers put them 10 px from the edge on phones and tablets. That section gets the gutter minus those
   10 px (6 px on phones, 10 px on tablets); the selector outweighs the gutter rule, which would round 6 px up. */
@media (max-width: 1024px) {
	body .elementor-69 .elementor-element.elementor-element-a64419a.e-con.e-parent {
		--padding-inline-start: calc(var(--cpts-gouttiere) - 10px);
		--padding-inline-end: calc(var(--cpts-gouttiere) - 10px);
	}
}

@media (max-width: 767px) {
	body {
		--cpts-gouttiere: 16px;
	}

	body.page-template-default.ast-plain-container .site-content > .ast-container {
		padding-inline: 16px;
	}

	/* Histoire timeline: a long capitalised word ("SUBVENTIONNEMENT") widened its card past the screen edge,
	   where the text was cut at 320 and 360 px; the JetElements timeline has no word-break setting. */
	.elementor-widget .timeline-item__card-content {
		overflow-wrap: anywhere;
		hyphens: auto;
	}
}

/* Sport santé (page 14142): the clubs section follows the care structures page it reuses (Gianito, 26/11/2026).
   Elodie's container held it to 1150 px, so the filters, the title and the cards no longer lined up with the hero
   above; it gets the hero's 1440 px width and side padding. The section title loses the 10 px padding of its
   widget, which set it off the accordion and the filters. */
body .elementor-14142 .elementor-element.elementor-element-371787d7 {
	--content-width: 1440px;
	--padding-left: 10px;
	--padding-right: 10px;
}

body .elementor-14142 .elementor-element.elementor-element-d11a51b > .elementor-widget-container {
	padding-inline: 0;
}
