/*Menu - Menu Hamburger tres petit ecran*/
@media (max-width: 400px) {
  .services {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block ;
    font-size: 17px;
    line-height: 1;
    background: transparent ;
    color: #000 ;
    padding: 8px ;
    border: none ;
    cursor: pointer;
    z-index: 9999;
  }

  .header-inner {
    align-items: stretch ;
	flex-direction: column;
  }

  .main-nav {
    display: none ;
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
	gap: 8px;
  }

  .main-nav.open {
    display: flex ;
  }
  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 0px;
  }
  .g-recaptcha {
    transform: scale(0.65);
    transform-origin: left top;
  }
}

@media (min-width: 401px) and (max-width: 600px) {

  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: left top;
  }
}

/* Menu pour telephone normal */
@media (min-width: 401px) and (max-width: 768px) {

.header-inner {
    flex-direction: column;
  }

  .main-nav {
    justify-content: center;
	gap: 20px;
  }
  .main-nav a {
	padding: 12px 15px;
  }
}

@media (max-width: 600px) {

  .site-footer {
    padding: 0px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 12px 14px;
    justify-content: center;
    padding: 5px 10px;
    text-align: left;
  }

  .footer-title {
    font-size: clamp(10px, 2.5vw, 11px);
    margin-bottom: 2px;
    letter-spacing: 0.4px;
  }

  .footer-text {
    font-size: clamp(11px, 2.8vw, 12px);
    line-height: 1.2;
  }

  .footer-logo img {
    max-width: 90px;
  }

  .footer-bottom  {
    padding-top: 10px;
	margin-top: 0px;
  }
  .footer-bottom p,
  .footer-bottom a {
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
  }

  .back-to-top i {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
	
  body {
    padding-bottom: 90px;
    -webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
  }

  .page-header h1 {
    font-size: 24px;
  }
  
  .form-row {
	flex-direction: column;
  }
  .social-bar {
    top: auto;
    bottom: 5px;
    left: 50%;
    right: auto;

    transform: none;

    margin-left: -90px;
    
    flex-direction: row;
    padding: 10px 16px;
    border-radius: 40px;
  }
  .cookie-banner,
  .cookie-banner.expanded {
    left: 50% ;
    right: auto;
	transform: translateX(-50%);
    max-height: calc( 100svh - 70px );
    bottom: 70px;
	overflow-y: auto;
	max-width: calc(100% - 30px);
	width: 95dvw;
  }
  .cookie-banner .cookie-scroll {
	overflow-y: hidden;
	max-height: 100%;
  }
  
  .cookie-details {
	margin-top: 10px;

  }
  .social-bar .social {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .cookie-actions {
    flex-wrap: wrap;
	justify-content: center;
  }
  .cookie-banner p {
    text-align: center;
  }
  .cookie-text {
    overflow-y: hidden;
    max-height: none; /* ajustable */
  }
    .footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* ICÔNE */
  .footer-icon {
    width: clamp(28px, 7vw, 34px);
    height: clamp(28px, 7vw, 34px);
    font-size: clamp(12px, 3vw, 14px);
    border-width: 1px;
    flex-shrink: 0;
  }
  /* Le bouton enregistrer reste toujours visible et on peu scroll le reste, peut aider sur mini ecran*/
  /*.cookie-banner {
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - 85px);
}

.cookie-scroll {
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}

.cookie-actions {
  position: sticky;
  bottom: 0;
  background: inherit;
  padding: 10px 0;
}*/

}

/* Si ios Detecté Social barre, si non sociale barre de base */
@supports (-webkit-touch-callout: none) {
  .social-bar {
    bottom: calc(15px + env(safe-area-inset-bottom));
  }
  .cookie-banner,
  .cookie-banner.expanded {
	max-height: calc( 100svh - 85px - env(safe-area-inset-bottom) + 2px);
	bottom: calc(85px + env(safe-area-inset-bottom) - 2px);
	width: 90dvw;
  }
  .cookie-banner .cookie-scroll {
	overflow-y: hidden;
  }
}

/*Tablette */
@media (pointer: coarse) and (min-width: 769px) and (max-width: 1366px) {
  body {
    padding-bottom: 90px;
    -webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
  }
  .social-bar {
    top: auto;
    bottom: 15px;
    left: 50%;
    right: auto;

    transform: none;

    margin-left: -90px;
    
    flex-direction: row;
    padding: 10px 16px;
    border-radius: 40px;
  }
}