#entete,
#content,
#footer{
width:100%;
margin:auto;
}

#corps{
padding-top:165px;
overflow-x: clip;
transition:all ease .5s;
}

#smart-icon{
cursor:pointer;
}
#smart-menu{
display:none;
}

.page .complet{
display:flex;
width:100%;
max-width:1280px;
margin:auto;	
}
.page .noFlex{
display:block!important;	
}
.page .fullWidth{
max-width:100%;	
}

.FAQ{
max-width:960px!important;	
}
.page .complet .img2{
width:55%;
max-height:400px;
}
.page .complet .max{
width:100%;
max-width:1280px;
padding:50px 30px;
}

.page .complet .txt{
width:45%;
}
.page .complet .max .txt{
width:55%;
}
.page .complet .img2 img{
object-fit:cover;
object-position:top left;	
}
.page .complet:is(.article_intro) .txt{
padding:50px;	
}
.page .complet:not(.article_intro) .txt{
padding:20px;	
}

.page .txt.noMedia{
width:100%!important;
padding:0 20px;	
}

.complet .txt{
background:none;	
}

.colorDark h5 a{
color:var(--text);	
border:1px solid var(--text);
}

/* fullBkg */
.page .complet.fullBkgImage {
width: 100%;
max-width: none;
padding:0;
}
.fullBkgImage {
position: relative;
padding: 80px 40px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 480px;
box-sizing: border-box;
overflow: hidden;
}
.fullBkgImage>.fullBkg {
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none
}

