/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Sticky Navigation */
.main-navigation.is_stuck,
.main-navigation.is_stuck ul ul{
    background-color: #FFF;
}
.main-navigation.navigation-stick .main-nav ul li a,
.main-navigation.navigation-stick a:not([aria-label*='Close'])  {
    color: #000 !important;
}
/*Hero content*/
.hero-content {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: clamp(2rem, 5vw, 4rem);
}
/* ESPACE MENU MOBILE */
.slideout-navigation.main-navigation .main-nav ul li a {
		padding-left: 20px;
    padding-bottom: 20px;
}
/*============= Definelment image ============================
.owd-reveal {
	--radius: 36px;
	animation: owd-reveal linear forwards;
	animation-timeline: view();
	animation-range: entry;
	border-radius: var(radius);
}

@keyframes owd-reveal {
	0%{
		clip-path: inset(25%);
	}
	
	100%{
		clip-path: inset(0% round var(--radius)) ;
	}
}
/*============= MOBILE BAR =========================================*/
.mobile-action-bar {
	position: fixed;
	width: 100%;
	bottom: 0;
	z-index: 999
}

.mobile-action-bar > *:not(:last-child) {
	border-right: 1px solid lightgray
}
/*********************************/

.author-trucarted-bio {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	-webkit-line-clamp: 4;
}

/*Slider Logo */
@media (prefers-reduced-motion: no-preference) {
	.image-slider {
	animation: slide linear;
	animation-timeline: scroll();
}

@keyframes slide {
	to {
		transform: translate(-20%)
	}
}
.slider-section{
mask-image: linear-gradient(90deg, transparent 0%, #eaf2fd 20%, #eaf2fd 80%, transparent 100%);
}
.image-slider-reverse{
	animation: slide-reverse linear;
	animation-timeline: scroll();
}
@keyframes slide-reverse {
	to {
		transform: translate(20%)
	}
}
}
/*animation*/ 
	.owd-fade-in {
		animation: owd-fade-in linear forwards;
		animation-timeline: view();
		animation-range: entry;
	}
	
	@keyframes owd-fade-in {
		
		0% {
			transform: translatey(400px)
		}
		
		50% {
			opacity: 0;
		}
		
		100% {
			opacity: 1;
			transform: translatey(0px)
		}
	}
	/* PRICING TEXT */
.pricing-text .gb-highlight
	{font-size: 16px; font-weight: normal}
	/*** RATIO 16:9 ****/
.izi-ratio-16-9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Format 16:9 */
    background-color: #000 /* bandes noires */
    overflow: hidden;
  }
.izi-ratio-16-9 picture,
  .izi-ratio-16-9 img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* image entière visible */
  }
/*==============================================*/
/*==============================================*/
/* HERO  */
.hero-gp {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
}
/* Overlay / Gradient */
.hero-gp:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgba(0, 27, 68, 0.75),
        rgba(0, 60, 125, 0.55)
    );
    z-index: 1;
}
/* Contenu */
.hero-gp .hero-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
    text-align: center;
    color: #ffffff;
}
.hero-gp h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero-gp p {
    font-size: 19px;
    margin-bottom: 28px;
    opacity: 0.95;
}
.hero-gp .hero-buttons a {
    margin: 0 8px;
}
/*===========================================================*/
/*===================== SECTION NOS SERVICES ===============*/
/*=========================================================*/
.section-nos-services {
  position: relative;
  background: linear-gradient(180deg, #eff6ff 0%, #bfdbfe 100%);
}

.section-nos-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: radial-gradient(circle at top center, rgba(255,255,255,0.7) 0%, transparent 70%);
  pointer-events: none;
	z-index: -1;
}
/* ombre interne + bordure subtile + fond semi-transparent blanc */
.card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
/*================================================================/
/*======= gradient subtil sur la section “Nos services” ========*/
/*=============================================================*/
.section-nos-services {
  background: linear-gradient(180deg, #eff6ff 0%, #bfdbfe 70%, #aecbfd 100%);
}
/* plus immersif :aligne verticalement ton texte sans que le padding soit fixe.
Tu gardes l’impact d’un vrai hero immersif avec une sensation d’équilibre parfait. */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
}
/*==========================================================*/
/*================ HEADER ANIMATION ====================== */
/*========================================================*/

.main-navigation .menu > li > a {
  position: relative;
  color: #FFFFFF; /* texte blanc par défaut */
  transition: color 0.3s ease;
}

