/*
Theme Name: AppSperia
Theme URI: http://www.appsperia-wp.themetek.com/demo/
Author: Key-Design
Author URI: http://themeforest.net/user/Key-Design
Description: AppSperia Wordpress App Landing Page
Version: 1.0
Tags: one-column,fluid-layout, custom-menu
License: GNU General Public License
License URI: license.txt

*/

/* =======================================================================
AppSperia - App Landing Page 
======================================================================= */

/*
1. GLOBAL STYLES
2. TYPOGRAPHY
     2.1 FONTS
     2.2 HEADINGS
3. LAYOUT
     3.1 SECTIONS
     3.2 PRELOADER
     3.3 LOGO
     3.5 RIGHT MOCKUP
4. MENU
     4.1 SIDE MAIN MENU
     4.2 NAV BULLETS
5. ELEMENTS
     5.1 TABS
     5.2 CAROUSEL
     5.3 BUTTONS
     5.4 TOOLTIP
     5.5 ICONS
     5.6 SCROLLBAR
6. SECTIONS
     6.1 FEATURES
     6.2 CLIENTS
     6.3 VIDEO
     6.4 SCREENSHOTS
     6.5 PRICING
     6.6 CONTACT
7.  BLOG
8.  RESPONSIVE
*/


/* --------------------------------------
GLOBAL STYLES
-----------------------------------------*/
 

html,
body {
    margin: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background-size: cover;
}

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

/*strong { font-family: 'walkway_ultraboldregular' }*/

body {
   
    
    color: #333;
    font-family: Open Sans;
}
ul {
    list-style-type: none;
    
}

blockquote {
  font-style: italic;
  font-weight: 300;
  margin: 15px 40px;
}

dt {font-weight: bold;}
dd {margin: 0; margin-bottom: 15px;}


.wp-caption {  max-width: 100%;}
.wp-caption-text {   max-width: 100%;}
.gallery-caption {   max-width: 100%;}
.bypostauthor {   max-width: 100%;}
.alignright {  float: right;   margin-left: 20px;}
.alignleft {  float: left;   margin-right: 20px;}
.aligncenter {text-align: center;}


body.admin-bar #logo {position: absolute;}
body.admin-bar #main-nav {top: 5%;}



/*---------------------------------------
   TYPOGRAPHY                
-----------------------------------------*/


/* FONTS */

@font-face {
    font-family: 'walkway';
    src: url('fonts/Walkway_SemiBold-webfont.eot');
    src: url('fonts/Walkway_SemiBold-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/Walkway_SemiBold-webfont.woff') format('woff'), url('fonts/Walkway_SemiBold-webfont.ttf') format('truetype'), url('fonts/Walkway_SemiBold-webfont.svg#walkway_semiboldregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'walkway_bold';
    src: url('fonts/Walkway_UltraBold-webfont.eot');
    src: url('fonts/Walkway_UltraBold-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/Walkway_UltraBold-webfont.woff') format('woff'), url('fonts/Walkway_UltraBold-webfont.ttf') format('truetype'), url('fonts/Walkway_UltraBold-webfont.svg#walkway_ultraboldregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* HEADINGS */

h1,
h2,
h3 {
    margin-bottom: 30px;
    margin-top: 20px;
}

h4,
h5,
h6 { font-weight: 400; margin: 15px 0; }


/*---------------------------------------
   LAYOUT          
-----------------------------------------*/


/*SECTIONS*/

.fp-section {
    position: relative;
    -webkit-box-sizing: border-box; 
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.fp-slide { float: left }
.fp-slide,
.fp-slidesContainer {
    height: 100%;
    display: block;
}
.fp-slides {
    z-index: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    -webkit-transition: all 0.3s ease-out; /* Safari<=6 Android<=4.3 */
    transition: all 0.3s ease-out;
}
.fp-section.fp-table,
.fp-slide.fp-table {
    display: table;
    width: 100%;
}
.fp-tableCell {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    height: 100%;
    max-width: 1040px;

}
.wrap {
    width: 1040px;
    margin-left: auto;
    margin-right: auto;
    display: table;
    position: relative;
    box-sizing: border-box;
}

.entry-content.no-scroll {
/*  padding: 0;
  background: none;
  border-radius: 4px;*/
}

.comment-list {padding-left: 0;}
.entry-content.comments-content,
.entry-content {
  padding: 15px;
  background: #222;
  border-radius: 4px;
  position: relative;
}

.format-gallery.post .fp-slidesNav {display: none;}



.entry-content embed {
  width: 100%;
  /* min-height: 200px; */
  height: auto;
}

.wrap .box,
.wrap {
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}
.box {
    font-style: normal;
    width: 51%;
}
.box p { margin: 0 0 15px 0 }
.overlay {
    background: #000;
    opacity: 0.6;
    position: fixed;
    width: 100%;
    height: 100%;
}

/*preloader*/

#loading {
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background: #000;
}
#loading img {
    position: absolute;
    top: 45%;
    left: 50%;
    margin-left: -90px;
}

/*Logo   */

#logo {
    position: fixed;
    top: 2%;
    z-index: 100;
}

/*Right side mockup*/

#hand {
    background: url(images/hand-mockup.png) top no-repeat;
    width: 800px;
    height: 1000px;
    background-size: 100%;
    position: fixed;
    margin-left: -209px;
    top: 50%;
    margin-top: -270px;
    left: 50%;
}


/*---------------------------------------
   MENUS          
-----------------------------------------*/


/*side main menu*/


#main-nav {
position: fixed;
z-index: 100;
top: 2%;
left: 14px;
color: inherit;
line-height: 43px;
font-size: 32px;
font-weight: 300;
}

.entry-content a,
.meta-content a,
.comments-area a,
.entry-meta a,
#main-nav span {
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

#menu-logo img {
    display: block;
    margin: 30px auto 35px auto;
    /* keeps the proportions where a narrow menu caps the width (max-width), despite the height attribute */
    height: auto;
}
.sidr {
    display: none;
    position: absolute;
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 999;
    width: 240px;
    overflow-x: none;
  
    font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
    font-size: 15px;
   
}

.navbar {  position: relative;
  max-height: 100%;
  max-height: calc(100% - 150px);
  z-index: 10;
  margin-right: -20px;
  overflow-y: auto;}

.sidr .menu-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.1);
}

.sidr {overflow: hidden;}

#menu-logo {
    position: relative;
    z-index: 2;
    display: block;
}

.sidr.right {
    left: auto;
    right: -260px;
}
.sidr.left {
    left: -260px;
    right: auto;
}
.sidr ul {
    display: block;
    margin: 0 0 15px;
    padding: 0;
}
.sidr ul li {
    display: block;
    margin: 0;
    line-height: 45px;
    border: none;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.sidr ul li:hover,
.sidr ul li.active,
.sidr ul li.sidr-class-active {
    border-top: none;
}

.sidr ul li a,
.sidr ul li span {
    padding: 0 25px;
    display: block;
    text-decoration: none;
    color: #fff;
    font-family: Open Sans;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.sidr ul li a span {
    display: inline-block;
    padding-left: 0;
    font-weight: 300;
    font-size: 14px;
}
.sidr-open .wrap { width: 1200px }
.sidr-open .fp-slidesNav { margin-left: -602px!important }
.sidr-open .wrap .box { width: 40% }
.sidr-open #main-nav { left: 274px }

/*navigation bullets*/

#fp-nav {
    position: fixed;
    z-index: 100;
    margin-top: -32px;
    top: 52%;
    opacity: 1;
}
#fp-nav.left { left: 17px }
#fp-nav span,
.fp-slidesNav span { border-color: #aaa }
#fp-nav li .active span,
.fp-slidesNav .active span { background: #fff }
.fp-slidesNav {
    position: absolute;
    z-index: 4;
    margin-left: -523px!important;
    text-align: left;
    left: 50%;
    opacity: 1;
    top: 50%;
    margin-top: 140px;
}
.fp-slidesNav.top { top: 17px }
#fp-nav ul,
.fp-slidesNav ul {
    margin: 0;
    padding: 0;
}
#fp-nav li,
.fp-slidesNav li {
    display: block;
    width: 12px;
    height: 12px;
    margin: 7px;
    position: relative;
}
.fp-slidesNav li {
    display: inline-block;
    margin: 3px;
}
.fp-slidesNav li a,
#fp-nav li a {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
    border-radius: 50%;
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.3);
    text-indent: -999em;
    cursor: pointer;
    position: absolute;
}
.fp-slidesNav li a,
#fp-nav li a {
    background-color: transparent;
    box-shadow: inset 0 0 0 1px rgb(172, 172, 172);
    -webkit-transition: box-shadow 0.3s ease;
    transition: box-shadow 0.3s ease;
}

.light .fp-slidesNav li a,
.light  #fp-nav li a {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px rgb(69, 69, 69);
}

.fp-slidesNav li a:hover,
.fp-slidesNav li a:focus,
#fp-nav li a:hover,
#fp-nav li a:focus { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6) }
.fp-slidesNav li a.active,
#fp-nav li a.active { box-shadow: inset 0 0 0 8px #fff }

.light .fp-slidesNav li a.active,
.light #fp-nav li a.active { box-shadow: inset 0 0 0 8px #000 }
.light #fp-nav li a.active { box-shadow: inset 0 0 0 8px #000 }


/*---------------------------------------
   ELEMENTS          
-----------------------------------------*/


/*tabs*/

.tabs-style-linemove nav {
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 4px;
}

.light .tabs-style-linemove nav {  background: rgba(255, 255, 255, 0.3); }

.tabs-style-linemove nav li:last-child::before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: '';
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}


.tabs6.tabs-style-linemove nav li:first-child.tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-500%,0,0);
    transform: translate3d(-500%,0,0);
}

.tabs6.tabs-style-linemove nav li:nth-child(2).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-400%,0,0);
    transform: translate3d(-400%,0,0);
}

.tabs6.tabs-style-linemove nav li:nth-child(3).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-300%,0,0);
    transform: translate3d(-300%,0,0);
}

.tabs6.tabs-style-linemove nav li:nth-child(4).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-200%,0,0);
    transform: translate3d(-200%,0,0);
}

.tabs6.tabs-style-linemove nav li:nth-child(5).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-100%,0,0);
    transform: translate3d(-100%,0,0);
}

.tabs5.tabs-style-linemove nav li:nth-child(1).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-400%,0,0);
    transform: translate3d(-400%,0,0);
}

.tabs5.tabs-style-linemove nav li:nth-child(2).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-300%,0,0);
    transform: translate3d(-300%,0,0);
}

.tabs5.tabs-style-linemove nav li:nth-child(3).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-200%,0,0);
    transform: translate3d(-200%,0,0);
}

.tabs5.tabs-style-linemove nav li:nth-child(4).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-100%,0,0);
    transform: translate3d(-100%,0,0);
}

.tabs4.tabs-style-linemove nav li:nth-child(1).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-300%,0,0);
    transform: translate3d(-300%,0,0);
}

.tabs4.tabs-style-linemove nav li:nth-child(2).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-200%,0,0);
    transform: translate3d(-200%,0,0);
}

.tabs4.tabs-style-linemove nav li:nth-child(3).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-100%,0,0);
    transform: translate3d(-100%,0,0);
}

.tabs3.tabs-style-linemove nav li:nth-child(1).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-200%,0,0);
    transform: translate3d(-200%,0,0);
}

.tabs3.tabs-style-linemove nav li:nth-child(2).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-100%,0,0);
    transform: translate3d(-100%,0,0);
}