.fullBkgImage img{
object-fit: cover;
object-position: center
}
#corps .fullBkgImage .txt {
animation: slideInRight 1ms linear both;
animation-timeline: view();
animation-range: entry 0% cover 30%;
z-index: 2!important;
background:#ffffffe0;
border-radius:16px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* contact form below the text, not beside it */
.page .complet:has(> .formulaire){
flex-direction:column;
}
.complet:has(.formulaire) *{
color:var(--blanc);
}
/* contact form sent / failed message: same place as the form, white rounded box, blue text */
.page .formulaire.merci{
background:var(--blanc);
border-radius:16px;
padding:30px 40px;
text-align:center;
}
.page .formulaire.merci,
.page .formulaire.merci *{
color:var(--bleu);
}
.page .formulaire.merci > :last-child{
margin-bottom:0;
}
.formulaire{
max-width:720px;	
margin:15px auto 30px auto;
text-align:left;
}
.formulaire .eForm{
margin-bottom:24px;
}
.formulaire label{
display:block;
margin-top:16px;
}
.formulaire input,
.formulaire textarea,
.formulaire select{
width:100%;
display:block;
border:none;
padding:12px;
text-align:left;
color:var(--bleu)!important;
}
.formulaire input{
padding:8px 12px;	
border-radius:.5em;
}
.formulaire textarea{
border-radius:.5em;
height:120px;	
}
.formulaire select{
padding:8px 12px;
border-radius:.5em;
background:var(--blanc);
cursor:pointer;
}
.formulaire select option{
color:var(--bleu);
}
/* identical fields whatever the browser: same blue text and font while typing, autofilled or focused */
.formulaire input:not([type="submit"]):not([type="radio"]),
.formulaire textarea,
.formulaire select{
font-family:"Outfit", sans-serif;
font-size:1.1rem;
font-weight:500;
caret-color:var(--bleu);
-webkit-text-fill-color:var(--bleu);
}
.formulaire input::placeholder,
.formulaire textarea::placeholder{
color:var(--bleu);
-webkit-text-fill-color:var(--bleu);
opacity:.5;
}
/* native select (Safari keeps its system font and black text): custom blue arrow instead */
.formulaire select{
-webkit-appearance:none;
appearance:none;
padding-right:40px;
background:var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23264275' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}
/* browser autofill (Chrome/Safari yellow or light-blue background, black text, system font) */
.formulaire input:-webkit-autofill,
.formulaire input:-webkit-autofill:hover,
.formulaire input:-webkit-autofill:focus,
.formulaire textarea:-webkit-autofill,
.formulaire select:-webkit-autofill{
-webkit-text-fill-color:var(--bleu);
-webkit-box-shadow:0 0 0 1000px var(--blanc) inset;
box-shadow:0 0 0 1000px var(--blanc) inset;
transition:background-color 99999s ease-out 0s;
}
.formulaire input:-webkit-autofill::first-line{
font-family:"Outfit", sans-serif;
font-size:1.1rem;
font-weight:500;
}
/* focus: same outline in the site's colour for every field */
.formulaire input:not([type="submit"]):focus,
.formulaire textarea:focus,
.formulaire select:focus{
outline:2px solid var(--bleu);
outline-offset:2px;
}
.formulaire .labelChoix{
margin-top:16px;
}
.formulaire .choix{
display:flex;
gap:24px;
}
.formulaire .choix label{
display:inline-flex;
align-items:center;
gap:6px;
margin-top:6px;
cursor:pointer;
}
.formulaire input[type="radio"]{
width:auto;
display:inline-block;
padding:0;
margin:0;
}

.formulaire p{
max-width:720px;	
width:100%;	
margin:auto;
}
.formulaire .no-eForm p *{
font-size:.8em;	
}
.formulaire .no-eForm small{
font-size:12px;	
}
.formulaire .no-eForm small strong{
font-size:inherit;	
}

.formulaire input[type="submit"]{
width:auto;
background:var(--bleu);
color:var(--blanc)!important;
display:block;
margin:30px auto 0 auto;
font-weight:800;
font-size:1.2em;
text-transform:uppercase;
padding:6px 20px;	
transition:all ease 0.5s;
cursor:pointer;
}
.formulaire input[type="submit"]:hover{
background:var(--rouge);
filter:drop-shadow(0px 4px 12px #F44336);
padding:6px 36px;		
}

/* squarelinks */

.squarelinks{
max-width:1280px;
padding:0;
text-align:center;
margin:0px auto;
position:relative;
display:flex;
flex-wrap:wrap;
justify-content:center;
}

.picto .img2,
.pictoClic .img2{
width:86px!important;
height:86px!important;
margin:0px auto 30px auto!important;	
transition:all ease .5s;
}
.center{
text-align:center!important;	
}
.noPadding > *{
padding:0!important;	
}
.noMargin > *{
padding:0!important;	
}

.picto:hover .img2,
.pictoClic:hover .img2{
transform:scale(1.1);
}

.demi{
width:50%;	
text-align:left;
}

.demi .img2{
width:50%;
margin:30px auto 0 auto;	
}
.demi .txt{padding:30px;}

.tiers{
width:320px;
display:inline-block;
vertical-align:top;
margin:20px;
padding:10px 10px 10px;
transition:all ease 0.5s;
position:relative;
text-align:left;
}

/* MUR ELEMENT */
/* MUR ELEMENT */
/* Parent .complet must not lay the wall out as a flex column */
.page .complet:has(> .murelements){
display:block;
}
/* Wall always takes the full width, below the text */
.page .murelements{
display:block;
width:100%;
clear:both;
}
/* Cards : image on top, text below (cancel .bloc flex row) */
.page .murelements .bloc{
display:block;
}
.page .murelements .bloc .txt{
width:100%!important;
}
.page .murelements .tiers{
border-radius:24px;	
border:2px solid var(--bleu);
}
.page .murelements .tiers:hover{
transform:translateY(-16px);
border:2px solid var(--rouge);
}
.page .murelements .bloc .img2{
width:100%;
}
/* Wall images, "Images" option of the widget (data-image) :
   - default (.murelements-contain) : real photos shown whole, centred ; the substitute image (.imgDefaut) fills the frame
   - .murelements-cover : every image fills the frame (cropped), centred
   !important : wins over a block's imgCover / imgContain options */
.page .murelements-contain .bloc .img2:not(.imgDefaut) img{
object-fit:contain!important;
object-position:center!important;
}
.page .murelements-cover .bloc .img2 img,
.page .murelements .bloc .img2.imgDefaut img{
object-fit:cover!important;
object-position:center!important;
}
.page .murelements .bloc .txt,
.page .murelements .bloc .txt h3,
.page .murelements .bloc .txt h4,
.page .murelements .bloc .txt h5,
.page .murelements .bloc .txt li,
.page .murelements .bloc .txt p{
margin:0 0 5px 0;
padding:0;
}
/* Cards of a row have the same height (flex row): the button (h5, added last by the widget)
   goes to the bottom of each card, so the buttons of a row are aligned */
.page .murelements .squarelinks > *{
display:flex;
flex-direction:column;
}
.page .murelements .squarelinks > * > .bloc{
display:flex;
flex-direction:column;
flex:1 1 auto;
}
.page .murelements .bloc .txt{
display:flex;
flex-direction:column;
flex:1 1 auto;
margin-bottom:0;
}
.page .murelements .bloc .txt > h5:last-child{
margin:auto 0 0 0;
padding-top:10px;
display:flex; /* no line box under the button: same space below it as on its left */
}
.page .murelements .bloc .txt > h5:last-child a{
margin:0;
}

/* CONSISTANCE */
.tiers.pictoConsistance{
width:200px!important;
height:200px!important;
padding:0!important;
display:flex;
justify-content:center;
align-items:center;
}
.tiers.pictoConsistance .bloc{
display:block;
position:relative;
width:100%;
height:100%;
}
.tiers.pictoConsistance .img2{
width:200px!important;
height:200px!important;
margin:0!important;
overflow:visible;
}
.tiers.pictoConsistance .img2 img{
object-fit:cover!important;
width:100%;
height:100%;
max-width:100%;
max-height:100%;
border-radius:100%;
border:6px solid white;
box-sizing:border-box; /* keep the border inside the 200px */
}
/* label pill centered over the circle */
.tiers.pictoConsistance .txt{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
z-index:1;
background:white;
border-radius:999px;
padding:6px 20px;
white-space:nowrap;
text-align:center;
}
.tiers.pictoConsistance .txt p{
margin:0;
}
.tiers.pictoConsistance .txt a{
color:#2a2d5c;
font-weight:500;
}
/* hover arrow, sits on the circle's bottom border */
.tiers.pictoConsistance .bloc::after{
content:'';
position:absolute;
left:50%;
bottom:-3px;
width:40px;
height:37px;
transform:translate(-50%,6px);
background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64.11 54.13'%3E%3Cpath d='M0 54.13 24.21 4.88A8.71 8.71 0 0 1 32 0h0a8.74 8.74 0 0 1 7.83 4.87L64.11 54.13Z' fill='%23fff'/%3E%3C/svg%3E");
background-repeat:no-repeat;
background-size:contain;
opacity:0;
pointer-events:none;
transition:all ease .3s;
z-index:1;
}
.tiers.pictoConsistance:hover .bloc::after{
opacity:1;
transform:translate(-50%,0);
}

/* QUART */
.quart{
width:23%;
display:inline-block;
vertical-align:top;
margin:20px;
transition:all ease 0.5s;
position:relative;
text-align:left;
}
.quart.picto,
.quart.pictoClic{
width:240px;
}
.quart.picto:hover,
.quart.pictoClic:hover{
transform:translateY(-8px);	
}

/* CHIFFRES */
/* key figures: round icon + big number + caption */
.quart.pictoChiffres{
width:200px;
color:white;
}
.quart.pictoChiffres .bloc{
display:block;
}
.quart.pictoChiffres .img2{
width:90px!important;
height:90px!important;
margin:0 auto 15px auto!important;
transition:all ease .5s;
}
.quart.pictoChiffres .img2 svg{
width:100%;
height:100%;
display:block;
}
.quart.pictoChiffres .txt p{
margin:0;
font-size:1.2em;
line-height:1.15;
}
/* key figures written as a title + caption (Qui sommes-nous): caption at the normal paragraph size */
.quart.pictoChiffres .txt :is(h1,h2,h3,h4) ~ p{
font-size:1.1rem;
line-height:1.25em;
}
/* same blocks: the text may use the block side margins (240px instead of 200px), otherwise a word
   wider than the column ("collaborateurs") overflows to the right instead of being centred */
.quart.pictoChiffres .txt:has(> :is(h1,h2,h3,h4)){
margin:0 -20px;
}
.quart.pictoChiffres .txt strong{
font-size:2.6em;
font-weight:800;
line-height:1;
}
.quart.pictoChiffres:hover .img2{
transform:scale(1.1);
}

.squarelinks .none{ 
padding:0;
}

.cinquieme{
width: calc(20% - 20px);
vertical-align:top;
margin:10px 0;
transition:all ease 0.5s;
position:relative;
}

/* plain squarelinks items (no picto* class): fill 100% of the row */
.squarelinks:has(> :is(.demi,.tiers,.quart,.cinquieme):not([class*="picto"])){
--sqGap:40px;
column-gap:var(--sqGap);
}
.squarelinks > :is(.demi,.tiers,.quart,.cinquieme):not([class*="picto"]){
margin-left:0;
margin-right:0;
box-sizing:border-box;
}
.squarelinks > .demi:not([class*="picto"]){width:calc((100% - var(--sqGap)) / 2);}
.squarelinks > .tiers:not([class*="picto"]){width:calc((100% - 2 * var(--sqGap)) / 3);}
.squarelinks > .quart:not([class*="picto"]){width:calc((100% - 3 * var(--sqGap)) / 4);}
.squarelinks > .cinquieme:not([class*="picto"]){width:calc((100% - 4 * var(--sqGap)) / 5);}

/* tableau */
/* numeric columns: everything but the first */
/* title row (single spanned cell) */
/* label row (HT / TTC) */

.page .demi .bloc,
.page .tiers .bloc,
.page .quart .bloc,
.page .cinquieme .bloc{
display:inline-block;
}
.page .tiers .img2,
.page .quart .img2,
.page .cinquieme .img2{
margin-bottom:15px!important;	
}
.page .demi .img2{
width:calc(100% - 60px);
margin-bottom:0px;
}
.page .demi .img2 img{
object-fit:contain;		
}

.txt ul,
.txt ol{
	list-style-type:none;
	padding-left:0;
	margin-bottom:20px;
}

.txt ol{
	counter-reset: txtol;
}

/* on cible uniquement les enfants DIRECTS, pas tous les descendants */
.txt ul > li,
.txt ol > li{
	margin-bottom:5px;	
	padding-left:1.5em;
	position:relative;
}
.txt ul.diaporama > li{
	padding-left:0;	
}

.txt ol > li{
	counter-increment: txtol;
}

.txt ul > li:before{
	content:'';
	position:absolute;
	top:7px;
	left:8px;	
	width:8px;
	height:8px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='3' cy='3' r='3' fill='%23004c88'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 10px 10px;
	display:block;
}
.txt ul.diaporama > li:before{
display:none;
}

.txt ol > li:before{
	content: counter(txtol)".";
	position:absolute;
	top:0;
	left:0px;
	width:1.5em;
	text-align:right;
	padding-right:0.3em;
	box-sizing:border-box;
}

.page:not(:has(h5)) a{
color:var(--bleu2);
text-decoration:none;
position:relative;
}
.page:not(:has(h5)) a::after{
position:absolute;
content:'';
display:block;
width:120%;
bottom:-5px;
left:-10%;
height:1px;
background:linear-gradient(to right, #ffffff00, var(--bleu2), #ffffff00);

}
.page:not(:has(h5)) a:hover{
color:#ca4848;
text-decoration:none;
position:relative;
}
.page:not(:has(h5)) a:hover::after{
height:1px;
background:linear-gradient(to right, #ffffff00, #ca4848, #ffffff00);   
}
.tiers .img2{
width:100%;
margin-bottom:12px;
border-radius:16px;
height:220px;
overflow:hidden;
transition:all ease 0.5s;    
}
.tiers .img2 img{
transition:all ease 0.5s;    
object-fit:cover;
object-position:center;
}
.tiers:hover .img2 img{
transform:scale(105%);
}

p a{
color:inherit;
text-decoration:none;
}

/* compteur (class chosen in the admin, js/agropack.js): the first number of the block counts from 0
   when the block appears ; tabular digits so the text moves less while counting */
.compteur .txt{
font-variant-numeric:tabular-nums;
}

/* breadcrumb (index.php), just before the first title: takes the colour and alignment of its block.
   Cancels the numbered list (.txt ol) and the content link decoration (.page:not(:has(h5)) a) */
.page .breadcrumb{
margin:0 0 10px;
}
.page .breadcrumb ol{
margin:0;
padding:0;
list-style:none;
}
.page .breadcrumb li{
display:inline;
margin:0;
padding:0;
font-size:.85rem;
line-height:1.5;
font-weight:500;
}
.page .breadcrumb li::before{
content:none;
}
.page .breadcrumb li + li::before{
content:"›";
position:static;
display:inline;
width:auto;
padding:0;
margin:0 .45em;
}
.page .breadcrumb a{
color:inherit;
font-size:inherit;
font-weight:inherit;
text-decoration:none;
position:static;
}
.page .breadcrumb a::after{
content:none;
}
.page .breadcrumb a:hover{
color:inherit;
text-decoration:underline;
}
.page .breadcrumb [aria-current]{
opacity:.7;
}
.page .breadcrumbSeul{
max-width:1280px;
margin:0 auto;
padding:30px 20px;
}

/* standard */

.colorDark *{
color:var(--text);	
}
.colorDark h5 a:hover{
color:var(--text);	
border-color:var(--text);	
}

.colorBright *{
color:var(--blanc);	
}
.colorBright h5 a:hover{
color:var(--blanc);	
border-color:var(--blanc);	
}

.none{
position: relative;
}

.groupe{
z-index:5;
position: relative;
padding:30px 0;
width:100%;
}

/* sawtooth top/bottom mask on a group, fixed-size tile repeated on X */
/* sawtooth variables, shared by every .masqueDentsDeScie variant */
.masqueDentsDeScie{
--vague:70px;   /* tooth height */
--dent:1440px;  /* tooth width (tile) */
--dentHaut:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 35L320 3.9Q360 0 400 3.8L1040 65.2Q1080 69 1120 65.2L1440 35V70H0Z' fill='%23000'/%3E%3C/svg%3E");
--dentBas:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 35L320 3.9Q360 0 400 3.8L1040 65.2Q1080 69 1120 65.2L1440 35V0H0Z' fill='%23000'/%3E%3C/svg%3E");
}

.groupe.masqueDentsDeScie{
padding:calc(var(--vague) + 30px) 0;
overflow:hidden;
-webkit-mask:
var(--dentHaut) left top / var(--dent) var(--vague) repeat-x,
linear-gradient(#000,#000) center / 100% calc(100% - 2 * var(--vague) + 2px) no-repeat,
var(--dentBas) left bottom / var(--dent) var(--vague) repeat-x;
mask:
var(--dentHaut) left top / var(--dent) var(--vague) repeat-x,
linear-gradient(#000,#000) center / 100% calc(100% - 2 * var(--vague) + 2px) no-repeat,
var(--dentBas) left bottom / var(--dent) var(--vague) repeat-x;
}
/* child .background used as a fixed (parallax-like) cover image */
.masqueDentsDeScie > .background{
position:absolute;
inset:0;
z-index:0;
clip-path:inset(0); /* clips the fixed image to the group's box */
}
.masqueDentsDeScie > .background picture{
display:block;
}
.masqueDentsDeScie > .background img{
position:fixed;
top:0;
left:0;
width:100%;
height:100vh;
object-fit:cover;
}
/* keep content above the background */
.masqueDentsDeScie > :not(.background){
position:relative;
z-index:1;
}

.imgCover .img2 img{
object-fit:cover!important;
object-position:center center!important;
}
.imgContain .img2 img{
object-fit:contain!important;
object-position:center center!important;
}
/* Same skew as the clipped edges */

/* Bottom-right bar: mirrored, from (1 - --bar-len) down to the bottom */

/* realisations */

/* Title block: full width, stays out of the grid */

/* Cards */

/* Image fills the card at a fixed ratio */

/* Badge, hidden while the text is showing */

/* Sliding panel */

.complet:has(.img2),
.gauche:has(.img2),
.droite:has(.img2){
display:flex;
max-width:1280px;
}

.complet .img2{
min-height:280px;
}
.page .complet.article_intro{
  align-items:stretch;               /* in case an align-items:center is inherited */
  margin-bottom:30px;
}
.page .complet.article_intro > .img2{
  align-self:stretch;
  flex:1 1 auto;
  position:relative;                 /* required for the absolute img */
  height:auto;
  min-height:0;                      /* neutralises the 480px */
  max-height:none;
  overflow:hidden;
margin-top:10px;
}
.page .complet.article_intro > .img2 picture{
  display:contents;                  /* <picture> no longer counts as a box */
}
.page .complet.article_intro > .img2 img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover; 
  border-radius:16px;
}
/* article_intro variant: full-width background image, sawtooth at the bottom only */
.page .complet.article_intro.masqueDentsDeScie{
max-width:none;
position:relative;
justify-content:flex-end;
align-items:flex-start;
/* side padding keeps the text aligned on the 1280px grid */
padding:60px max(30px, calc((100% - 1280px) / 2)) calc(var(--vague) + 60px);
-webkit-mask:
linear-gradient(#000,#000) top / 100% calc(100% - var(--vague) + 2px) no-repeat,
var(--dentBas) left bottom / var(--dent) var(--vague) repeat-x;
mask:
linear-gradient(#000,#000) top / 100% calc(100% - var(--vague) + 2px) no-repeat,
var(--dentBas) left bottom / var(--dent) var(--vague) repeat-x;
}
/* image fills the whole block */
.page .complet.article_intro.masqueDentsDeScie > .img2{
position:absolute;
inset:0;
z-index:0;
max-height:none;
aspect-ratio:auto;
width:100%;
}
.page .complet.article_intro.masqueDentsDeScie > .img2 img{
border-radius:0;
object-fit:cover!important;
}
/* semi-transparent text box, right half */
.page .complet.article_intro.masqueDentsDeScie .txt{
position:relative;
z-index:1;
width:50%;
padding:30px;
background:rgb(255 255 255 / .8);
border-radius:16px;
align-self:center;
}
/* no intro arrows on this variant */
.none:has(> .article_intro.masqueDentsDeScie)::before,
.none:has(> .article_intro.masqueDentsDeScie)::after{
display:none;
}

/* Intro arrows */
:root{
--flecheIntroGauche:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 401.03 579.17'%3E%3Cpath d='M318.13 156.36 0 0V203.77l183.47 85.34L0 374.79V579.17L318.21 422.55A148.32 148.32 0 0 0 401 289.48h0A148.32 148.32 0 0 0 318.13 156.36Z' fill='%23bfdee9' opacity='.55'/%3E%3C/svg%3E");
--flecheIntroDroite:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 369.66 437.83'%3E%3Cpath d='M87.41 218.65 369.66 350.47v87.36L33.27 272.26A59.58 59.58 0 0 1 0 218.8H0a59.6 59.6 0 0 1 33.3-53.48L369.66 0V87.36Z' fill='%23e5f2f6'/%3E%3C/svg%3E");
--flecheIntroH:clamp(280px, 25vw, 520px); /* left arrow height = min height of the intro */
}
.none:has(> .article_intro){
position:relative;
z-index:0; /* own stacking context : arrows can't go above the following blocks */
overflow-x:clip; /* no horizontal scroll, unlike overflow:hidden it creates no scroll container */
}
/* Following blocks stay above the intro arrows (parallax moves them down) */
.none:has(> .article_intro) ~ *{
position:relative;
z-index:1;
}
.none:has(> .article_intro)::before,
.none:has(> .article_intro)::after{
content:"";
position:absolute;
top:50%;
translate:0 -50%;
background:no-repeat center / contain;
pointer-events:none;
z-index:2;
}
/* Left arrow: overlaps the left edge of the photo */
.none:has(> .article_intro)::before{
left:0;
height:var(--flecheIntroH); /* fixed size : must not follow the block height (accordions) */
aspect-ratio:401.03 / 579.17;
background-image:var(--flecheIntroGauche);
}
/* Right arrow: sits behind the text, against the right edge */
.none:has(> .article_intro)::after{
right:0;
height:clamp(200px, 16vw, 340px);
aspect-ratio:369.66 / 437.83;
z-index:0;
background-image:var(--flecheIntroDroite);
}
/* Product page : left arrow goes behind the content (readability) */
.page_produit .none:has(> .article_intro)::before{
z-index:0;
}
/* Product page : arrows only on the intro with photo, not on text-only article_intro blocks */
.page_produit .none:has(> .article_intro > .txt.noMedia)::before,
.page_produit .none:has(> .article_intro > .txt.noMedia)::after{
display:none;
}
.page_produit .complet.article_intro:has(> .txt.noMedia){
min-height:0;
}
.article_intro{
position:relative;
z-index:1;
}
/* Intro without photo : arrows behind the text */
.none:has(> .article_intro > .txt.noMedia)::before{
z-index:0;
}
/* Minimum height so the arrows are not cut */
.page .complet.article_intro{
min-height:var(--flecheIntroH);
}
.page .complet.article_intro:has(> .txt.noMedia){
align-items:center;
}
.article_intro > .img2{
position:relative;
}

@supports (animation-timeline: scroll()){
@media (prefers-reduced-motion: no-preference){
.none:has(> .article_intro)::before,
.none:has(> .article_intro)::after{
animation:flecheParallax linear both;
animation-timeline:scroll();
animation-range:0 100vh;
}
.none:has(> .article_intro)::before{ --decal:600px; }
.none:has(> .article_intro)::after{ --decal:-400px; }
}
}

@keyframes flecheParallax{
from{ translate:0 -50%; }
to{ translate:0 calc(-50% + var(--decal)); }
}

/* PAGE PRODUIT : intro (text left, photo center, thumbnails right) */
.page_produit .complet.article_intro{
margin-top:2px;	
}
.page_produit .complet.article_intro:has(> .img2){
--thumbW:150px;
--thumbGap:24px;
--introH:clamp(320px, 36vw, 640px);
--dpArrow:28px;
position:relative;
gap:24px;
padding-right:calc(var(--thumbW) + var(--thumbGap));
align-items:stretch;
}
/* Text column on the left (img2 comes first in the DOM) */
.page_produit .complet.article_intro:has(> .img2) > .txt{
order:-1;
flex:0 0 38%;
width:auto;
padding:0;
align-content:start;
position:static;
}
/* Main photo : fixed height, framed, whole machine visible */
.page_produit .complet.article_intro:has(> .img2) > .img2{
flex:1 1 auto;
width:auto;
align-self:flex-start;
height:var(--introH);
min-height:0;
margin-top:0;
background:#fff;
border:2px solid var(--bleu);
border-radius:16px;
}
.page_produit .complet.article_intro:has(> .img2) > .img2 img{
object-fit:contain;
object-position:center;
padding:20px;
box-sizing:border-box;
border-radius:0;
}
/* Thumbnails : vertical column on the right, between the two arrows */
.page_produit .complet.article_intro:has(> .img2) .txt ul.diaporama.produit{
position:absolute;
top:calc(var(--dpArrow) + 8px);
right:0;
width:var(--thumbW);
height:auto;
max-height:calc(var(--introH) - 2 * (var(--dpArrow) + 8px));
margin:0;
padding:0;
flex-direction:column;
flex-wrap:nowrap;
justify-content:flex-start;
gap:12px;
overflow-y:auto;
scroll-snap-type:y mandatory;
scroll-behavior:smooth;
scrollbar-width:none;
}
.page_produit .complet.article_intro:has(> .img2) .txt ul.diaporama.produit::-webkit-scrollbar{
display:none;
}
.page_produit .txt ul.diaporama.produit > li{
flex:0 0 auto;
width:100%;
height:auto;
aspect-ratio:1;
border:2px solid var(--bleu);
scroll-snap-align:start;
}
.page_produit .txt ul.diaporama.produit > li:hover{
border:2px solid var(--rouge);
}
.page_produit .txt ul.diaporama.produit a,
.page_produit .txt ul.diaporama.produit picture{
display:block;
width:100%;
height:100%;
}
.page_produit .txt ul.diaporama.produit img{
width:100%;
}
/* Scroll arrows (injected by diaporama-produit.js) */
.page_produit .dp-arrow{
position:absolute;
right:0;
width:var(--thumbW);
height:var(--dpArrow);
padding:0;
border:0;
background:none;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
}
.page_produit .dp-arrow::before{
content:'';
border-left:12px solid transparent;
border-right:12px solid transparent;
}
.page_produit .dp-prev{ top:0; }
.page_produit .dp-prev::before{ border-bottom:12px solid var(--bleu); }
.page_produit .dp-next{ top:calc(var(--dpArrow) + 8px + var(--dpListH, 0px) + 8px); }
.page_produit .dp-next::before{ border-top:12px solid var(--bleu); }
.page_produit .dp-prev:hover::before{ border-bottom-color:var(--rouge); }
.page_produit .dp-next:hover::before{ border-top-color:var(--rouge); }
.page_produit .dp-arrow:disabled{ opacity:.25; cursor:default; }
/* Red bullets on the product text */
.page_produit .article_intro .txt ul:not(.diaporama) > li:before{
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='3' cy='3' r='3' fill='%23D54550'/%3E%3C/svg%3E");
}
/* Accordions : pill outline, red arrow */
.page_produit .article_intro .accordeon{
border:2px solid var(--bleu);
border-radius:1em;
padding:8px 16px;
margin-bottom:10px;
}
.page_produit .article_intro .accordeon h2{
font-size:1.1em;
margin:0;
}
.page_produit .article_intro .accordeon .accordeon-toggle::after{
background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.16 23.35'%3E%3Cpolygon points='0 23.35 0 0 17.16 11.68 0 23.35' fill='%23D54550'/%3E%3C/svg%3E");
}

.droite .img2{
min-height:280px;
}
.gauche .img2{
max-height:320px;
}

/* complet > fond bleu+pics arrondis*/
.none .fondBleu{
width:100%;
text-align:center;	
display:flex;
flex-wrap:wrap;
gap: 40px;
padding:20px 0;
max-width:960px;
}
.none .fondBleu .txt{
border-radius:16px;
text-align:left;
box-sizing:border-box;
display:block;
align-content:center;
align-items:center;
margin:auto;
flex:1;
}
.none .fondBleu .img2{
flex:1;
margin:30px 0;
background:none;
border-radius:16px;
overflow:hidden;
box-shadow:4px 4px 16px rgb(37 25 61);
}
.none .fondBleu .img2 img{
object-fit:cover!important;	
}

/* droite */
.gauche .bloc .none,
.droite .bloc .none{
text-align:center;	
display:flex;
flex-wrap:wrap;
gap: 40px;
padding:20px 0;
width:100%;
direction:ltr;
margin:auto;
}
.droite .bloc .none{
direction:rtl;
}
.gauche .bloc .none .txt,
.droite .bloc .none .txt{
border-radius:16px;
text-align:left;
box-sizing:border-box;
display:block;
align-content:center;
align-items:center;
margin:auto;
flex:1;
padding:20px;
direction:ltr;
}
.gauche .bloc .none .img2,
.droite .bloc .none .img2{
flex:1;
margin:30px 0;
background:none;
border-radius:16px;
overflow:hidden;
min-height:240px;
}
.gauche .bloc .none .img2 img,
.droite .bloc .none .img2 img{
object-fit:cover!important;	
}

/* actualites */

/* agenda */
.agenda{
width:100%;
text-align:center;
}

/* Layout */
.complet .txt{
    width:50%;
    padding:50px;
    direction:ltr;
    align-content:center;
}

/* Animation only if the parent does NOT have .noAnim */
.complet:not(.noAnim) .txt{
	position:relative;
}
.gauche:not(:has(.img2)) .txt,
.droite:not(:has(.img2)) .txt{
max-width:1280px;
margin:auto;	
}
.gauche:has(.img2) .txt{
width:50%;
padding:50px;
direction:ltr;
align-content:center;
}

.droite:has(.img2) .txt{
width:50%;
padding:50px;
direction:ltr;
align-content:center;
border-radius:1em;
}

.droite,
.gauche{
    width:100%;
    max-width:1280px;
    margin:auto;
    position:relative;
    align-content:center;
    z-index:2;
}

/* resume */

.bloc{
position:relative;
display:flex;
margin:auto;
align-items:center;
width:100%;
}

.complet .img2,
.gauche .img2,
.droite .img2{
width:50%;
position:relative;
object-fit:contain;
align-content:center;
}
.complet .img2 svg,
.gauche .img2 svg,
.droite .img2 svg{
max-height:240px;
object-fit:contain;
}
.complet .img2 picture,
.gauche .img2 picture,
.droite .img2 picture{
position:absolute;
inset:0;
width:100%;
height:100%;
overflow:hidden;
}
.complet img,
.gauche img,
.droite img{
width:100%;
height:100%;
object-fit:cover;

}
.download{
display:block;
}
.download .elem{
display:block;
margin:10px 0;	
}
.download .elem a{
background:white;
transition:all ease .5s;
text-decoration:none;
padding:10px 20px 10px 48px;
border-radius:2em;
font-weight:500;
position:relative;
background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 25 25' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12.5' cy='12.5' fill='%2300cda6' r='12.5'/%3E%3Cg fill='%23153f55'%3E%3Cpath d='m16.58 20.36h-8.16a2.1 2.1 0 0 1 -2.1-2.1v-11.52a2.1 2.1 0 0 1 2.1-2.1h6.46a2 2 0 0 1 1.43.59l1.78 1.77a2 2 0 0 1 .59 1.43v9.82a2.1 2.1 0 0 1 -2.1 2.11zm-8.16-14.72a1.1 1.1 0 0 0 -1.1 1.1v11.52a1.1 1.1 0 0 0 1.1 1.1h8.16a1.1 1.1 0 0 0 1.1-1.1v-9.82a1 1 0 0 0 -.3-.72l-1.78-1.78a1 1 0 0 0 -.72-.3z'/%3E%3Cpath d='m17.13 9.36h-1.42a1.75 1.75 0 0 1 -1.71-1.75v-1.42h1v1.42a.74.74 0 0 0 .75.75h1.42z'/%3E%3C/g%3E%3C/svg%3E");
background-repeat:no-repeat;
background-position:8px;
background-size:26px 26px;
}

.tiers:hover{
background:white;
transform:translateY(-10px);
}
.page .tiers:hover{
background:none;
transform:none;	
}
.page .tiers:not(:has(h5)) {
padding: 10px;
}
.article_intro:has(.txt.noMedia){
padding:0;	
}

h1,
h2{
font-optical-sizing: auto;
font-style: normal;
line-height:1.1em;
margin-bottom:10px;
} 
h3{
line-height:1.1em;
margin-bottom:5px;
font-weight:800;
} 
h4,
h5{
line-height:1.2em;
margin-bottom:10px;
font-weight:700;
} 
h1{
font-size:2.2em;
font-weight:800;
color:var(--bleu);
}
h2{
font-size:2em; 
font-weight:700;
color:var(--bleu);
}
.fondBleu h2{
color:white;
}

.puceAgropack h2{
display:flex;
align-items:center;
}
.puceAgropack h2::before{
content:'';
flex:0 0 40px; /* keep the icon from shrinking on long titles */
width:40px;
height:40px;
margin-right:8px;
background-repeat:no-repeat;
background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='30' fill='%23d54550'/%3E%3Cpath d='M16.86 44.84H8.14l17.3-13A7.52 7.52 0 0 1 30 30.36h0a7.6 7.6 0 0 1 4.55 1.51l17.33 13H43.14L30.66 36.22a1.2 1.2 0 0 0-1.37 0Z' fill='%23264275'/%3E%3Cpath d='M16.86 44.84H8.14L24.65 11.25A6 6 0 0 1 30 7.93h0a5.94 5.94 0 0 1 5.34 3.32L51.86 44.84H43.14L30 16.66Z' fill='%23fff'/%3E%3C/svg%3E");
background-size:contain;
background-position:center;
}

h3{
color:var(--rouge);
font-size:1.3em; 
}
h4{
font-size:1.2em; 
font-weight:900;
margin-bottom:5px;
color:var(--rouge);
}
p{
margin-bottom:10px;	
}

.puceAgropack h3,
.puceAgropack h4,
.puceAgropack h5,
.puceAgropack p,
.puceAgropack li{
margin-left:48px;
}

p strong,
li strong{
font-weight:800; 
}
h5{
transition:all ease 0.5s;
display:inline-block;
margin:10px 15px 0 0;
}
h5:hover,
.picto:hover h5,
.pictoClic:hover h5{
filter:drop-shadow(0px 4px 12px #2f63b74a);	
}
h5 a{
display:inline-block;
color:white;
padding:6px 16px;
text-decoration:none;
font-size:1em;
margin:5px 0;
font-weight:800;
transition:all ease 0.3s;
border:1px solid var(--rouge);
border-radius:100em;
background:var(--rouge);
position:relative;
}
h5 a:hover{
transform:translateX(6px);
border:1px solid var(--bleu);
background:var(--bleu);
color:white;
}

.lightbox{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:#042543f2;}
.lightbox.open{display:flex}
.lightbox figure{margin:0;max-width:90vw;max-height:90vh;text-align:center}
.lightbox img{max-width:90vw;max-height:85vh;object-fit:contain}
.lightbox figcaption{color:#fff;margin-top:.5em}
.lightbox button{position:absolute;background:none;border:0;color:#fff;font-size:3rem;cursor:pointer;padding:1rem}
.lb-close{top:0;right:0}
.lb-prev{left:0;top:50%;transform:translateY(-50%)}
.lb-next{right:0;top:50%;transform:translateY(-50%)}

.diaporama{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:15px;
padding:15px;
}
.diaporama li{
list-style-type:none!important;
padding:0;
margin:0;	
}
.diaporama li::before{
content:none;
display:none;	
}
.diaporama li{
width:160px;
height:160px;
align-content:center;
overflow:hidden;
object-fit:cover;
border:1px solid var(--bleu3);
border-radius:8px;
transition:all ease .5s;	
}
.diaporama li img{
transition:all ease .5s;	
height:100%;
object-fit:cover;
}
.diaporama li:hover{
border:1px solid var(--bleu);	
}
.diaporama li:hover img{
transform:scale(1.1);
}

.pictoCertification .diaporama{
display:flex;
flex-wrap:wrap;
justify-content:center;
align-items:center;
gap:5px;
padding:30px 0 0 0;
width:70%;
}
.pictoCertification .diaporama li picture{
display:contents;
}
.pictoCertification .diaporama li{
width:90px;
height:50px;
border:none;
margin:0;
display:flex;
align-items:center;
justify-content:center;
}
.pictoCertification .diaporama li a{
display:flex;
align-items:center;
justify-content:center;
width:100%;
height:100%;
}
.pictoCertification .diaporama li img{
width:auto;
height:auto;
max-width:100%;
max-height:100%;
object-fit:contain;
}
/* Pastilles */ 

/*accordeon */
.accordeon{
background:var(--blanc);
margin-bottom:7px;
padding:10px;
border-radius:1em;  
box-sizing:border-box;
}
.accordeon p{
color:var(--text)!important;
font-size:95%;	
}
.accordeon h3{
color:var(--bleu);
font-size:1em;	
}
.accordeon p:last-child {
margin-bottom:0;	
}

.accordeon .accordeon-toggle{
cursor:pointer;
margin-bottom:0;   
position:relative;
padding-right:30px;
line-height:1em; 
position:relative;
transition:all ease .3s;
}

.accordeon .accordeon-toggle::after {
background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.16 23.35'%3E%3Cpolygon points='0 23.35 0 0 17.16 11.68 0 23.35' fill='%23264275'/%3E%3C/svg%3E");    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 20px;
    height: 20px;
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: -0px;
    transition: all ease .5s;
    transform: translateY(-50%)
}

.accordeon .accordeon-toggle.open::after,.accordeon .accordeon-toggle:hover::after {
background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.16 23.35'%3E%3Cpolygon points='0 23.35 0 0 17.16 11.68 0 23.35' fill='%23D54550'/%3E%3C/svg%3E");    background-repeat: no-repeat;
    background-repeat: no-repeat;
    transform: translateY(-50%) rotate(90deg)
}
.accordeon .accordeon-toggle:hover{
color:var(--rouge)!important;	
}
.accordeon .accordeon-toggle.open{
color:var(--rouge)!important;
}
.accordeon .accordeon-content{
display: none; 
padding:0 30px 0px 0px;
}
.accordeon .accordeon-content *{
color:var(--text);	
}
.accordeon .accordeon-content[style*="display: block"]{
padding-top:.5em;	
}
.accordeon .accordeon:has(> .accordeon-toggle){
background-color:#eef3fa;
}
.accordeon .accordeon .accordeon:has(> .accordeon-toggle){
background-color:#dde9f7;
}

/* partenaires */
.diaporama li:hover img{transform:none}

#backToTop{
position:fixed;
bottom:55px;
right:20px;
width:35px;
height:35px;
z-index:999;
cursor:pointer;
background-image: url("data:image/svg+xml,%3Csvg height='26.5' viewBox='0 0 26.5 26.5' width='26.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m22.97 0h-19.44c-1.95 0-3.53 1.58-3.53 3.53v19.43c0 1.95 1.58 3.53 3.53 3.53h19.43c1.95 0 3.53-1.58 3.53-3.53v-19.43c0-1.95-1.58-3.53-3.53-3.53zm-5.96 13.2v9.39h-7.52v-9.39h-5.54l9.3-9.3 9.3 9.3z' fill='%23D54550'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: contain;
}
#backToTop img{
display:none;   
}
#backToTop:hover{
opacity:.8;    
}

/* Sawtooth group with neither photo nor colour: its top teeth are white on white (invisible),
   so no room and no mask for them (it only left a big empty white band) ; bottom teeth only when
   they meet the footer (last group, blue teeth drawn by ::after below) ; empty group = teeth only */
.page > .groupe.masqueDentsDeScie:not(.bkgColor):not(:has(> .background)){
padding-top:30px !important;
-webkit-mask:
linear-gradient(#000,#000) top / 100% calc(100% - var(--vague) + 2px) no-repeat,
var(--dentBas) left bottom / var(--dent) var(--vague) repeat-x;
mask:
linear-gradient(#000,#000) top / 100% calc(100% - var(--vague) + 2px) no-repeat,
var(--dentBas) left bottom / var(--dent) var(--vague) repeat-x;
}
.page > .groupe.masqueDentsDeScie:not(.bkgColor):not(:has(> .background)):not(:last-of-type){
padding-bottom:30px !important;
-webkit-mask:none;
mask:none;
}
.page > .groupe.masqueDentsDeScie:not(.bkgColor):not(:has(> .background)):last-of-type{
-webkit-mask:none;
mask:none;
}
.page > .groupe.masqueDentsDeScie:not(.bkgColor):not(:has(> .background)):empty{
padding:0 0 var(--vague) !important;
}

/* last sawtooth group before footer: fill bottom teeth with footer blue */
.page > .groupe.masqueDentsDeScie:last-of-type{
-webkit-mask:
var(--dentHaut) left top / var(--dent) var(--vague) repeat-x,
linear-gradient(#000,#000) bottom / 100% calc(100% - var(--vague) + 2px) no-repeat;
mask:
var(--dentHaut) left top / var(--dent) var(--vague) repeat-x,
linear-gradient(#000,#000) bottom / 100% calc(100% - var(--vague) + 2px) no-repeat;
}
.page > .groupe.masqueDentsDeScie:last-of-type::after{
content:'';
position:absolute;
left:0;
right:0;
bottom:0;
height:var(--vague);
z-index:2;
background:var(--bleu);
-webkit-mask:var(--dentHaut) left top / var(--dent) var(--vague) repeat-x;
mask:var(--dentHaut) left top / var(--dent) var(--vague) repeat-x;
}

footer{
padding-top:30px;
background:var(--bleu);
}
#footer{
padding:30px;
text-align:center;
position:relative;
display:flex;
max-width:1280px;
}
#footer{
align-items:center;
}
#footer .col1{
flex:1 1 auto;
display:grid;
grid-template-columns:220px 1fr;
column-gap:40px;
row-gap:20px;
align-items:center;
font-size:.8em;
}
#footer .col2{
flex:0 0 200px;
margin-left:auto;
}
#footer .col1 > *{
flex:none;
}
#footer h3{
color:var(--bleu2);
font-size:1.7em;
font-weight:700;	
}
#footer h3 a{
color:var(--bleu2);
font-size:inherit;
font-weight:inherit;	
}

/* Logo: small, left column */
#footer .col1 .img2{
width:200px;
flex:none;
}
#footer .col1 .img2 img,
#footer .col1 .img2 svg{
width:100%;
height:auto;
display:block;
}
/* Tagline next to the logo */
#footer .slogan{
font-size:1.6em;
font-weight:800;
margin:0;
}
#footer .infos{
align-self:start;
}
#footer .infos p{
margin:0;
}
#footer .col2 .img2 img{
border-radius:16px;
}