/* Hover et élément actif */
.main-navigation .menu > li:hover > a,
.main-navigation .current-menu-item > a {
  color: #bfdbfe; /* ton vert CleanAccotax */
}
/* Ligne animée sous le texte (slide-in depuis le centre) */
.main-navigation .menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 40%;
  height: 2px;
  background-color: #172554;
  border-radius: 2px;
  transition: transform 0.3s ease;
}
/* Apparition à l’hover et sur la page active */
.main-navigation .menu > li:hover > a::after,
.main-navigation .current-menu-item > a::after {
  transform: translateX(-50%) scaleX(1);
}
/*=================== SOUS-MENU =================================*/
/* --- Sous-menu container --- */
.main-navigation .sub-menu {
  background-color: #FFFFFF; /* fond blanc pour cohérence visuelle */
  border-radius: 8px;
  padding: 10px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  margin-top: 4px; /* aucun espace entre header et submenu */
}
/* --- Liens du sous-menu --- */
.main-navigation .sub-menu li a {
  display: block;
  color: #bfdbfe; /* bleu du header pour cohérence */
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}
/* --- Effet de surlignement au hover --- */
.main-navigation .sub-menu li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color:  #bfdbfe; /* ton vert CleanAccotax */
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  border-radius: 0 4px 4px 0;
}
/* --- Au survol : effet de surlignement et changement de fond --- */
.main-navigation .sub-menu li:hover > a {
  background-color: #bfdbfe; /* léger vert pastel */
  color: #1A2B4C;
}
.main-navigation .sub-menu li:hover > a::before {
  transform: scaleY(1);
}
/* --- Élément actif du sous-menu --- */
.main-navigation .sub-menu .current-menu-item > a {
  background-color: rgba(46, 139, 87, 0.1);
  color: #bfdbfe;
  font-weight: 600;
}
.main-navigation .sub-menu .current-menu-item > a::before {
  transform: scaleY(1);
}
/* --- Zone tolérante entre menu parent et sous-menu --- */
.main-navigation li.menu-item-has-children:hover > .sub-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.main-navigation .sub-menu {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  margin-top: 2px; /* Réduit la zone morte */
  pointer-events: none;
}

/* --- Agrandir la zone de survol invisible sous le parent --- */
.main-navigation li.menu-item-has-children {
  position: relative;
}
.main-navigation li.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px; /* crée une zone de tolérance */
  height: 10px;
  background: transparent;
}
/*===============================================*/
/*========== ANIMATION OFF  MOBILE =============*/
/*===============================================*/
@media (max-width: 768px) {
  .animate {
    -webkit-animation: none !important;
            animation: none !important;
    -webkit-transform: none !important;
            transform: none !important;
    transition-property: none !important;
    opacity: 1 !important;
  }
}
/*===========================================================*/
/*================= ANNIMATION SITE ========================*/
/*==========================================================*/
@media (prefers-reduced-motion: no-preference) {
  .animate {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
    transition: 
      opacity 2s cubic-bezier(0.33, 1, 0.68, 1),
      transform 1.5s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: opacity, transform;
  }

  .animate.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* Delays pour cascade subtile */
  .animate[data-delay="1"] { transition-delay: 0.1s; }
  .animate[data-delay="2"] { transition-delay: 0.2s; }
  .animate[data-delay="3"] { transition-delay: 0.3s; }
  .animate[data-delay="4"] { transition-delay: 0.4s; }
  .animate[data-delay="5"] { transition-delay: 0.5s; }
  .animate[data-delay="6"] { transition-delay: 0.6s; }

  /* Désactivation dans l’éditeur */
  .editor-styles-wrapper .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/*================== PAGE SERVICES =======================*/
/* GRID 2 colonnes moderne */
.gp-service-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem auto;
    max-width: 1100px;
    padding: 0 1rem;
}
/* Texte */
.gp-service-text {
    max-width: 600px;
}

.gp-section-title {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.gp-section-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 2rem;
}
/* Bénéfices */
.gp-section-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.benefit-item {
    background: rgba(0,0,0,0.04);
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    display: flex;
    gap: .5rem;
    align-items: center;
}
/* Image */
.gp-service-image img {
    width: 100%;
    border-radius: 1rem;
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.1));
}
/* Responsive */
@media (max-width: 900px) {
    .gp-service-intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .gp-section-benefits {
        grid-template-columns: 1fr 1fr;
    }
}

/* GRID responsive */
.gp-service-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem;
}
/* Texte */
.gp-section-title {
    font-size: clamp(1.8rem, 2.7vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.gp-section-subtext {
    font-size: 1.1rem;
    line-height: 1.65;
    opacity: 0.85;
    margin-bottom: 2rem;
}

/* Icônes + items */
.gp-section-benefits {
    display: grid;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(0,0,0,0.04);
    padding: 1rem 1.2rem;
    border-radius: .75rem;
    font-size: 1rem;
    transition: 0.25s ease;
}

.benefit-item:hover {
    background: rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

/* Icônes */
.benefit-item svg {
    color: #1E40AF; /* bleu sérieux et pro */
}

/* Image */
.gp-service-image img {
    width: 100%;
    border-radius: 1rem;
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.12));
}

/* Responsive */
@media (max-width: 900px) {
    .gp-service-intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .benefit-item {
        justify-content: center;
    }
}
/*============ PAGE SERVICE POURQUOI ========================
/* Bloc Pourquoi nous choisir */
.gp-why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 80px;
}