.tabs2.tabs-style-linemove nav li:nth-child(1).tab-current ~ li:last-child::before {
    -webkit-transform: translate3d(-100%,0,0);
    transform: translate3d(-100%,0,0);
}


.tabs5 nav ul li {width: 20%; float: left;}
.tabs4 nav ul li {width: 25%; float: left;}
.tabs3 nav ul li {width: 33%; float: left;}




.tabs-style-linemove nav a {
    padding: 20px 0;

    line-height: 1;
    -webkit-transition: color 0.3s, -webkit-transform 0.3s;
    transition: color 0.3s, transform 0.3s;
}
.tabs {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    min-height: 270px;
}
.tabs nav { text-align: center }
.tabs nav ul {
    position: relative;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: flex;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
    list-style: none;
    -ms-box-orient: horizontal;
    -ms-box-pack: center;
    -webkit-flex-flow: row wrap;
    -moz-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
}
.tabs nav ul li {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
    text-align: center;
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
.tabs nav a {
    position: relative;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}
.tabs nav a span { vertical-align: middle }
.tabs nav a:focus { outline: none }

.tabs .tooltip {
display: block;
display: inline-block;
margin-top: 10px;
width: 40%;}

.tabs h4 .tooltip:nth-child(1) {margin-top: 0;}

.tabs .tooltip:nth-child(1) ,
.tabs .tooltip:nth-child(2) { margin-top: 25px; }

.content-wrap { position: relative }
.content-wrap section {
    display: none;
    margin: 0 auto;
    padding: 30px 0 0 0;
}

.content-wrap section br {display: none;}

.content-wrap section h4 {font-weight: inherit; margin-top: 0;}

.content-wrap section.content-current { display: block }

/*carousel*/

.screenshots-wrapper  .fp-controlArrow {display: block;}

.fp-slidesContainer {
    float: left;
    position: relative;
}
.fp-controlArrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    cursor: pointer;
    width: 0;
    height: 0;
    border-style: solid;
    margin-top: -38px;
    display: none;
}
.fp-controlArrow.fp-prev {
    left: -70px;
    width: 40px;
    height: 74px;
    border: none;

    background: url(images/bg_direction_nav.png) no-repeat 0 0;
    cursor: pointer;
    opacity: 0.6;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.fp-controlArrow.fp-next {
    right: -70px;
    width: 40px;
    height: 74px;
    border: none;

    background: url(images/bg_direction_nav.png) no-repeat 0 0;
    cursor: pointer;
    opacity: 0.6;
    background-position: 100% 0;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
/* Pas de halo bleu au toucher, pas de contour navigateur au clic souris */
.fp-controlArrow {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}
/* Survol uniquement sur les appareils avec une vraie souris : sur tablette / mobile, :hover restait
   « collé » après le toucher et la flèche touchée restait en surbrillance */
@media (hover: hover) and (pointer: fine) {
    .fp-controlArrow.fp-prev:hover,
    .fp-controlArrow.fp-next:hover { opacity: 1 }
}
/* Focus clavier (Tab) : anneau blanc visible, seulement pour la navigation au clavier */
.fp-controlArrow:focus-visible {
    opacity: 1;
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 4px;
}

/*buttons*/

.flaticon-appstore {
    background: url(images/appstore.png);
    height: 21px;
    width: 17px;
    margin-top: 2px;
    float: left;
}

.simple-button:hover .flaticon-appstore { background: url(images/appstore2.png) }

.flaticon-playstore {
    background: url(images/playstore.png);
    height: 20px;
    width: 17px;
    margin-top: 2px;
    float: left;
}

.simple-button:hover .flaticon-playstore { background: url(images/playstore2.png) }

.simple-button {
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    color: #ffffff;
    min-width: 130px;
    margin-right: 10px;
    text-decoration: none;
    padding: 12px 25px;
    margin-top: 25px;
    float: left;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
   
}
.simple-button:hover {
    color: #333;
    background: #fff;
}

/*tooltip*/

.tooltip-wrap {
width: 38%;
float: left;
margin-top: 10px; }

.tooltip {
    position: relative;
}

.separator {margin-top: 15px;}

.tooltip::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: 100%;
    left: 50%;
    pointer-events: none;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
.tooltip:hover::after { pointer-events: auto }
.tooltip-content {
    position: absolute;
    z-index: 9999;
    width: 335px;
    left: 50%;
    bottom: 100%;
    color: #fffaf0;
    background: transparent;
    opacity: 0;
    margin: 0 0 20px -167px;
    cursor: default;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    -webkit-transition: opacity 0.3s 0.3s;
    transition: opacity 0.3s 0.3s;
}
.tooltip:hover .tooltip-content {
    opacity: 1;
    pointer-events: auto;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
}
.tooltip-content span { display: block }
.tooltip-text {
    border-bottom: 10px solid #fffaf0;
    overflow: hidden;
    -webkit-transform: scale3d(0,1,1);
    transform: scale3d(0,1,1);
    -webkit-transition: -webkit-transform 0.3s 0.3s;
    transition: transform 0.3s 0.3s;
}
.tooltip:hover .tooltip-text {
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
    -webkit-transform: scale3d(1,1,1);
    transform: scale3d(1,1,1);
}
.tooltip-inner {
    background: rgba(0, 0, 0, 0.85);
    padding: 30px;
    min-height: 80px;
    -webkit-transform: translate3d(0,100%,0);
    transform: translate3d(0,100%,0);
    webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}

.light .tooltip-inner {
      background: rgba(255, 255, 255, 0.85);
}

.light .tooltip-content {color: initial;}


.tooltip:hover .tooltip-inner {
    -webkit-transition-delay: 0.3s;
    transition-delay: 0.3s;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}
.tooltip a {
    color: #fff;
    font-weight: bold;
}
.tooltip a:hover { color: #1D9CD2  }
.tooltip-content::after {
    content: '';
    bottom: -20px;
    left: 50%;
    border: solid transparent;
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: transparent;
    border-top-color: #fffaf0;
    border-width: 10px;
    margin-left: -10px;
}
.tooltip-inner .icon {
  vertical-align: middle;
display: table-cell;
font-size: 40px;
height: 80px;
text-align: center;
width: 30%;
margin-right: 10%;
line-height: 80px;
}
.tooltip-inner .tooltip-body {
width: 70%;
height: 80px;
display: table-cell;
vertical-align: middle;}

/*icons*/

.tooltip-content .tooltip-inner {
    display: table;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}


.icon {
    font-weight: normal;
    line-height: 20px;
    margin-right: 5px;
}




.simple-button .icon {
    margin-right: 20px;
    font-size: 16px;
}


/*************** Scrollbar ***************/
 
.scroll-wrapper {

    padding: 0 !important;
    position: relative;
}

.home.page.page-parent .scroll-wrapper > .scroll-content {overflow: visible!important;}
.home.page.page-parent .scroll-element.scroll-y {display: none!important}

.scroll-wrapper > .scroll-content {
    border: none !important;
    box-sizing: content-box !important;
    height: auto;
    left: 0;
    margin: 0;
    max-height: none !important;
    max-width: none !important;
    overflow: scroll !important;
    padding: 0;
    position: relative !important;
    top: 0;
    width: auto !important;
}
 
.scroll-wrapper > .scroll-content::-webkit-scrollbar {
    height: 0;
    width: 0;
}
 
.scroll-element {
    display: none;
}
.scroll-element, .scroll-element div {
    box-sizing: content-box;
}
 
.scroll-element.scroll-x.scroll-scrollx_visible,
.scroll-element.scroll-y.scroll-scrolly_visible {
    display: block;
}
 
.scroll-element .scroll-bar,
.scroll-element .scroll-arrow {
    cursor: default;
}
 
.scroll-textarea {
    border: 1px solid #cccccc;
    border-top-color: #999999;
}
.scroll-textarea > .scroll-content {
    overflow: hidden !important;
}
.scroll-textarea > .scroll-content > textarea {
    border: none !important;
    box-sizing: border-box;
    height: 100% !important;
    margin: 0;
    max-height: none !important;
    max-width: none !important;
    overflow: scroll !important;
    outline: none;
    padding: 2px;
    position: relative !important;
    top: 0;
    width: 100% !important;
}
.scroll-textarea > .scroll-content > textarea::-webkit-scrollbar {
    height: 0;
    width: 0;
}
 
 
 
/*************** Scrollbar Outer ***************/
 .page-content {max-height: 320px;  overflow-y: auto;   padding-right: 15px;   position: relative;}

.page-child .section-title {  white-space: nowrap; }
.page-child .entry-content p {  margin-top: 15px; }

  .page-content th,
 .page-content td {  background: rgba(0, 0, 0, 0.3); border-radius: 5px; padding: 10px;}
 .page-content img {  display: block; max-width: 100%; height: auto;}

 .post .page-content img {
display: block;
  max-height: 230px;
  width: auto;
  max-width: 100%;
  height: auto;}


.page-content > .scroll-element,
.page-content > .scroll-element div
{
    border: none;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 10;
}
 
 
.page-content > .scroll-element div {
    display: block;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}
 
.page-content > .scroll-element.scroll-x {
    bottom: 0;
    height: 12px;
    left: 0;
    width: 100%;
    display: none;
}
 
.page-content > .scroll-element.scroll-y {
    height: 100%;
    right: 0;
    top: 0;
    width: 12px;
}
 
.page-content > .scroll-element.scroll-x .scroll-element_outer { height: 8px; top: 2px; }
.page-content > .scroll-element.scroll-y .scroll-element_outer { left: 2px; width: 8px; }
 
.page-content > .scroll-element .scroll-element_outer { overflow: hidden; }
.page-content > .scroll-element .scroll-element_track { background: rgba(0, 0, 0, 0.3); }
 
.page-content > .scroll-element .scroll-element_outer,
.page-content > .scroll-element .scroll-element_track,
.page-content > .scroll-element .scroll-bar {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
 
.page-content > .scroll-element .scroll-bar { background-color: #fff; }
.page-content > .scroll-element .scroll-bar:hover { background-color: #c2c2c2; }
.page-content > .scroll-element.scroll-draggable .scroll-bar { background-color: #919191; }
 
 
/* scrollbar height/width & offset from container borders */
 
.page-content > .scroll-content.scroll-scrolly_visible {   left: -15px;  margin-left: 15px;  right: -15px;  margin-right: 15px!important;}
.page-content > .scroll-content.scroll-scrollx_visible { top:  -12px; margin-top:  12px; height: 225px!important; }
 
.page-content > .scroll-element.scroll-x .scroll-bar { min-width: 10px; }
.page-content > .scroll-element.scroll-y .scroll-bar { min-height: 10px; }
 
 
/* update scrollbar offset if both scrolls are visible */
 
.page-content > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_track { left: -14px; }
.page-content > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_track { top: -14px; }
 
.page-content > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size { left: -14px; }
.page-content > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size { top: -14px; }



/* --------------------------------------
SECTIONS
-----------------------------------------*/


/*Features*/

.features {
    margin-top: 10px;
    float: left;
    margin-right: 50px;
    margin-bottom: 0;
}
.features li { margin-bottom: 10px }

/*Clients feedbacks*/

.clients-content { position: relative; height: auto!important;   margin-bottom: 15px; }
.clients-content .fp-controlArrow { display: none }
.clients-content .fp-tableCell { height: 100%!important }
.client-stars { float: right }
.clients-content p { margin-top: 0 }


/* Video Presentation*/

.video-presentation {
    width: 100%;
    margin-top: 30px;
}
.wrap iframe { border: none }

/*Screenshots*/

.screenshots-wrapper,
.section-image {
    position: fixed;
    left: 50%;
    top: 50%;
    overflow: hidden;
    z-index: 10;
    margin-top: -192px;
    width: 232px;
    height: 407px;
    margin-left: 270px;
    border-radius: 3px;
}
.screenshots-wrapper img,
.section-image img {
width: auto;
display: block;
min-height: 100%;
height: 407px;
}
.screenshots-wrapper {
    -webkit-transition: 0.9s;
    -o-transition: 0.9s;
    transition: 0.9s;
    opacity: 0;
}
.active .screenshots-wrapper {
    opacity: 1;
    overflow: visible;
}
.screenshots-wrapper .fp-tableCell { height: 100%!important }
.active .section-image img { opacity: 1 }

/*Pricing*/

.pricing-button {
    padding: 20px 0;
    box-sizing: border-box;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.2);
    font-weight: 700;
}
.price-table {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    text-align: center;
    width: 31%;
    margin-right: 2%;
    float: left;
    overflow: hidden;
}

 .light .price-table { background: rgba(255, 255, 255, 0.3);}

 .light .pricing-button,
 .light .wrap .package,
 .light .wrap .page-content .package
  {   background: rgba(255, 255, 255, 0.2); }

.popular {
    color: #fff;
    padding: 30px 0;
}

.light .price-table:hover .package,
.light .price-table:hover .pricing-button a {  color: #fff;}

.popular .icon { color: #fff }
.wrap .page-content  .package {
 padding: 20px 0;
margin: 0;
line-height: 1.2;
background: rgba(0, 0, 0, 0.2);
margin-bottom: 20px;
text-align: center;
font-size: 22px;
box-sizing: border-box;
-webkit-transition: 0.3s;
-o-transition: 0.3s;
transition: 0.3s;
}
.popular .price { background-color: rgba(255,255,255, 0.2) !important }
.currency { font-size: 21px }
.amount {
    font-size: 28px;
    line-height: 32px;
}
.specifications {
    list-style: none;
    text-align: left;
    margin: 15px 20px;
      padding-left: 0;
}
.sidr-open .specifications { margin: 15px 10px }
.specifications li { padding: 3px }

.normal .btn-line { width: 150px }
.popular .btn-line {
    color: #fff !important;
    border-color: #fff !important;
}

/*Contact*/

.wpcf7-form {
    float: left;
    margin-top: 15px;
    width: 100%;
}
input::-webkit-input-placeholder { color: #fff }
input::-moz-placeholder {
    color: #fff;
    opacity: 1;
}
input:-moz-placeholder {
    color: #fff;
    opacity: 1;
}
textarea::-webkit-input-placeholder { color: #fff }
textarea::-moz-placeholder {
    color: #fff;
    opacity: 1;
}
textarea:-moz-placeholder {
    color: #fff;
    opacity: 1;
}

.light input::-webkit-input-placeholder { color: initial }
input::-moz-placeholder {
    color: initial;
    opacity: 1;
}
.light input:-moz-placeholder {
    color: initial;
    opacity: 1;
}
.light textarea::-webkit-input-placeholder { color: initial }
.light textarea::-moz-placeholder {
    color: initial;
    opacity: 1;
}
.light textarea:-moz-placeholder {
    color: initial;
    opacity: 1;
}

.searchform input,
input[type="password"],
#comments textarea,
#comments input,
.wpcf7-form textarea,
.wpcf7-form input {
    outline: none;
    background: none;
    float: left;
    color: inherit;
    width: 47%;
    box-sizing: border-box;
    border-radius: 4px;
    font-family: Open Sans;
    border: none;
    font-weight: 300;
    font-size: 13px;
    margin-right: 3%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.searchform input,
input[type="password"] {float: none;}

.searchform input[type="text"] {
  background: rgba(255, 255, 255, 0.1);
  margin-left: 10px;
}

#comments textarea:focus, #comments input:focus,
.wpcf7-form textarea:focus, .wpcf7-form input:focus {color: #fff;}


.light .wpcf7-form textarea,
.light .wpcf7-form input[type="text"],
.light .wpcf7-form input[type="email"],
.light .wpcf7-form input[type="number"]
{    background: rgba(255, 255, 255, 0.3); }

.light #comments textarea,
.light #comments input[type="text"],
.light #comments input[type="email"],
.light #comments input[type="number"]
{    background: rgba(255, 255, 255, 0.3); }

#comments textarea,
.wpcf7-form textarea {
    width: 97%;
    resize: none;
    height: 60px;
    margin-bottom: 0;
}

input[type="submit"],
#comments .submit,
.wpcf7-form .wpcf7-submit {
font-weight: 700;
border-radius: 4px;
color: #ffffff;
border: none;
min-width: 120px;
font-size: 15px;
margin-right: 10px;
text-decoration: none;
outline: none;
padding: 9px 20px;
cursor: pointer;
margin-top: 10px;
margin-bottom: 10px;
width: auto;
-webkit-transition: 0.3s;
-o-transition: 0.3s;
transition: 0.3s;
}

.wpcf7-form .wpcf7-submit  {margin-bottom: 0;}

#comments .submit:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: #fff;
    color: #111;
}

.wpcf7-form br {display: none;}

 .wpcf7-response-output.wpcf7-mail-sent-ok,
.wpcf7-response-output.wpcf7-validation-errors {
display: block;
margin: 0;
padding: 0;
border: none;
font-size: 13px;
margin-right: 2%;
margin-top: -30px;
line-height: 1.5;
float: right;
width: 50%;}

span.wpcf7-not-valid-tip {
color: #e02217;
font-size: 13px;
position: absolute;
display: block;
line-height: initial;
text-align: right;
padding: 10px;
min-width: 170px;
right: 10px;
}

body .wpcf7-form-control-wrap {
    position: initial;
}

/* --------------------------------------
/*BLOG
-----------------------------------------*/
pre {  color: #ddd;  font-size: 85%;  line-height: 1.5;  white-space: pre-wrap;}
.blog-single .tabs {margin-top: 15px; float: left;}
.blog-label { float: left;  margin-right: 10px; }
.post-categories {margin: 0;}
.post-categories li {margin: 0; float: left;}
.tags {float: left;}
.meta-content {   float: left;  width: 130%;  max-height: 130px;  overflow: hidden;}
.wrap .comment-reply-title,
.wrap .comments-title,
.section .wrap .category-title {font-size: 16px; font-weight: bold;}
.section .wrap .category-title {margin-top: 0; margin-bottom: 15px;}
.comment-author img {display: block;  max-width: 55px;  float: left;  margin-right: 20px;  border-radius: 50%;}
.entry-meta {margin-bottom: 15px;   white-space: nowrap;}
.navigation.pagination h2.screen-reader-text {  line-height: 21px;  display: inline-block;  margin: 0;  margin-right: 10px;  font-size: 15px;  font-weight: normal;}
.navigation.pagination  {display: block;  width: 1040px;  margin-left: auto;  margin-right: auto;  z-index: 100;  position: relative;  margin-top: -120px;}
.navigation.pagination .nav-links  {line-height: 1}
.navigation.pagination .page-numbers.current {font-weight: bold;}
.navigation.pagination .page-numbers.current span  {font-weight: normal;}
.navigation.pagination .nav-links {display: inline-block;}
.archive .wrap .blog-title,
.type-post .wrap h2.section-title, .wrap h2.section-title,
.blog-single .blog-title {  margin: 0 0 15px 0 ;  line-height: 1;  position: relative;  text-overflow: ellipsis;  width: 140%;  z-index: 100;  font-size: 2.5em;}
.type-post .page-content,
.blog-single .page-content {  max-height: 210px;   overflow-y: auto;   padding-right: 15px;   position: relative; }
.blog-single .content-wrap section {padding-top: 15px;}
.type-post iframe,.blog-single iframe {max-width: 100%; width: 100%; height: auto; min-height: 215px;}
blockquote {  margin-left: 0;  background: rgba(0, 0, 0, 0.3);  border-radius: 5px;  padding: 10px;  height: auto;}
.box blockquote p {  margin: 0;}
 .type-post .page-content ul ,.type-post .page-content ol {padding-left: 20px;}
.post .simple-button {margin-top: 15px;}
.wrap .page-content h1 {  margin-top: 15px;  margin-bottom: 15px;  line-height: 1.2em;  font-size: 2.5em;  font-weight: bold;}
.wrap .page-content h2 {  margin-top: 15px;  margin-bottom: 15px;  line-height: 1.2em;  font-size: 2em;  font-weight: bold;}
.wrap .page-content h3 {  margin-top: 15px;  margin-bottom: 15px;  line-height: 1.2em;  font-size: 1.5em;  font-weight: bold;}
.pingback {margin-bottom: 20px;}
.entry-content .page-content ul,
.type-post .page-content ul, .comment-list ul {list-style-type: square }
.comment-list .children {list-style-type: none;   margin-top: 30px;}
.comment-list .comment {margin-bottom: 30px;}
.reply a {  font-weight: 700;  border-radius: 4px;  color: #ffffff;  border: none;  min-width: 120px;  font-size: 13px;  margin-right: 10px;  text-decoration: none;  outline: none;  padding: 7px 15px;  cursor: pointer;  margin-top: 10px;  background: rgba(0, 0, 0, 0.3);}
#comment-nav-above h1, #comment-nav-below h1 {display: none;}
.comment-navigation {margin-bottom: 30px;}
abbr {border-bottom: 1px dotted;}
.entry-meta a, .meta-content a, .comment-author a, .comment-meta a, .logged-in-as a, .entry-content a{font-weight: bold;}
.search-title {margin-bottom: 15px; display: block;  line-height: 1; margin-top: -50px;}
.searchform label {display: none;}
.searchform {position: relative;z-index: 10;   margin: 0 25px 14px 25px;}
.searchform #s {width: 100%; margin: 0;}
.searchform #searchsubmit {
  position: absolute;
  top: 0;
  margin: 0;
  right: 10px;
  background: none;
  padding-left: 0;
  padding-right: 0;
  text-transform: uppercase;
  font-size: 13px;
  width: auto;
  display: block;
  min-width: 30px;}
.searchform #searchsubmit:hover { opacity: 0.7; }
.page .wrap h2.section-title {font-size: 50px; line-height: 60px;}
.page-content.with-tooltip {overflow: visible;}

.browser-mobile #video_background,
.browser-mobile .overlay {display: none!important; opacity: 0; visibility: hidden;}

/* --------------------------------------
/* RESPONSIVE SRTYLES
-----------------------------------------*/

@media (max-width: 1140px) {

    html,
    body {
        background-position-y: 0!important;
    }

    #fp-nav {
        display: none;
    }

    #logo {
        position: fixed;
        width: 100%;
        left: 0;
        text-align: center;
    }

    .section iframe {
        width: 100%;
        height: auto;
    }

    .fp-slidesNav {
        margin-left: -45%!important;
        left: 50%;
        bottom: 0;
        top: 55%;
    }

    .sidr-open .wrap,
.wrap {
        width: 90%;
    }

    #section5 .fp-slidesNav {
        display: none;
    }

    #hand {
        left: auto;
        right: 0;
        margin-left: inherit;
    }

    .screenshots-wrapper,
.section-image {
        left: auto;
        right: 89px;
        margin-left: inherit;
    }
}

@media (max-width: 870px) {

    .section .wrap  h1, .section .wrap  h2, .section .wrap  h3 {
        font-size: 40px;
          width: 100%!important;
        text-align: center;
    }

    #hand,
.screenshots-wrapper,
.section-image {
        display: none;
    }

   .wrap  .sidr-open, .wrap .box,
.wrap .box {
        width: 100%;
        text-align: center;
        font-size: 14px;
    }

    #searchform {
        display: none;
    }

    #menu-logo img {
        margin: 70px auto 15px;
        max-width: 80%;
        height: auto;
    }

    .sidr ul {
        margin-top: 0;
    }

    #sidr {
        width: 200px;
        z-index: 100;
    }

    .simple-button {
        float: none;
        display: block;
        font-size: 14px;
        max-width: 180px;
        margin: 25px auto;
    }

    .sidr ul li a, .sidr ul li span {
        font-size: 11px;
        padding: 0 18px;
    }

    .tooltip-wrap {
        margin-top: 10px;
        width: 50%;
        margin-right: 0;
        margin-bottom: 0;
    }

    .tabs {
        width: 90%;
    }

    .sidr-open #main-nav {
        left: 14px;
        z-index: 200;
    }

    .tabs-style-linemove nav a {
        padding: 15px 0;
    }

    .section iframe {
        width: 82%;
    }

    .client-name {
        float: left;
    }

    .fp-slidesNav {
        margin-left: -5%!important;
        left: 50%;
        bottom: 0;
        top: 55%;
    }

    .specifications {
        text-align: center;
    }

    .active .screenshots-wrapper {
        opacity: 1;
        overflow: visible;
        display: block;
        background: rgba(0, 0, 0, 0.2);
        padding: 10px;
        max-width: 180px;
        right: 50%;
        margin-right: -100px;
        border-radius: 7px;
        height: auto;
    }



    .fp-controlArrow.fp-next {
        right: -30px;
        width: 20px;
    }

    .fp-controlArrow.fp-prev {
        left: -30px;
        width: 20px;
    }
}

@media (min-width: 320px) and (max-width: 640px) {



  

    .section .wrap  h1, .section .wrap  h2, .section .wrap  h3 , .page .wrap h2.section-title {
        font-size: 26px;
        line-height: 1;
        text-align: center;
        width: 100%!important;
    }

  .sidr-open   .wrap  .box, .wrap .box {
        width: 100%;
        text-align: center;
        font-size: 11px;
        line-height: 1.2;
    }

    .simple-button .icon {
        margin-right: 10px;
        font-size: 12px;
    }

    .flaticon-playstore,
.flaticon-appstore {
        margin-top: -4px;
    }

    .simple-button {
        float: none;
        display: block;
        font-size: 11px;
        max-width: 100px;
        margin: 25px auto;
        padding: 10px 15px;
    }

    #logo {
        top: 3%;
    }

    #logo img {
        max-width: 120px;
    }

    .tooltip-inner .icon {
        float: left;
        display: block;
        font-size: 14px;
        height: AUTO;
        margin-right: 5px;
        line-height: inherit;
    }

    .tooltip-inner {
        background: rgba(0, 0, 0, 0.85);
        padding: 20px;
        min-height: inherit;
    }

    .tooltip-inner .tooltip-body {
  width: auto;
  height: auto;
  display: table-cell;
  vertical-align: middle;
}

.tooltip-content .tooltip-inner {padding: 20px; box-sizing: border-box;}

    #main-nav {
        left: 10px;
        top: 1%;
        font-size: 32px;
    }

    #main-nav:hover span {
        color: inherit!important;
    }

    .sidr ul li {
        line-height: 35px;
    }

    .fp-slidesNav {
        display: none;
    }

    .section .wrap .package {
        padding: 15px 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.2);
        margin-bottom: 10px;
        font-size: 14px;
    }

    .amount {
        font-size: 15px;
        line-height: 1;
    }

    .specifications {
        list-style: none;
        text-align: left;
        margin: 10px 5px;
    }

    .pricing-button {
        padding: 15px 0;
    }

    .specifications .icon {
        display: none;
    }

    .wpcf7-form textarea, .wpcf7-form input{
        font-size: 11px;
        margin-right: 3%;
        padding: 5px;
    }

    .wpcf7-form textarea, {
        height: 50px;
    }

    .wpcf7-form .wpcf7-submit {
         padding: 8px 17px;
  margin: 10px auto;
  float: none;
  font-size: 11px;
    }

    .tabs nav ul li {
        display: inline-block;
    }

    .wpcf7-form {
        float: left;
        margin-top: 10px;
    }

    #section8 .tooltip-wrap {
        margin-top: 0;
    }

    .active .screenshots-wrapper {
        max-width: 140px;
        margin-top: -130px;
        margin-right: -80px;
    }

    .tabs .tooltip {width: 100%; margin: 0;}
    .tabs .tooltip:nth-child(1) {  margin-top: 20px;}
    .tabs .tooltip:nth-child(2) {  margin-top: 0px;}
}