#footer *{
color:white;
text-align:left;	
}
#footer a{
text-decoration:none;	
}
#footer a:hover{
color:var(--bleu2);	
}

/* Sitemap: 2 columns, no bullets */
#footer .liens{
align-self:start;
padding:0;	
}
#footer .liens > ul{
columns:2;
column-gap:30px;
margin:0;
padding:0;
}
#footer .liens > ul > li{
break-inside:avoid;
}
#footer .liens ul{
margin:0;
padding:0;
}
#footer .liens li{
list-style-type:none;
margin:0 0 6px 0;
}
#footer .liens li a{
font-weight:600!important;	
}
#footer .liens li li{
margin:0;
list-style-type:none;
}
#footer .liens li li::before{
content:'· ';
}
#footer .liens li li a{
font-weight:400!important;
}
/* Hide third level (products) */
#footer .liens li li ul{
display:none;
}
.lastLinks{
display:block;
padding:15px 0;
list-style-type:none;
text-align:center;
	
}
.lastLinks a{
color:var(--blanc);
font-size:0.8em;
opacity:.8;
}

/* social */
#footer .social{
display:flex;
align-items:center;
margin-top:10px;
}
#footer .social a{
display:block;
width:32px;
height:32px;
border:none;
padding:0;
margin:0 8px 0 0;
}
#footer .social a:hover{
transform:none;  
}
#footer .social a svg{    
fill:var(--blanc);
display:block;
}
#footer .social a:hover svg{    
fill:var(--bleu2);
}

