/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/*navbar style menu custom Logia*/

/*navbar style menu custom Logia*/

.customNavbar a{
    line-height: 1.6rem!important;
}

@media all and (min-width: 1200px){
    .customNavbar .menuContact{
        display:none;
    }
}

/*navbar style submenu custom Logia*/

.customNavbar ul.sub-menu {
    padding:5px!important;
}
.customNavbar ul.sub-menu li a{
    border-radius:5px;
}

.customNavbar ul.sub-menu li.menu-item{
    margin-bottom:5px;
}
.customNavbar ul.sub-menu li.menu-item:last-child{
    margin-bottom:0px;
}

/*navbar style menu responsive custom Logia*/

@media all and (max-width: 1200px){ 
    
    .customNavbar ul {
        padding:5px!important;
    }
    
    .customNavbar ul li a{
        border-radius:5px;
    }
    
    .customNavbar ul li.menu-item{
        margin-bottom:5px;
    }
    .customNavbar ul li.menu-item:last-child{
        margin-bottom:0px;
    }
}

/* pas toute la largeur mobile */
/* gerer le background ici et pas toucher a elementor sauf pour le placement et les bordures */

@media all and (min-width: 1200px){
    .customNavbar ul.sub-menu{
    background-color: var(--e-global-color-primary);
		color:white!important;
}
}

@media all and (max-width: 1200px){ 
    .customNavbar nav{
        text-align: center;
        padding: 0 10px!important;
    }
    .customNavbar nav ul.elementor-nav-menu{
        margin: auto;
    width: calc(100vw - 30px)!important;
    background-color: var(--e-global-color-primary);
    border-radius: 5px;
    }
	.customNavbar nav ul.sub-menu{
    background-color: var(--e-global-color-primary);
    }
}

/* gerer le bouton menu contact dans la navbar */

@media all and (min-width: 1200px){ 

	.customNavbar .headerContact{
		display:none!important;
	}
	
	.customNavbar .headerAccueil{
		display:none!important;
	}
}
@media all and (max-width: 1200px){ 

	.customNavbar .headerContact a{
		background-color: white;
		color:var(--e-global-color-primary)!important;
		border-radius:5px;
	}
}

/* ==========================================================================
   Fiche projet réalisation (contenu Gutenberg, groupe avec la classe am-fiche)
   ========================================================================== */

/* Zone "contenu de la page" du modèle réalisation : masquée quand le contenu Gutenberg est vide.
   Fait en CSS car le cache d'éléments Elementor partage le rendu du conteneur entre toutes les réalisations. */
.realisation-contenu:not(:has(.elementor-widget)) { display: none; }

.am-fiche {
    --am-marine: var(--e-global-color-primary, #002256);
    --am-volet: #33465A;
    --am-galet: #8C877D;
    --am-sable: #E9E4DA;
    --am-sable-clair: #F4F1EB;
    --am-trait: #D5CFC4;
    --am-titre: var(--e-global-typography-primary-font-family, "Cinzel"), Georgia, serif;

    width: 100%;
    color: #191916;
    line-height: 1.6;
}
.am-fiche *, .am-fiche *::before, .am-fiche *::after { box-sizing: border-box; }
.am-fiche p { margin: 0 0 1em; max-width: 72ch; }
.am-fiche > * + * { margin-top: 64px; }
.am-fiche > h2 + * { margin-top: 0; }

.am-fiche h2 {
    font-family: var(--am-titre);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
    color: var(--am-marine);
    line-height: 1.2;
    margin: 64px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--am-marine);
}
.am-fiche > h2:first-child { margin-top: 0; }
.am-fiche h3 {
    font-family: var(--am-titre);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--am-marine);
    margin: 0 0 8px;
}