@media (max-width: 870px) {
.active .screenshots-wrapper {
    opacity: 1;
    overflow: visible;
    display: block;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    max-width: 180px;
    right: 50%;
    z-index: 9999;
    margin-right: -100px;
    border-radius: 7px;
    height: auto;
}
.active .screenshots-wrapper img {height: auto; min-height: auto;}
}

@media (max-width: 640px) and (min-width: 320px) {
.active .screenshots-wrapper {
    max-width: 180px;
    margin-top: -130px;
    margin-right: -100px;
}
.active .screenshots-wrapper img {height: auto; min-height: auto;}
}



.entry-content::after {  
  content: " ";
  background: linear-gradient(to bottom, rgba(34, 34, 34, 0) 0%,#222 100%);
  height: 35px;
  display: block;
  position: absolute;
  bottom: 15px;
  width: 100%;
  z-index: 8;
  width: -moz-calc(100% - 15px);
  width: -webkit-calc(100% - 15px);
  width: calc(100% - 15px);
  left: 0; }
.entry-content.no-scroll::after {display: none;}


/* Meniul lateral împinge pagina: fără scroll orizontal */
html { overflow-x: hidden; }
.sidr-open .wrap { max-width: 100%; }
@media (max-width: 1400px) { .sidr-open .wrap { width: 90%; } }
@media (min-width: 871px) and (max-width: 1400px) { .sidr-open .wrap .box { width: 34%; } }

/* --------------------------------------
/* MOBILE (≤870px) : video, captures, témoignages
-----------------------------------------*/
@media (max-width: 870px) {
    /* Video : tient dans l'écran, centrée */
    .wp-block-video { float: none; margin: 0 auto; text-align: center; }
    .wp-block-video video {
        display: block;
        margin: 0 auto;
        width: auto;
        max-width: 100%;
        max-height: calc(100vh - 230px);
    }
    #page-interface-web .wp-block-video video { width: 100%; max-height: none; }

    /* Captures : le téléphone passe sous la liste, dans le flux */
    #page-captures .screenshots-wrapper,
    .active #page-captures .screenshots-wrapper {
        position: relative;
        left: auto; right: auto; top: auto;
        margin: 15px auto 0;
        width: 130px; max-width: 130px;
        height: 231px;
        padding: 0;
        background: none;
        z-index: 1;
    }
    #page-captures .screenshots-wrapper img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
    #page-captures .tooltip-wrap { width: 50%; }

    /* Témoignages : flèches visibles à l'intérieur de l'écran */
    .fp-controlArrow.fp-prev { left: 0; }
    .fp-controlArrow.fp-next { right: 0; }
    .clients-content { padding: 0 25px; box-sizing: border-box; }
}