/* ==========================================================
   RESPONSIVE
   All breakpoints live here - no @media elsewhere in the file
   ========================================================== */

/* ---------- Reduced motion: global, not tied to a width ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================
   <= 960px : tablet - everything stacks
   ========================================================== */
@media screen and (max-width: 960px) {

  /* --- Global --- */
  #corps {
    overflow-x: clip;
    background-attachment: scroll; /* fixed backgrounds are broken on iOS */
  }
  .none:has(.FAQ) {
    background-attachment: scroll;
  }

  /* Kill scroll-driven animations */
  .complet:not(.noAnim) .txt,
  .complet .img2,
  .gauche:has(.img2) .txt,
  .gauche .img2,
  .droite:has(.img2) .txt,
  .droite .img2,
  #corps .fullBkgImage .txt {
    animation: none !important;
    animation-timeline: auto !important;
    animation-range: initial !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
  }

  .none .fondBleu {
    padding: 0;
  }
  .page .complet .max { padding: 0 !important; }
  .squarelinks {
    margin: 0 auto;
  }

  h1 { font-size: 2em; }
  h2 { font-size: 1.6em; }
  h3 { font-size: 1.2em; }
  h4 { font-size: 1.6em; }

  /* --- Header: intro + slideshow --- */

  /* --- Section spacing --- */
  .none,
  .groupe {
    position: relative;
    padding: 0 0 30px 0 !important;
    margin-bottom: 30px;
  }
  .none:has(.complet),
  .groupe:has(.complet),
  .none:has(.fullBkgImage),
  .groupe:has(.fullBkgImage) {
    padding: 0 !important;
    margin-bottom: 0;
  }
  .none:has(+ .squarelinks),
  .groupe:has(.squarelinks) {
    margin-top: 0;
    padding-bottom: 0 !important;
  }
  .groupe:has(.none) .none {
    margin-top: 0 !important;
    margin-bottom: 0;
  }
  /* breadcrumb: too small to be tapped on touch screens */
  .page .breadcrumb,
  .page .breadcrumbSeul { display: none; }

  /* colourless sawtooth group (Nos valeurs): no extra white above its first block, a bit more room under each block */
  .page > .groupe.masqueDentsDeScie:not(.bkgColor):not(:has(> .background)) { padding-top: 0 !important; }
  .page > .groupe.masqueDentsDeScie:not(.bkgColor):not(:has(> .background)) > .squarelinks > * { margin-top: 0; margin-bottom: 45px; }

  /* sawtooth groups: keep room for the top and bottom teeth (titles and buttons were cut) */
  .groupe.masqueDentsDeScie {
    padding-top: calc(var(--vague) + 20px) !important;
    padding-bottom: calc(var(--vague) + 20px) !important;
  }
  .bkgColor { margin-bottom: 0 !important; }
  .bkgColor > .squarelinks { margin: 0 !important; }
  [class~="fadeTop"] + div { margin-top: 0 !important; }
  .none:has(.noPadding) .txt { padding: 0 !important; }

  /* --- Two-column blocks stack (image first) --- */
  .page .complet:not(:has(.widgetPortfolio, .formulaire, .temoignages, .carousel)),
  .complet:has(.img2),
  .gauche:has(.img2),
  .droite:has(.img2),
  .bloc {
    flex-direction: column;
    direction: ltr;
  }
  .bloc .img2 { order: -1; }

  .page .complet .img2,
  .page .complet .txt,
  .page .complet .max .txt,
  .complet .img2,
  .gauche .img2,
  .droite .img2,
  .gauche:has(.img2) .txt,
  .droite:has(.img2) .txt {
    width: 100% !important;
    height: auto;
  }

  /* article_intro: the absolute <img> needs a box once stacked */
  .page .complet.article_intro > .img2 {
    aspect-ratio: 16 / 9;
    min-height: 240px;
    max-height: 400px;
  }
  .page .complet.article_intro.imgContain > .img2 img {
    object-fit: contain !important;
  }

  .complet .txt,
  .gauche .txt,
  .droite .txt {
    padding: 30px !important;
  }
  .page .complet .max { padding: 30px 20px; }
  .page .txt.noMedia { padding: 0; }
  .page .tiers{padding: 0px!important;}
  /* wall cards (murelements): the photo gets the same 20px margin as the text, small gap photo -> text */
  .page .murelements .squarelinks > * { padding: 20px !important; }
  .page .murelements .bloc .txt { padding: 0 !important; }
  .page .murelements .bloc .img2 { margin-bottom: 12px !important; }

  /* fullBkgImage */
  .fullBkgImage {
    padding: 0;
    display: block;
    min-height: auto;
  }
  .fullBkgImage > .fullBkg,
  .fullBkg {
    position: relative;
    display: block !important;
    height: 100%;
  }

  /* fondBleu / gauche / droite inner blocks */
  .none .fondBleu,
  .gauche .bloc .none,
  .droite .bloc .none {
    flex-direction: column;
    direction: ltr;
    gap: 20px;
  }
  .none .fondBleu .img2,
  .gauche .bloc .none .img2,
  .droite .bloc .none .img2 {
    width: 100%;
    margin: 0;
  }
  /* left/right articles: photo aligned on the text below (same side margins as its padding), rounded */
  .gauche .bloc .none .img2,
  .droite .bloc .none .img2 {
    width: auto !important;
    margin: 0 30px;
    border-radius: 16px;
    overflow: hidden;
  }
  .none:has(.fondBleu)::after { display: none; }

  /* --- Grids --- */
  .squarelinks {
    padding: 0 30px;
    gap: 0;
  }
  .quart { width: 48%; }
  .cinquieme { width: calc(33.333% - 20px); }
  .demi .img2 { width: 80%; }

  /* --- Actualites / agenda / slideDiaporama --- */

  /* --- Misc --- */
  .formulaire { width: 80%; }
  .diaporama li { width: 140px; height: 140px; }

  /* --- Footer --- */
  #footer {
    flex-direction: column;
    margin-top: 40px;
    padding: 30px 20px;
  }
  #footer .col1 {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  #footer .col2 {
    flex: none;
    width: 160px;
    margin: 30px auto 0;
  }
  #footer .col2 .img2 img { width: 100%; }
  #footer .col1 > *,
  #footer .col1 * { text-align: center; }
  #footer .col1.pictoCertification .diaporama{width:100%;}
  #footer .col1 .img2 { margin: 0 auto; }
  #footer .social { justify-content: center; }
  #footer .liens li { list-style-position: inside; }
  #footer .liens li li { margin-left: 0; }
  #footer .liens li li{list-style-type:none;}