.gp-why-list {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
}

.why-item svg {
    color: #0073e6;
}

/* Image */
.gp-why-image img {
    width: 100%;
    border-radius: 12px;
	max-width:480px;
}

/* Responsive */
@media (max-width: 900px) {
    .gp-why-choose-grid {
        grid-template-columns: 1fr;
    }

    .gp-why-image {
        order: -1;
    }
}
/*====================== SEPARATEUR =============*/
.section-gradient-fade {
    height: 40px;
    background: linear-gradient(to bottom, transparent, #f1f5f9);
}
.section-divider-angled {
    height: 60px;
    background: linear-gradient(to right, #eff6ff, #ffffff);
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
}
/*==================== PAGE CONTACT ===========/
/* Section globale */
.gp-contact-why {
    text-align: center;
    padding: 0px 20px 60px;
}

/* Titre */
.gp-contact-title {
    font-size: clamp(1.75rem, 1.384rem + 1.395vi, 2.5rem);
	max-width:900px
    margin-bottom: 40px;
    font-weight: 700;
}

/* Grille avantages */
.gp-contact-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gp-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.gp-benefit-item p {
    margin: 0;
    font-size: clamp(1rem, 0.939rem + 0.233vi, 1.125rem);
    line-height: 1.5;
}

/* Liens complémentaires */
.gp-contact-links p {
    margin: 8px 0;
    font-size: clamp(1rem, 0.939rem + 0.233vi, 1.125rem);
}

.gp-contact-links a {
    color: var(--accent-color, #0057ff);
    font-weight: 600;
    text-decoration: underline;
}

/* CTA */
.gp-contact-cta {
    margin-top: 35px;
}

.gp-btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent-color, #0057ff);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.gp-btn-primary:hover {
    opacity: 0.85;
}
/*==================== bloc pourquoi nous faire confiance ================*/
/* Section globale */
.gp-contact-why {
    text-align: center;
    padding: 60px 20px;
}

/* Titre */
.gp-contact-title {
    font-size: clamp(26px, 4vw, 34px);
    margin-bottom: 40px;
    font-weight: 700;
}

/* Grille avantages */
.gp-contact-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gp-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.gp-benefit-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Liens complémentaires */
.gp-contact-links p {
    margin: 8px 0;
    font-size: 15px;
}

.gp-contact-links a {
    color: var(--accent-color, #0057ff);
    font-weight: 600;
    text-decoration: underline;
}

/* CTA */
.gp-contact-cta {
    margin-top: 35px;
}

.gp-btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent-color, #0057ff);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.gp-btn-primary:hover {
    opacity: 0.85;
}
/*============ BLOC PROCESSUS D'INTERVENTION ==================*/
/* SECTION PROCESS */
.gp-process-section {
    background: #f8f9fb;
    padding: 80px 20px;
    margin-top: 60px;
    border-radius: 16px;
}

/* TITLE */
.gp-process-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* STEPS LAYOUT */
.gp-process-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* CARDS */
.gp-process-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    width: 320px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gp-process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.10);
}

/* ICONS */
.gp-process-icon {
    color: #1d4ed8; /* Ta couleur de marque */
    margin-bottom: 20px;
}

/* TEXT */
.gp-process-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.gp-process-card p {
    font-size: 16px;
    line-height: 1.55;
    color: #555;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .gp-process-steps {
        flex-direction: column;
        align-items: center;
    }
    .gp-process-card {
        width: 100%;
        max-width: 380px;
    }
}

/* ======================= Calculateur de conso ==================*/
/* Styles pour le Conteneur */
.izi-calculator-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Styles pour les champs de formulaire */
.izi-calculator-form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #004d99; /* Couleur IZIPC ou Thème */
}
.izi-calculator-form select, 
.izi-calculator-form input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Styles pour le bouton */
#calculate-button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 25px;
    font-size: 1.1em;
    transition: background-color 0.3s;
}
#calculate-button:hover {
    background-color: #0056b3;
}

/* Styles pour les Résultats */
.izi-calculator-results {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #004d99;
    border-radius: 8px;
    background-color: #eaf4ff;
}
#total-wattage, #recommended-psu {
    font-weight: 700;
    color: #d9534f; /* Couleur pour les valeurs importantes */
}
.check-status {
    padding: 8px;
    margin-top: 10px;
    border-radius: 4px;
    font-weight: 600;
}
.check-status.ok {
    background-color: #d4edda;
    color: #155724;
}
.check-status.warning {
    background-color: #f8d7da;
    color: #721c24;
}
.warning-text {
    font-style: italic;
    color: #6c757d;
    margin-top: 20px;
}