@media (max-width: 870px) {
    #page-temoignages .fp-controlArrow { display: block; transform: scale(0.6); opacity: 0.8; }
    #page-temoignages .fp-controlArrow.fp-prev { left: -6px; }
    #page-temoignages .fp-controlArrow.fp-next { right: -6px; }
    #page-temoignages .clients-content { padding: 0 30px; }
}

/* Captures mobile : flèches de chaque côté du téléphone */
@media (max-width: 870px) {
    #page-captures .screenshots-wrapper,
    .active #page-captures .screenshots-wrapper { overflow: visible; }
    #page-captures .screenshots-wrapper .fp-controlArrow {
        display: block;
        width: 40px; height: 74px;
        transform: scale(0.6);
        opacity: 0.9;
        z-index: 20;
    }
    #page-captures .screenshots-wrapper .fp-controlArrow.fp-prev { left: -48px; }
    #page-captures .screenshots-wrapper .fp-controlArrow.fp-next { right: -48px; }
}

/* Mobile : menu étroit, la page occupe l'espace restant */
@media (max-width: 870px) {
    #sidr { width: 150px; }
    .sidr ul li a, .sidr ul li span { padding: 0 12px; font-size: 10px; }
    #menu-logo img { max-width: 110px; }
    body.sidr-open { width: calc(100% - 150px) !important; }
    .sidr-open #logo { left: 150px; width: calc(100% - 150px); }
    .sidr-open .wrap, .sidr-open .wrap .box { width: 92%; }
    .sidr-open #page-captures .tooltip-wrap { width: 100%; }
}

/* Mobile : plus de scroll interne ; săgeți mai mici și bine încadrate */
@media (max-width: 870px) {
    .page-content { max-height: calc(100vh - 200px); padding-right: 0; }
    #page-temoignages .page-content,
    #page-captures .page-content { max-height: none; overflow: visible; }

    #page-temoignages .fp-controlArrow { transform: scale(0.5); }
    #page-temoignages .fp-controlArrow.fp-prev { left: -10px; }
    #page-temoignages .fp-controlArrow.fp-next { right: -10px; }
    #page-temoignages .clients-content { padding: 0 24px; }

    #page-captures .screenshots-wrapper .fp-controlArrow { transform: scale(0.4); }
    #page-captures .screenshots-wrapper .fp-controlArrow.fp-prev { left: -38px; }
    #page-captures .screenshots-wrapper .fp-controlArrow.fp-next { right: -38px; }
}

/* Menu ouvert : l'icône hamburger reste À L'EXTÉRIEUR du menu, juste à sa droite */
.sidr-open #main-nav { left: 254px; top: 2%; z-index: 1000; }

@media (max-width: 870px) {
    #menu-logo img { margin: 20px auto 15px; max-width: 110px; }
    .sidr ul { margin-top: 0; }
    .sidr-open #main-nav { left: 164px; top: 12px; }
    .sidr-open .navbar { max-height: calc(100% - 90px); }
}

/* Tablettes / smart displays (871–1400px) : menu ouvert, la page occupe l'espace restant */
@media (min-width: 871px) and (max-width: 1400px) {
    body.sidr-open { width: calc(100% - 240px) !important; }
    .sidr-open #logo { left: 240px; width: calc(100% - 240px); }
    .sidr-open .wrap { width: 100%; }
    .sidr-open .wrap .box { width: calc(100vw - 621px); min-width: 250px; margin-left: 30px; }
}
@media (min-width: 1141px) and (max-width: 1400px) {
    .sidr-open .wrap .box { width: calc(50vw - 30px); }
}
@media (min-width: 871px) and (max-width: 1400px) {
    .sidr-open .page-content { max-height: calc(100vh - 160px); }
    .sidr-open .wrap .box { width: calc(100vw - 651px); }
}
@media (min-width: 1141px) and (max-width: 1400px) {
    .sidr-open .wrap .box { width: calc(50vw - 60px); }
}
@media (min-width: 871px) and (max-width: 1140px) {
    .sidr-open .wrap .box { width: calc(100vw - 701px); }
}
@media (min-width: 871px) and (max-width: 1400px) {
    .sidr-open .page .wrap h2.section-title { white-space: normal; font-size: 40px; line-height: 44px; }
}