.none:has(> .article_intro)::before,
.none:has(> .article_intro)::after{
display:none;
}
.page .complet.article_intro{
min-height:0;
}
}

/* ==========================================================
   <= 860px : small tablet / large phone
   ========================================================== */
@media screen and (max-width: 860px) {

  #corps { padding-top: 56px; } /* = compact blue header bar (menu.css) */
  /* first block of the page = intro photo: full width right under the bar (no gap, square corners) */
  #corps .page:not(.page_produit) > .none:first-child > .article_intro:not(.masqueDentsDeScie) > .img2 { margin-top: 0; }
  #corps .page:not(.page_produit) > .none:first-child > .article_intro:not(.masqueDentsDeScie) > .img2 img { border-radius: 0; }

  /* PRODUCT PAGE (page_produit): framed photo full width, then the thumbnails in a swipeable row,
     then the text. Cancels the desktop layout (text left / photo centre / thumbnails column right) */
  .page_produit .complet.article_intro:has(> .img2) {
    padding: 0 30px;
    margin-top: 20px;
  }
  .page_produit .complet.article_intro:has(> .img2) > .img2 {
    width: 100% !important;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 460px;
    min-height: 0;
  }
  .page_produit .complet.article_intro:has(> .img2) > .txt {
    width: 100% !important;
    padding: 0 !important;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
  }
  .page_produit .complet.article_intro:has(> .img2) .txt ul.diaporama.produit {
    order: -1;                         /* thumbnails right under the photo */
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: auto;
    height: auto;
    max-height: none;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }
  .page_produit .complet.article_intro:has(> .img2) .txt ul.diaporama.produit > li {
    flex: 0 0 84px;
    width: 84px;
  }
  .page_produit .dp-arrow { display: none; } /* vertical arrows of the desktop column: swipe instead */

  .complet,
  .gauche,
  .droite {
    display: block !important;
  }

  .tiers,
  .quart,
  .quart.picto,
  .quart.pictoClic,
  .demi,
  .cinquieme {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    margin: 15px 0;
  }
  .cinquieme { width: 50% !important; }
  .quart.pictoChiffres .txt:has(> :is(h1,h2,h3,h4)) { margin: 0; }

  #backToTop {
    bottom: 20px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  #footer .col1 .img2 { width: 200px; }
  #footer .liens > ul { display: inline-block; text-align: left; }
}