/* Fiche d'identité */
.am-identite { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.am-identite dl { margin: 0; display: grid; grid-template-columns: 9rem 1fr; }
.am-identite dt, .am-identite dd { padding: 12px 0; border-top: 1px solid var(--am-trait); margin: 0; }
.am-identite dt { font-size: .9rem; color: var(--am-galet); font-weight: 500; }
.am-identite dd { font-weight: 500; }

/* Planning */
.am-fiche .am-planning { background: var(--am-sable-clair); padding: 40px 36px; }
.am-fiche .am-planning h2 { margin-top: 0; border-color: var(--am-volet); }
.am-barres { margin: 26px 0 8px; }
.am-barre { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 16px; margin-bottom: 12px; }
.am-barre span { font-size: .9rem; color: var(--am-galet); font-weight: 500; }
.am-barre i { display: block; height: 22px; }
.am-barre .prevu { background: repeating-linear-gradient(135deg, var(--am-sable) 0 7px, #DCD5C7 7px 14px); }
.am-barre .reel { background: var(--am-marine); }
.am-jalons { display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; font-weight: 600; margin-left: calc(6.5rem + 16px); }
.am-fiche .am-note { font-size: .95rem; color: #3A3A34; margin-top: 22px; }
.am-fiche .am-note strong { color: var(--am-marine); }
.am-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 30px; }
.am-chiffres div { border-top: 3px solid var(--am-volet); padding-top: 12px; }
.am-chiffres b { display: block; font-family: var(--am-titre); font-size: 2rem; font-weight: 600; color: var(--am-marine); line-height: 1.1; }
.am-chiffres span { font-size: .9rem; color: var(--am-galet); }

/* Déroulé de la mission */
.am-phases { list-style: none; margin: 0; padding: 0; }
.am-phases li { display: grid; grid-template-columns: 6rem 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--am-trait); }
.am-phases li:last-child { border-bottom: 1px solid var(--am-trait); }
.am-phases b { color: var(--am-marine); font-weight: 700; font-size: .95rem; }
.am-phases p { margin: 0; }

/* Lots (bloc tableau Gutenberg) */
.am-fiche .am-lots { margin: 0; }
.am-fiche .am-lots table { width: 100%; border-collapse: collapse; }
.am-fiche .am-lots th, .am-fiche .am-lots td { border: 0; text-align: left; vertical-align: top; padding: 12px 12px 12px 0; }
.am-fiche .am-lots thead { border: 0; }
.am-fiche .am-lots th { font-size: .85rem; color: var(--am-galet); font-weight: 600; border-bottom: 2px solid var(--am-marine); }
.am-fiche .am-lots td { border-bottom: 1px solid var(--am-trait); background: transparent; }
.am-fiche figcaption { font-style: normal; }
.am-fiche .am-lots td:last-child { font-weight: 500; color: var(--am-marine); }
.am-fiche .am-lots figcaption { font-size: .9rem; color: var(--am-galet); text-align: left; margin-top: 12px; }

/* Points techniques */
.am-technique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 36px; }
.am-technique div { border-left: 2px solid var(--am-volet); padding-left: 16px; }
.am-technique p { font-size: .95rem; color: #3A3A34; margin: 0; }

/* Images avant / après / projet */
.am-fiche .wp-block-image { margin-bottom: 0; }
.am-fiche .wp-block-image + .wp-block-image { margin-top: 32px; }
.am-fiche .wp-block-image img { width: 100%; height: auto; display: block; border: 1px solid var(--am-trait); border-radius: 0; }
.am-fiche .wp-block-image figcaption { font-size: .9rem; color: var(--am-galet); text-align: left; margin-top: 8px; }

/* Suite du projet */
.am-fiche .am-suite { background: var(--am-marine); color: #fff; padding: 40px 36px; }
.am-fiche .am-suite h2 { color: #fff; margin-top: 0; border-color: rgba(255,255,255,.35); }
.am-fiche .am-suite p { color: rgba(255,255,255,.88); }
.am-fiche .am-suite .wp-block-image img { border-color: rgba(255,255,255,.25); }
.am-fiche .am-suite .wp-block-image figcaption { color: rgba(255,255,255,.7); }

.am-fiche .am-mentions { font-size: .8rem; color: var(--am-galet); margin-top: 40px; max-width: none; }

@media (max-width: 860px) {
    .am-identite, .am-technique { grid-template-columns: 1fr; gap: 28px; }
    .am-identite { gap: 0; }
    .am-chiffres { grid-template-columns: repeat(2, 1fr); }
    .am-fiche .am-planning, .am-fiche .am-suite { padding: 28px 20px; }
    .am-jalons { margin-left: 0; flex-direction: column; gap: 4px; }
    .am-barre { grid-template-columns: 5rem 1fr; gap: 12px; }
    .am-phases li { grid-template-columns: 1fr; gap: 4px; }
}