/* Boutons de navigation latéraux (points) : visibles aussi sur petits écrans */
@media (max-width: 1140px) {
    #fp-nav { display: block; }
    .sidr-open #fp-nav.left { left: 247px; }
}
@media (max-width: 870px) {
    #fp-nav.left { left: 3px; }
    #fp-nav li { width: 9px; height: 9px; margin: 5px 4px; }
    .sidr-open #fp-nav.left { left: 153px; }
}
@media (max-width: 870px) {
    #fp-nav.left { left: 0; }
    #fp-nav li { margin: 5px 3px; }
    .sidr-open #fp-nav.left { left: 150px; }
}

/* Menu ouvert : points de navigation masqués */
.sidr-open #fp-nav, .sidr-animating #fp-nav { display: none !important; }

/* Grands écrans (>1400px) : menu ouvert, la page occupe l'espace restant */
@media (min-width: 1401px) {
    body.sidr-open { width: calc(100% - 240px) !important; }
    .sidr-open #logo { left: 240px; width: calc(100% - 240px); }
    .sidr-open .wrap { width: 1040px; max-width: 100%; }
    .sidr-open .wrap .box { width: 51%; }
}

/* Tablettes portrait (601–870px) : le téléphone avec la main reste affiché, comme sur desktop */
@media (min-width: 768px) and (max-width: 870px) {
    #hand { display: block; }
    .section-image { display: block; right: 89px; left: auto; margin-left: 0; }
    .wrap .box { width: 51%; text-align: left; }
    .section .wrap h2.section-title { text-align: left; }
}
@media (min-width: 768px) and (max-width: 870px) {
    .wrap .box { width: 44%; }
    .simple-button { margin-left: 0; }
}
@media (min-width: 768px) and (max-width: 870px) {
    /* Captures : le carrousel recouvre le téléphone, comme sur desktop */
    #page-captures .screenshots-wrapper,
    .active #page-captures .screenshots-wrapper {
        position: fixed; top: 50%; left: auto; right: 89px;
        width: 232px; max-width: 232px; height: 407px; margin: -192px 0 0 0;
        z-index: 10;
    }
    #page-captures .screenshots-wrapper .fp-controlArrow { transform: scale(0.6); }
    #page-captures .screenshots-wrapper .fp-controlArrow.fp-prev { left: -48px; }
    #page-captures .screenshots-wrapper .fp-controlArrow.fp-next { right: -48px; }
}


/* Tablettes portrait 768–870px : main + téléphone réduits pour laisser la place au texte sur toutes les pages */
@media (min-width: 768px) and (max-width: 870px) {
    #hand,
    .section-image,
    #page-captures .screenshots-wrapper { zoom: 0.75; }
}

/* Captures : la cellule interne du carrousel ne doit pas hériter du padding-top de la section
   (sinon la capture descend de 70px et dépasse de l'écran du téléphone) */
#page-captures .screenshots-wrapper .fp-tableCell { padding-top: 0; vertical-align: middle; }

/* Petits écrans (<768px) : pas de main, la capture est affichée dans un cadre de téléphone */
@media (max-width: 767px) {
    #page-captures .screenshots-wrapper .slide img {
        border: 5px solid #111;
        border-radius: 16px;
        box-shadow: 0 0 0 1px #555, 0 8px 24px rgba(0, 0, 0, 0.6);
        box-sizing: border-box;
    }
}
@media (min-width: 600px) and (max-width: 767px) {
    #page-captures .screenshots-wrapper,
    .active #page-captures .screenshots-wrapper { width: 190px; max-width: 190px; height: 338px; }
    #page-captures .screenshots-wrapper .fp-controlArrow.fp-prev { left: -60px; }
    #page-captures .screenshots-wrapper .fp-controlArrow.fp-next { right: -60px; }
}

/* Captures : les points de navigation recouvraient la liste (les flèches suffisent) */
@media (max-width: 870px) {
    #page-captures .fp-slidesNav { display: none; }
}
/* Tablettes en portrait (768–870px) : la place ne manque pas sous la liste, les points des captures sont
   affichés (en plus des flèches) ; scripts.js les place sous le contenu s'ils risquaient de le recouvrir. */
@media (min-width: 768px) and (max-width: 870px) {
    #page-captures .fp-slidesNav { display: block; }
}


/* Page vidéo (desktop / paysage / portrait) : la vidéo tient en entier, sans barre de défilement */
@media (min-width: 871px) {
    #page-video .page-content,
    #page-interface-web .page-content { max-height: none; overflow: visible; padding-right: 0; }
    #page-video .wp-block-video { float: none; margin: 0; }
    #page-video .wp-block-video video {
        display: block; width: auto; max-width: 100%; height: auto;
        max-height: calc(100vh - 260px);
    }
}

/* Menu ouvert : l'icône hamburger (à droite du menu) ne doit pas recouvrir le logo bleu */
.sidr-open #logo .logo { display: inline-block; margin-left: 5rem; }
@media (max-width: 767px) {
    .sidr-open #logo .logo { margin-left: 1rem; }
}

/* Tablettes portrait : les éléments à deux colonnes (Fonctionnalités, Découvrez, Contact)
   sont centrés dans leur colonne, avec ou sans menu ouvert */
@media (min-width: 768px) and (max-width: 1140px) and (orientation: portrait) {
    .tooltip-wrap { width: 50%; text-align: left; margin-left: 0; margin-right: 0; }
    .sidr-open #page-captures .tooltip-wrap { width: 50%; }
    #page-contact .wpcf7-form { text-align: left; }
}

/* Contact (tablette paysage, menu ouvert) : le formulaire ne doit pas passer sur la main */
@media (min-width: 871px) and (max-width: 1400px) and (orientation: landscape) {
    .sidr-open #page-contact .wpcf7-form { max-width: 540px; }
}

/* Tablettes portrait étroites (768–1000px) : le titre et les listes restent à gauche de la main */
@media (min-width: 768px) and (max-width: 1000px) and (orientation: portrait) {
    .section .wrap h2.section-title { font-size: 44px; line-height: 50px; }
    .sidr-open.page .wrap h2.section-title { font-size: 34px; line-height: 40px; }
    .sidr-open .tooltip-wrap { font-size: 12px; }
    .sidr-open .tooltip-wrap .tooltip { white-space: nowrap; }
    .sidr-open #page-captures .tooltip-wrap,
    .sidr-open #page-fonctionnalites .tooltip-wrap { width: 100%; }
}

/* Tablettes portrait 768–870px, menu ouvert (150px) : la main et le téléphone sont réduits
   (zoom autour du bord droit / milieu vertical) pour tenir à côté du texte */