/* ==========================================================
   <= 600px : phone
   ========================================================== */
@media screen and (max-width: 600px) {
	
  .complet .txt,
  .gauche .txt,
  .droite .txt {
    padding: 20px !important;
  }
  .gauche .bloc .none .img2,
  .droite .bloc .none .img2 { margin: 0 20px; } /* = text padding on phones */
  .page_produit .complet.article_intro:has(> .img2) { padding: 0 20px; }
  /* key figures: 2 per line (one per line looked empty) ; smaller titles so they fit the half width */
  .squarelinks > .quart.pictoChiffres { width: 50% !important; }
  .quart.pictoChiffres .txt :is(h1,h2,h3,h4) { font-size: 1.3rem; }

  .page .complet.article_intro > .img2 {
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }

  .diaporama li {
    width: 45%;
    max-width: 160px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .accordeon { padding: 12px; }
  .accordeon .accordeon-toggle {
    padding-right: 32px;
    font-size: 1em;
  }
  .accordeon .accordeon-toggle::after {
    width: 24px;
    height: 24px;
    right: 0;
  }
  .accordeon .accordeon-content { padding-right: 0; }

  .formulaire {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .page .formulaire.merci { width: auto; margin: 15px 20px 30px; padding: 24px 20px; }
  .formulaire input[type="submit"] { width: 100%; }
  .formulaire input[type="submit"]:hover { padding: 6px 20px; }

  #footer .social { justify-content: center; }
  #footer .liens > ul { columns: 1; }
}

/* ==========================================================
   <= 380px : small phone
   ========================================================== */
@media screen and (max-width: 380px) {

  #corps { padding-top: 52px; } /* = header bar height on small phones (menu.css) */

  h1 { font-size: 1.4em; }
  h2 { font-size: 1.2em; }
  h3 { font-size: 1.1em; }
  h4 { font-size: 1.4em; }

  h5 {
    display: block;
    margin: 8px 0;
  }
  h5 a {
    display: block;
    text-align: center;
  }
  h5 a:hover { transform: none; }

  .complet .txt,
  .gauche .txt,
  .droite .txt {
    padding: 15px !important;
  }
  .diaporama li {
    width: 100%;
    max-width: none;
  }
}