@media (min-width: 768px) and (max-width: 870px) {
    .sidr-open .wrap { width: 100%; }
    .sidr-open .wrap .box { width: calc(100vw - 460px); min-width: 200px; margin-left: 20px; }
    .sidr-open #page-video .wp-block-video video,
    .sidr-open #page-interface-web .wp-block-video video { max-width: calc(100vw - 570px); }
    .sidr-open #hand,
    .sidr-open .section-image,
    .sidr-open #page-captures .screenshots-wrapper { zoom: 0.62; }
    .sidr-open.page .wrap h2.section-title { white-space: normal; text-align: left; }
    /* le téléphone réduit reste visible aussi sur les pages vidéo et contact */
    body.sidr-open:has(#page-video.active) #hand,
    body.sidr-open:has(#page-interface-web.active) #hand,
    body.sidr-open:has(#page-contact.active) #hand,
    body.sidr-open:has(#page-video.active) .section-image,
    body.sidr-open:has(#page-interface-web.active) .section-image,
    body.sidr-open:has(#page-contact.active) .section-image { display: block; }
}

@media (min-width: 768px) and (max-width: 870px) {
    .sidr-open .tooltip-wrap { text-align: left; }
}
/* Tablettes portrait : la vidéo ne doit pas toucher le logo ni le titre */
@media (min-width: 768px) and (max-width: 1140px) and (orientation: portrait) {
    #page-video .wp-block-video video { max-height: calc(100vh - 400px); }
}

/* Tablettes paysage étroites (871–1140px), menu ouvert : titres et listes restent à gauche du téléphone */
@media (min-width: 871px) and (max-width: 1140px) and (orientation: landscape) {
    .sidr-open.page .wrap h2.section-title { font-size: 34px; line-height: 40px; }
    .sidr-open .tooltip-wrap { width: 50%; font-size: 12px; margin-left: 0; margin-right: 0; }
    .sidr-open .tooltip-wrap .tooltip { white-space: nowrap; }
}

/* Tablettes portrait (1001–1140px), menu ouvert : le titre ne passe pas sous le téléphone */
@media (min-width: 1001px) and (max-width: 1140px) and (orientation: portrait) {
    .sidr-open.page .wrap h2.section-title { font-size: 36px; line-height: 42px; }
}

/* Tablettes portrait étroites (768–870px) : les libellés des deux colonnes restent sur une ligne */
@media (min-width: 768px) and (max-width: 870px) {
    .tooltip-wrap { font-size: 13px; }
    .tooltip-wrap .tooltip { white-space: nowrap; }
}

/* Tablettes portrait 871–1000px (Surface Pro…) : main + téléphone réduits (zoom autour du bord droit /
   milieu vertical) pour que le texte ne passe jamais sur la main, menu fermé ou ouvert */
@media (min-width: 871px) and (max-width: 1000px) and (orientation: portrait) {
    #hand,
    .section-image,
    #page-captures .screenshots-wrapper { zoom: 0.8; }
    .sidr-open #hand,
    .sidr-open .section-image,
    .sidr-open #page-captures .screenshots-wrapper { zoom: 0.62; }
    .sidr-open .wrap .box { width: calc(100vw - 608px); min-width: 0; margin-left: 30px; }
}
/* Tablettes portrait 1001–1140px, menu ouvert */
@media (min-width: 1001px) and (max-width: 1140px) and (orientation: portrait) {
    .sidr-open #hand,
    .sidr-open .section-image,
    .sidr-open #page-captures .screenshots-wrapper { zoom: 0.75; }
    .sidr-open .wrap .box { width: calc(100vw - 654px); min-width: 0; margin-left: 30px; }
}

@media (min-width: 871px) and (max-width: 1140px) and (orientation: portrait) {
    #page-video .wp-block-video video,
    #page-interface-web .wp-block-video video { max-width: calc(100% - 30px); }
}

/* Tablettes paysage 1141–1400px (Surface Pro, iPad Pro…), menu ouvert : texte à gauche de la main */
@media (min-width: 1141px) and (max-width: 1400px) and (orientation: landscape) {
    .sidr-open .wrap .box { width: calc(50vw - 135px); }
    .sidr-open.page .wrap h2.section-title { white-space: normal; font-size: 40px; line-height: 44px; }
}

@media (min-width: 871px) and (max-width: 1400px) and (orientation: landscape) {
    .sidr-open #page-video .wp-block-video video,
    .sidr-open #page-interface-web .wp-block-video video { max-width: calc(100% - 30px); }
}

/* Mobile (<768px) : les éléments à deux colonnes (Fonctionnalités, Découvrez, Contact) sont alignés à gauche
   dans leur colonne, pour que les icônes soient sur la même verticale */
@media (max-width: 767px) {
    .tooltip-wrap { text-align: left; padding-left: 0; box-sizing: border-box; }
    .tooltip-wrap .tooltip { white-space: nowrap; }
    .sidr-open .tooltip-wrap { width: 100%; padding-left: 0; }
}

/* Info-bulles : la flèche reste sous le lien même quand l'info-bulle est décalée pour rester dans l'écran */
.tooltip-content::after { left: calc(50% - var(--tt-shift, 0px)); }
.tooltip-content { margin-bottom: 20px; }

/* Desktop (≥1401px), menu ouvert : la page est décalée mais le téléphone reste fixe.
   Le titre (largeur 140% par défaut) est limité à la colonne de texte pour ne pas passer sur le téléphone */
@media (min-width: 1401px) {
    .sidr-open.page .wrap h2.section-title { width: 100%; }
    .sidr-open #page-video .wp-block-video video { max-width: 420px; }
}

/* Tablettes (768–1400px), menu ouvert : le titre reste dans la colonne de texte (sinon, sur une seule ligne,
   il atteint les doigts de la main) */
@media (min-width: 768px) and (max-width: 1400px) {
    .sidr-open.page .wrap h2.section-title { width: 100%; }
}

/* iPad Mini (768–870px) : la vidéo de l'interface Web est une capture d'écran large. Sur cette page, la main et le
   téléphone sont réduits davantage (zoom 0.5) pour laisser plus de largeur à la vidéo, qui remplit la colonne de texte */
@media (min-width: 768px) and (max-width: 870px) {
    body:has(#page-interface-web.active) #hand,
    body:has(#page-interface-web.active) .section-image,
    body.sidr-open:has(#page-interface-web.active) #hand,
    body.sidr-open:has(#page-interface-web.active) .section-image { display: block; zoom: 0.5; }
    #page-interface-web .wrap .box { width: calc(100vw - 292px); }
    .sidr-open #page-interface-web .wrap .box { width: calc(100vw - 424px); }
    #page-interface-web .wp-block-video,
    .sidr-open #page-interface-web .wp-block-video { width: 100%; }
    #page-interface-web .wp-block-video video,
    .sidr-open #page-interface-web .wp-block-video video { width: 100%; max-width: 100%; height: auto; }
}

/* Tablettes (600–1140px), menu fermé : un peu d'espace entre les points de navigation (à gauche) et le texte.
   Le padding est pris dans la largeur de la boîte : le bord droit du texte ne bouge pas. */
@media (min-width: 600px) and (max-width: 1140px) {
    body:not(.sidr-open) .wrap .box { box-sizing: border-box; padding-left: 28px; }
}

/* Menu latéral : entrée active bien visible (toutes résolutions). Avant, le fond actif était le même rouge
   (#e02217) que le menu lui-même, donc presque invisible. Désormais : fond rouge foncé + barre blanche à gauche.
   La barre est une ombre interne (pas de bordure) pour ne pas décaler le texte. #sidr l'emporte sur
   colors-appsperia.css, chargé après ce fichier. */
#sidr ul li > a,
#sidr ul li > span { background: transparent; }
#sidr ul li:hover > a,
#sidr ul li:hover > span { background: rgba(0, 0, 0, 0.12); }
#sidr ul li.active > a,
#sidr ul li.active > span,
#sidr ul li.sidr-class-active > a,
#sidr ul li.sidr-class-active > span {
    background: #9e140c;
    box-shadow: inset 4px 0 0 #fff;
}
/* Focus clavier dans le menu */
#sidr ul li > a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}
/* Écrans tactiles : pas de halo au toucher, et pas de survol « collé » sur une autre entrée que l'active */
#sidr ul li > a { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
    #sidr ul li:not(.active):hover > a,
    #sidr ul li:not(.active):hover > span { background: transparent; }
}

/* Téléphones en paysage (hauteur ≤ 500px, ex. iPhone SE 667×375, iPhone Pro Max 932×430) : la largeur dépasse
   la règle mobile (≤ 640px), les titres de section reprenaient donc la taille bureau (50px) et touchaient le logo.
   On cible la hauteur : aucune tablette n'est concernée (hauteur ≥ 744px). Menu ouvert ou fermé. */
@media (orientation: landscape) and (max-height: 500px) {
    .page .wrap h2.section-title,
    .sidr-open.page .wrap h2.section-title {
        font-size: 30px;
        line-height: 34px;
        margin-bottom: 10px;
    }
}

/* Témoignages : les diapositives n'ont pas toutes la même hauteur ; le conteneur prend celle de la plus haute et
   les textes courts restaient collés en haut, au-dessus des flèches (centrées). On centre chaque diapositive
   verticalement dans le conteneur : texte et flèches sont alignés. */
#page-temoignages .fp-slidesContainer {
    display: flex;
    align-items: center;
}
#page-temoignages .fp-slidesContainer > .fp-slide { flex: 0 0 auto; float: none; }
/* Indispensable avec le flex : .wrap est un tableau (display: table) qui s'élargit à la largeur minimale de son
   contenu. En flex, cette largeur devient la somme de TOUTES les diapositives (9 côte à côte) : la section
   débordait de l'écran et le contenu était décalé à droite. La fenêtre du carrousel ne compte plus dans ce calcul. */
#page-temoignages .fp-slides { contain: inline-size; }

/* Téléphones (portrait < 600px et paysage) : points de navigation décollés du bord gauche (8px) */
@media (max-width: 599px), (orientation: landscape) and (max-height: 500px) {
    #fp-nav.left { left: 8px; }
}
/* Téléphones en portrait, menu fermé : le contenu laisse une marge à droite des points (8px + 15px de points),
   pour que les flèches des témoignages ne les touchent plus. 36px de chaque côté, le texte reste centré. */
@media (max-width: 599px) {
    body:not(.sidr-open) .section .wrap { width: calc(100% - 72px); }
}

/* Téléphones en paysage : le contenu de section est centré dans la zone libre entre le logo (en haut) et une
   marge en bas, au lieu de tout l'écran ; le titre ne passe plus sous le logo. Une cellule de tableau
   s'agrandit si le contenu est plus haut : le haut du contenu reste toujours sous le logo. */
@media (orientation: landscape) and (max-height: 500px) {
    .section .wrap > .fp-tableCell {
        box-sizing: border-box;
        padding-top: 55px;
        padding-bottom: 45px;
    }
}

/* Téléphones (portrait < 600px et paysage) : texte des témoignages écarté des flèches. Les 24px existants
   (≤ 870px) servaient surtout à laisser la place aux flèches ; on ajoute ~20px de chaque côté. */
@media (max-width: 599px), (orientation: landscape) and (max-height: 500px) {
    #page-temoignages .clients-content { box-sizing: border-box; padding-left: 44px; padding-right: 44px; }
}

/* Tablettes et au-delà (≥ 871px, sans limite haute) : le texte des témoignages est aligné à gauche avec le titre
   de section (pas de marge intérieure à gauche). Pour que le bord du témoignage suivant (ex. le bas du « J » de
   Jean, qui déborde de quelques pixels vers la gauche) ne soit plus visible comme un pixel isolé : 20px de marge
   intérieure à droite (zone toujours vide) et les 4 derniers pixels à droite de la fenêtre sont masqués. */
@media (min-width: 871px) {
    #page-temoignages .clients-content { box-sizing: border-box; padding-left: 0; padding-right: 20px; }
    #page-temoignages .fp-slides { clip-path: inset(0 4px 0 0); }
}

/* Téléphones (portrait < 600px et paysage), menu fermé : blocs « Fonctionnalités » et « Découvrez ImmoOutils »
   centrés horizontalement. Les deux colonnes flottantes à 50% gardaient le texte à gauche (bloc décalé). Grille
   à deux colonnes de la largeur du contenu, centrée ; les icônes restent alignées dans chaque colonne. Le reste
   du contenu (cadre téléphone, séparateur, paragraphes vides) occupe toute la ligne. */
@media (max-width: 599px), (orientation: landscape) and (max-height: 500px) {
    body:not(.sidr-open) #page-fonctionnalites .page-content,
    body:not(.sidr-open) #page-captures .page-content {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        column-gap: 30px;
    }
    body:not(.sidr-open) #page-fonctionnalites .page-content > *,
    body:not(.sidr-open) #page-captures .page-content > * { grid-column: 1 / -1; }
    body:not(.sidr-open) #page-fonctionnalites .page-content > .tooltip-wrap,
    body:not(.sidr-open) #page-captures .page-content > .tooltip-wrap { grid-column: auto; width: auto; float: none; }
    /* Paragraphes vides hérités de WordPress entre les éléments : en pleine ligne, ils forçaient chaque élément
       sur sa propre ligne (une seule colonne, grands espaces). Ils ne contiennent rien : masqués dans la grille. */
    body:not(.sidr-open) #page-fonctionnalites .page-content > p:empty,
    body:not(.sidr-open) #page-captures .page-content > p:empty { display: none; }
}

/* Tablettes en portrait étroites (768–870px) : flèche gauche des témoignages déplacée vers la gauche, dans
   l'espace libre entre les points de navigation latéraux et le texte (elle touchait le début du texte). */
@media (min-width: 768px) and (max-width: 870px) {
    #page-temoignages .fp-controlArrow.fp-prev { left: -40px; }
}

/* Tablettes en portrait (768–1140px) : texte des témoignages aligné à gauche avec le titre de section (plus de
   marge intérieure à gauche ; au-delà de 870px c'était déjà le cas). La marge de droite reste, et les 4 derniers
   pixels à droite de la fenêtre sont masqués : le bord du témoignage suivant n'apparaît pas comme un pixel isolé.
   La flèche gauche (-40px) reste dans l'espace libre à gauche du texte. */
@media (min-width: 768px) and (max-width: 1140px) and (orientation: portrait) {
    #page-temoignages .clients-content { box-sizing: border-box; padding-left: 0; }
    #page-temoignages .fp-slides { clip-path: inset(0 4px 0 0); }
}

/* Tablettes en portrait étroites (768–870px), menu ouvert : le bloc texte commençait ~18px après le menu, et la
   flèche gauche des témoignages (30px à gauche du texte) passait sous le menu. Même marge intérieure gauche (28px)
   que menu fermé : titre et texte se décalent ensemble (toujours alignés), la flèche reste visible. */
@media (min-width: 768px) and (max-width: 870px) {
    .sidr-open #page-temoignages .wrap .box { box-sizing: border-box; padding-left: 28px; }
}

/* Téléphones (portrait < 600px et paysage) : bloc Contact centré horizontalement */
@media (max-width: 599px), (orientation: landscape) and (max-height: 500px) {
    /* Formulaire : marges symétriques (avant : 3% à droite seulement, formulaire décalé à gauche) */
    #page-contact .wpcf7-form input[type="text"],
    #page-contact .wpcf7-form input[type="email"] { margin-left: 1.5%; margin-right: 1.5%; }
    #page-contact .wpcf7-form textarea { width: 97%; margin-left: 1.5%; margin-right: 1.5%; }
    /* Bouton Envoyer centré sous les champs */
    #page-contact .wpcf7-form .wpcf7-submit { float: none; clear: both; display: block; margin: 10px auto 0; }
}

/* Contact : le bloc ne contient plus que le formulaire. Sans info-bulle, il ne reçoit plus la classe with-tooltip
   (scripts.js) et la règle générale du thème (320px de haut au maximum, défilement interne) couperait le formulaire. */
#page-contact .page-content { max-height: none; overflow: visible; }

/* Contact, toutes résolutions : message au-dessus du formulaire. Avant, l'info-bulle d'erreur flottait par-dessus
   les champs Nom / Email et le message général apparaissait sous le bouton (cadre jaune). La zone de message est
   remontée en tête du formulaire (flex + order) et affiche le message précis du champ ; l'info-bulle est masquée
   et le champ en erreur a un contour rouge. */
#page-contact .wpcf7-form { display: flex; flex-direction: column; }
#page-contact .wpcf7-form .wpcf7-response-output {
    order: -1;
    display: block;
    float: none;
    border: none;
    padding: 0;
    width: auto;
    margin: 0 0 10px;
    line-height: 1.5;
    font-size: 13px;
    color: #e02217;
}
/* Message sent: confirmation shown in green (readable on the dark background). Send failures (form.failed) stay
   red, like validation errors. */
#page-contact .wpcf7-form.sent .wpcf7-response-output { color: #3ecf6e; }
#page-contact .wpcf7-form .wpcf7-response-output:empty { display: none; }
#page-contact span.wpcf7-not-valid-tip { display: none; }
#page-contact .wpcf7-form [aria-invalid="true"] { box-shadow: inset 0 0 0 1px #e02217; }
/* Téléphones : message centré, comme le reste du bloc, et aligné sur les champs */
@media (max-width: 599px), (orientation: landscape) and (max-height: 500px) {
    #page-contact .wpcf7-form .wpcf7-response-output { margin: 0 1.5% 10px; text-align: center; }
}

/* Menu latéral, toutes résolutions : indice « autres entrées plus bas ». Le menu défile, mais sa barre de
   défilement est volontairement masquée (margin-right: -20px) : rien n'indiquait les entrées cachées.
   Élément collant en bas de la zone visible du menu, superposé aux entrées (marge négative), sans capter les
   clics. Visible seulement avec la classe menu-has-more (scripts.js). */
#sidr .menu-more {
    display: none;
    position: sticky;
    bottom: 0;
    height: 44px;
    margin-top: -44px;
    margin-right: 20px; /* compense le margin-right: -20px du menu : chevron centré dans la partie visible */
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(224, 34, 23, 0), #e02217 75%);
}
#sidr.menu-has-more .menu-more { display: block; }
/* Chevron cliquable : lien vers la section Contact. Zone de toucher de 44×40px autour du chevron ; le reste du
   dégradé laisse passer les clics vers les entrées dessous. */
#sidr .menu-more-link {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 44px;
    height: 40px;
    margin-left: -22px;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}
#sidr .menu-more-link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 4px; }
/* Chevron vers le bas (bordures blanches d'un carré tourné), qui monte et descend doucement */
#sidr .menu-more-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 9px;
    height: 9px;
    margin-left: -6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    animation: menu-more-bounce 1.6s ease-in-out infinite;
}
@keyframes menu-more-bounce {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(4px) rotate(45deg); }
}
/* Pas d'animation pour les personnes qui préfèrent réduire les mouvements */
@media (prefers-reduced-motion: reduce) {
    #sidr .menu-more-link::after { animation: none; }
}

/* Menu latéral, toutes résolutions : un libellé sur deux lignes (« Télécharger l'application », « Interface Web
   de paramétrage ») ressemblait à deux entrées, car la hauteur venait de la hauteur de ligne (45px / 35px par
   ligne). Désormais : hauteur de ligne serrée (1.3) pour le texte, espacement par marges intérieures haut/bas
   (une entrée sur une ligne garde sa hauteur : 45px, 35px ≤ 640px), et un fin séparateur entre les entrées. */
#sidr ul li { line-height: 1.3; }
#sidr ul li > a,
#sidr ul li > span { padding-top: 14px; padding-bottom: 14px; }   /* texte 13px : ~17px + 28px = 45px */
#sidr ul li + li { border-top: 1px solid rgba(0, 0, 0, 0.15); }
@media (max-width: 870px) {
    #sidr ul li > a,
    #sidr ul li > span { padding-top: 16px; padding-bottom: 16px; }   /* texte 10px : 13px + 32px = 45px */
}
@media (max-width: 640px) {
    #sidr ul li > a,
    #sidr ul li > span { padding-top: 11px; padding-bottom: 11px; }   /* texte 10px : 13px + 22px = 35px */
}

/* Formulaire de contact : champ piège anti-robots, placé hors de l'écran (pas display:none, que certains robots
   savent repérer). Invisible et inaccessible pour les visiteurs. */
.contact-hp {
    position: absolute !important;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Formulaire de contact : emplacement du captcha Turnstile (dans le paragraphe du formulaire, d'où un span en bloc).
   Vide tant que le widget n'est pas chargé ; il n'apparaît que si Cloudflare demande une interaction. */
.contact-captcha { display: block; }
.contact-captcha iframe { margin: 10px 0; max-width: 100%; }

/* Téléphones (portrait < 768px et paysage) : pas de ligne de points sous les carrousels (captures, témoignages),
   les flèches suffisent. */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
    .fp-slidesNav { display: none !important; }
}

/* Téléphones (320–640px) : bouton « Télécharger l'application » de la Présentation plus large. Limité à 100px
   comme les autres boutons, son libellé passait sur deux lignes ; 180px de contenu le gardent sur une seule ligne
   (libellé + icône ≈ 157px en gras 11px). */
@media (min-width: 320px) and (max-width: 640px) {
    #page-presentation .simple-button { max-width: 180px; }
}

/* Présentation, toutes résolutions : retrait de première ligne (alinéa) au début du premier paragraphe, pour une
   entrée en matière moins abrupte. */
#page-presentation .page-content > p:first-of-type { text-indent: 1.5em; }

/* Logo de l'en-tête (rouge sur blanc) : la hauteur suit la largeur quand elle est réduite (max-width 120px sur
   téléphone), sinon l'attribut height="40" l'écraserait. */
#logo img { height: auto; }

/* Info-bulles (tablettes et bureau, > 640px) : l'icône occupait 30 % de la largeur (~100px, police 40px) et le texte
   touchait le bord droit. Colonne d'icône étroite (56px, icône 26px alignée sur la phrase d'accroche), texte plus
   large avec 25px de marge à droite. Les téléphones gardent leur mise en page (icône 14px, marges 20px). */
@media (min-width: 641px) {
    .tooltip-inner .icon {
        width: 56px;
        font-size: 26px;
        line-height: 1.2;
        height: auto;
        margin-right: 0;
        vertical-align: top;
    }
    .tooltip-inner .tooltip-body {
        width: auto;
        height: auto;
        padding-right: 25px;
        vertical-align: top;
    }
}

/* Info-bulles, toutes résolutions : opacité du fond à 90 % (valeur retenue après essais à 95 %, 70 % et 85 %). Même
   chose pour le thème clair. */
.tooltip-content .tooltip-inner { background: rgba(0, 0, 0, 0.9); }
.light .tooltip-content .tooltip-inner { background: rgba(255, 255, 255, 0.9); }

/* Info-bulles, toutes résolutions : le texte revient à la ligne. Les libellés de la liste sont en nowrap (téléphones,
   tablettes étroites, menu ouvert) et l'info-bulle, placée dans le libellé, en héritait : la description restait sur
   une seule ligne, coupée par la boîte. La boîte s'allonge désormais en hauteur selon son contenu. */
.tooltip-content { white-space: normal; }

/* Tablettes en portrait étroites (768–870px, iPad mini), menu fermé : « Découvrez ImmoOutils » plus large. À 44 % de la
   largeur, chaque colonne de modules faisait ~138px et les libellés (jusqu'à ~168px avec l'icône) se chevauchaient.
   La boîte s'arrête avant la main qui tient le téléphone (~446px à 768px), soit ~190px par colonne. */
@media (min-width: 768px) and (max-width: 870px) and (orientation: portrait) {
    body:not(.sidr-open) #page-captures .wrap .box { width: calc(100vw - 360px); }
}

/* Tablettes en paysage (871–1140px, ex. iPad mini 1024px), menu fermé : colonnes de « Découvrez ImmoOutils » plus
   larges. À 38 % (valeur du thème), chaque colonne faisait ~168px et « Plus-value immobilière » (~180px avec l'icône)
   passait sur deux lignes ; à 46 %, ~203px, la liste s'arrête bien avant la main qui tient le téléphone. */
@media (min-width: 871px) and (max-width: 1140px) and (orientation: landscape) {
    body:not(.sidr-open) #page-captures .tooltip-wrap { width: 46%; }
}

/* Libellés des listes (Fonctionnalités, Découvrez) : texte simple, sans lien « # » (le # changeait l'adresse et
   gênait la navigation par sections). Curseur « main » pour indiquer l'info-bulle ; au clavier (Tab), l'info-bulle
   s'ouvre aussi, avec un contour visible sur le libellé. */
span.tooltip { cursor: pointer; -webkit-tap-highlight-color: transparent; }
span.tooltip:focus { outline: none; }
span.tooltip:focus-visible .tooltip-label { outline: 1px dotted currentColor; outline-offset: 3px; }
.tooltip:focus-visible .tooltip-content { opacity: 1; pointer-events: auto; transition-delay: 0s; }
.tooltip:focus-visible .tooltip-text { transform: scale3d(1, 1, 1); transition-delay: 0s; }
.tooltip:focus-visible .tooltip-inner { transform: translate3d(0, 0, 0); transition-delay: 0.3s; }

/* Découvrez ImmoOutils, écrans avec souris : curseur « aide », la convention des éléments qui ont une
   info-bulle (le soulignement pointillé a été retiré ; c'est le chevron de la pulsation qui signale l'info-bulle). */
@media (hover: hover) and (pointer: fine) {
    #page-captures span.tooltip { cursor: help; }
}

/* Indice « il y a quelque chose ici » : à l'arrivée sur Découvrez ImmoOutils, chaque élément pulse
   brièvement, l'un après l'autre, du premier au dernier (classe posée par scripts.js, une fois par visite, arrêtée dès
   que le visiteur survole ou touche un élément). L'icône grossit un instant, le libellé s'éclaire. */
@keyframes hint-pulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.4); }
}
.hint-pulse > .tooltip > .icon { display: inline-block; animation: hint-pulse 0.9s ease-in-out; }
.hint-pulse .tooltip-label { color: #fff; text-shadow: 0 0 10px rgba(226, 6, 19, 0.9); }
.tooltip-label { position: relative; transition: color 0.3s, text-shadow 0.3s; }
/* Petit chevron rouge vers le haut (les info-bulles s'ouvrent au-dessus du libellé), à droite du libellé, visible
   seulement pendant la pulsation : il y a quelque chose à ouvrir ici. Positionné en absolu : il ne décale pas la liste. */
.tooltip-label::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 6px;
    height: 6px;
    margin-top: -2px;
    border-left: 1px solid #e02217;
    border-top: 1px solid #e02217;
    transform: rotate(45deg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.hint-pulse .tooltip-label::after { opacity: 1; animation: hint-chevron 0.9s ease-in-out; }
@keyframes hint-chevron {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-3px) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hint-pulse > .tooltip > .icon,
    .hint-pulse .tooltip-label::after { animation: none; }
}

/* Info-bulles (tablettes et bureau, > 640px) : la hauteur suit le contenu. La boîte (tableau) avait 80px de hauteur
   minimale + 30px de marge en haut et en bas, soit ~140px même pour une ligne (coordonnées de Contact) : grand vide
   sous le texte. Comme sur téléphone : pas de hauteur minimale, 20px de marge en haut et en bas. */
@media (min-width: 641px) {
    .tooltip-content .tooltip-inner {
        min-height: 0;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Points de navigation latéraux (sections), toutes résolutions : 30 % plus grands. 12px -> 16px sur grand écran,
   9px -> 12px jusqu'à 870px. Le point actif reste plein (ombre interne de 8px ≥ moitié du diamètre). */
#fp-nav li { width: 16px; height: 16px; }
@media (max-width: 870px) {
    #fp-nav li { width: 12px; height: 12px; }
}

/* Tablettes étroites (600–870px, ex. iPad mini en portrait) : points de navigation latéraux décollés du bord gauche
   (ils étaient à 0px). Les téléphones gardent leurs 8px ; au-delà de 870px, la position du thème (17px) s'applique. */
@media (min-width: 600px) and (max-width: 870px) and (min-height: 501px) {
    #fp-nav.left { left: 12px; }
}

/* Fonctionnalités, tablettes, menu fermé : espace entre les deux colonnes. Les téléphones (grille avec 30px d'écart)
   ne sont pas concernés : la condition de hauteur écarte les téléphones en paysage.
   - Tablettes en portrait étroites (768–870px, iPad mini) : boîte élargie comme « Découvrez » (colonnes ~190px au lieu
     de ~138px, libellés jusqu'à ~147px avec l'icône), arrêtée avant la main qui tient le téléphone.
   - Tablettes en paysage (871–1140px) : colonnes à 46 % au lieu de 38 %, pour garder les libellés sur une ligne.
   - Toutes tablettes : 20px de marge à droite de chaque colonne. */
@media (min-width: 768px) and (max-width: 870px) and (orientation: portrait) {
    body:not(.sidr-open) #page-fonctionnalites .wrap .box { width: calc(100vw - 360px); }
}
@media (min-width: 871px) and (max-width: 1140px) and (orientation: landscape) {
    body:not(.sidr-open) #page-fonctionnalites .tooltip-wrap { width: 46%; }
}
@media (min-width: 768px) and (max-width: 1140px) and (min-height: 501px) {
    body:not(.sidr-open) #page-fonctionnalites .tooltip-wrap { box-sizing: border-box; padding-right: 20px; }
}

/* Tablettes étroites (768–870px), témoignages : flèches rapprochées du texte (8px de chaque côté). La flèche gauche
   (-40px) se retrouvait contre les points de navigation latéraux depuis qu'ils sont décalés de 12px ; la droite
   restait loin des lignes de texte. */
@media (min-width: 768px) and (max-width: 870px) {
    #page-temoignages .fp-controlArrow.fp-prev { left: -32px; }
    #page-temoignages .fp-controlArrow.fp-next { right: -2px; }
}

/* Téléphones (portrait < 600px et paysage), témoignages : flèches rapprochées du texte. Le texte a 44px de marge de
   chaque côté et les flèches étaient au bord du bloc (-10px), soit ~24px de vide ; elles avancent de 16px vers le
   texte (~8px d'écart), loin des points de navigation latéraux. */
@media (max-width: 599px), (orientation: landscape) and (max-height: 500px) {
    #page-temoignages .fp-controlArrow.fp-prev { left: 6px; }
    #page-temoignages .fp-controlArrow.fp-next { right: 6px; }
}

/* Screenshots carousel, all screen sizes: the image fills the phone frame exactly (100% width and height, never
   wider), cropped from the bottom if needed so the app's header stays visible.
   - Phones: on iPhone (WebKit, so Safari and Brave alike) the screenshot was larger than the frame and cut off on
     the right and bottom. fullPage wraps each slide in a table (display: table / table-cell), and WebKit lets an
     image with a percentage width widen that table to the image's own size: the slide is a plain block instead.
   - Tablets and desktop: the frame is 232x407px (slightly wider than 9:16) and the image was 407px high with an
     automatic width (229px), leaving a 3px gap on the right where the hand mockup's own white screenshot showed
     through (visible on darker slides). */
@media all {
    #page-captures .screenshots-wrapper .fp-slide.fp-table { display: block; }
    #page-captures .screenshots-wrapper .fp-slide .fp-tableCell {
        display: block;
        width: 100%;
        height: 100% !important;
    }
    #page-captures .screenshots-wrapper .slide img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }
}

/* Text selection, whole site: ImmoOutils / Orpi red (#E20613, same as the logo) with white text, instead of the
   browser's default blue. */
::selection { background: #e20613; color: #fff; }
::-moz-selection { background: #e20613; color: #fff; }

/* "Découvrez ImmoOutils" screenshots, all screen sizes: clicking a screenshot opens the full-screen viewer
   (public/js/screenshot-viewer.js). Zoom cursor on the image, and a small "expand" badge in the bottom-right corner
   of the phone frame (drawn on the frame, so it doesn't move with the slides; it doesn't catch clicks). */
#page-captures .screenshots-wrapper .slide img { cursor: zoom-in; }
#page-captures .screenshots-wrapper .slide img:focus-visible { outline: 2px solid #e20613; outline-offset: -2px; }
#page-captures .screenshots-wrapper::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 5;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 15px no-repeat;
    pointer-events: none;
}

/* Full-screen screenshot viewer: dark background, one screenshot per "page" of a horizontal strip with native
   swipe and snapping, counter at the top, close button top-right, arrows on devices with a mouse. */
.shot-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.94);
}
.shot-viewer[hidden] { display: none; }
.shot-viewer__strip {
    position: absolute;
    inset: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.shot-viewer__strip::-webkit-scrollbar { display: none; }
.shot-viewer__item {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 60px 16px 40px;
    box-sizing: border-box;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
.shot-viewer__item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 0 0 1px #555, 0 12px 40px rgba(0, 0, 0, 0.7);
}
.shot-viewer__counter {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.05em;
    pointer-events: none;
}
/* Close button: 44px touch target with a white ✕ drawn in CSS */
.shot-viewer__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}
.shot-viewer__close::before,
.shot-viewer__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    margin: -1px 0 0 -10px;
    background: #fff;
}
.shot-viewer__close::before { transform: rotate(45deg); }
.shot-viewer__close::after { transform: rotate(-45deg); }
.shot-viewer__close:hover,
.shot-viewer__close:focus-visible { background: #e20613; outline: none; }
/* Previous / next arrows (thin chevrons), only on devices with a mouse: touch screens swipe */
.shot-viewer__nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 64px;
    margin-top: -32px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: none;
}
.shot-viewer__nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
}
.shot-viewer__nav--prev { left: 12px; }
.shot-viewer__nav--prev::before { transform: translateX(3px) rotate(-45deg); }
.shot-viewer__nav--next { right: 12px; }
.shot-viewer__nav--next::before { transform: translateX(-3px) rotate(135deg); }
.shot-viewer__nav:hover::before,
.shot-viewer__nav:focus-visible::before { border-color: #e20613; }
.shot-viewer__nav:focus-visible { outline: none; }
.shot-viewer__nav[disabled] { opacity: 0.25; cursor: default; }
@media (hover: hover) and (pointer: fine) {
    .shot-viewer__nav { display: block; }
    .shot-viewer__item { padding-left: 72px; padding-right: 72px; }
}

/* Backoffice video ("Interface Web de paramétrage"), all screen sizes: an "expand" button in the top-right corner of
   the video opens it in the full-screen viewer (public/js/video-viewer.js), which reuses the screenshot viewer's dark
   background and close button above. The button is in the top corner so it never covers the native controls bar. */
#page-video .wp-block-video,
#page-interface-web .wp-block-video { position: relative; }
.video-expand {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
    cursor: zoom-in;
}
.video-expand:hover,
.video-expand:focus-visible { background-color: #e20613; outline: none; }
/* Keeps the video's place in the page while the video is in the viewer */
.video-viewer__placeholder { display: inline-block; max-width: 100%; vertical-align: top; }
/* The video centred in the viewer, as large as the screen allows (same margins as the screenshots) */
.video-viewer__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 40px;
    box-sizing: border-box;
}
.shot-viewer .video-viewer__stage video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 0 1px #555, 0 12px 40px rgba(0, 0, 0, 0.7);
}
@media (hover: hover) and (pointer: fine) {
    .video-viewer__stage { padding-left: 72px; padding-right: 72px; }
}

/* Page background colour behind the dark photo (html's background-image, set in Layout.astro), close to the photo's
   edges. Without it, whatever the photo doesn't reach is white: on iPhone (Brave, Safari) the strip under the status
   bar, the thin edges and the band above the browser toolbar showed as a white border. */
html { background-color: #202020; }

/* Phones (< 768px), "ImmoOutils en vidéo": explicit height for the app demo, at most 80% of the screen height and
   never more than the space left between the title and the bottom of the screen. On iPhone (WebKit) the video took its
   height from its own size (592x1204) because only max-height was set, and 100vh there ignores the browser bars;
   svh (small viewport) is measured with the bars visible. vh is the fallback for older browsers. */
@media (max-width: 767px) {
    #page-video .wp-block-video video {
        height: min(80vh, calc(100vh - 230px));
        height: min(80svh, calc(100svh - 230px));
        width: auto;
        max-width: 100%;
        max-height: none;
        object-fit: contain;
    }
}

/* Phones (portrait < 768px and landscape), side navigation dots 50% bigger for touch: 12px -> 18px, a little more
   space between them; the current section's dot stays fully filled (inner shadow = half the diameter). */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
    #fp-nav li { width: 18px; height: 18px; margin: 6px 4px; }
    #fp-nav li a.active { box-shadow: inset 0 0 0 9px #fff; }
    .light #fp-nav li a.active { box-shadow: inset 0 0 0 9px #000; }
}

/* Phones in portrait (< 600px), menu closed: more room between the side navigation dots (now 18px) and the text of
   "Présentation" and "Télécharger l'application", whose lines started right next to the dots. The extra space is
   added on the left of the text block only. */
@media (max-width: 599px) {
    body:not(.sidr-open) #page-presentation .wrap .box,
    body:not(.sidr-open) #page-telechargement .wrap .box { box-sizing: border-box; padding-left: 22px; }
}

/* Phones (portrait < 600px and landscape), Contact: clear space between the Message field and the "Envoyer" button.
   The fields are floated and the button clears them, so a top margin on the button is swallowed by the clearance: the space is the Message field's
   bottom margin instead, and the button's own top margin is removed. */
@media (max-width: 599px), (orientation: landscape) and (max-height: 500px) {
    #page-contact .wpcf7-form textarea { margin-bottom: 40px; }
    #page-contact .wpcf7-form .wpcf7-submit { margin-top: 0; }
}

/* Touch screens (phones, tablets): form fields at 16px. iPhone Safari zooms the whole page in when a field with text
   smaller than 16px gets focus (they were 13px, 11px on phones), which cut off and shifted the Contact section. */
@media (hover: none) and (pointer: coarse) {
    .wpcf7-form input,
    .wpcf7-form textarea,
    .wpcf7-form select { font-size: 16px; }
}
/* Contact, Message box: grows with the text (public/js/contact-form.js) up to a cap, then scrolls inside.
   Phones 120px (about 5 lines at 16px, the box and "Envoyer" still fit above the keyboard), elsewhere 150px (about
   7 lines at 13px). */
#page-contact .wpcf7-form textarea { max-height: 150px; overflow-y: hidden; transition: height 0.15s; }
@media (max-width: 599px), (orientation: landscape) and (max-height: 500px) {
    #page-contact .wpcf7-form textarea { max-height: 120px; }
}
