/*
Theme Name: DAL Eco Block
Theme URI: https://dal-eco.com/
Author: Pixlab
Description: Thème natif WordPress en blocs pour DAL Eco, sans page builder.
Version: 0.5.5
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: dal-eco
*/

html { scroll-behavior: smooth; }
body { text-wrap: pretty; }
.wp-site-blocks {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.wp-site-blocks > main {
  box-sizing: border-box;
  flex: 1 0 auto;
  margin-block-start: 0;
  padding-right: 20px;
  padding-left: 20px;
}
.wp-site-blocks > main > .alignfull,
.wp-site-blocks > main > .wp-block-post-content > .alignfull,
.wp-site-blocks > main > .dal-home-slider,
.wp-site-blocks > main > .wp-block-post-content > .dal-home-slider,
.wp-site-blocks > main > .wp-block-post-content > .dal-contact-map,
.wp-site-blocks > main > .dal-contact-map {
  width: calc(100% + 40px) !important;
  max-width: none !important;
  margin-right: -20px !important;
  margin-left: -20px !important;
}
a { text-underline-offset: .2em; }
img { max-width: 100%; }

.dal-site-header { position: fixed; z-index: 200; top: 0; left: 0; width: 100%; height: 125px; border: 0; background: #fff url('/wp-content/uploads/2024/02/noir-img-1.png') 0 0 / cover no-repeat; }
.admin-bar .dal-site-header { top: 32px; }
body:not(.home) .wp-site-blocks > main {
  padding-top: 149px;
  padding-bottom: clamp(64px, 6vw, 96px);
}
.dal-header-row { position: absolute; top: 42px; left: 0; display: flex; align-items: stretch !important; gap: 0 !important; width: 100%; height: 83px; margin: 0 !important; }
.dal-header-logo-panel { display: flex; flex: 0 0 24.7125%; align-items: center; justify-content: flex-end; padding-right: 17px; background: #fff; }
.dal-header-nav-panel { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-around !important; gap: 0 !important; min-width: 0; margin-left: 67px !important; padding: 0; }
.dal-site-header .wp-block-navigation { font-family: Archivo, sans-serif; font-size: .875rem; font-weight: 500; letter-spacing: 0; text-transform: uppercase; }
.dal-site-header .wp-block-navigation__container { gap: 50px !important; }
.dal-site-header .wp-block-navigation-item { position: relative; }
.dal-site-header .wp-block-navigation-item__content { position: relative; box-sizing: border-box; padding: 8px 0; line-height: 14px; text-decoration: none; }
.dal-site-header .wp-block-navigation-item.current-menu-item::before,
.dal-site-header .wp-block-navigation-item:has(> .wp-block-navigation-item__content[aria-current="page"])::before { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: #ff5308; content: ""; }
.single-post .dal-site-header .wp-block-navigation-item:nth-child(2)::before,
.single-projet .dal-site-header .wp-block-navigation-item:nth-child(3)::before,
.post-type-archive-projet .dal-site-header .wp-block-navigation-item:nth-child(3)::before { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: #ff5308; content: ""; }
.dal-site-header .wp-block-site-logo img { width: 137px; height: auto; max-height: 63px; object-fit: contain; }
.dal-header-linkedin { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; color: #fff; text-decoration: none; }
.dal-header-linkedin svg { display: block; width: 22px; height: 22px; }
.dal-header-linkedin:hover { color: #ff5308; }
.dal-site-header .wp-block-navigation-item__content,
.dal-site-header .wp-block-navigation__responsive-container-open { color: #fff; }
.home .dal-site-header { background: transparent; transition: background-color .25s ease; }
/* Sur la home, l'en-tête d'origine est en mode « overlay » : transparent au
   repos, puis voilé de noir translucide au défilement (#00000054 dans la
   configuration Breakdance). Il ne reprend jamais le visuel des pages internes. */
.home .dal-site-header.is-scrolled { background: rgba(0, 0, 0, .33); }
.home .dal-site-header .wp-block-navigation-item__content,
.home .dal-site-header .wp-block-navigation__responsive-container-open { color: #fff; }
.dal-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dal-page-hero,
.dal-about-intro,
.dal-careers-page { padding-top: 64px !important; }
.dal-section-label,
.dal-home-section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 12px !important;
  color: #000 !important;
  font-size: 17px !important;
  font-weight: 600;
  line-height: 23.8px !important;
  letter-spacing: 0;
  text-transform: none;
}
.dal-section-label::after,
.dal-home-section-label::after {
  flex: 0 0 120px;
  width: 120px;
  height: 2px;
  background: #ff5309;
  content: "";
}
.dal-page-hero h1 { margin-bottom: 0; }
.dal-archive-section,
.dal-archive-section > .dal-news-archive,
.dal-archive-section > .dal-references-archive {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.dal-page-hero > h1:not(.dal-section-label),
.dal-page-hero > p:not(.dal-section-label) {
  margin: 0;
  color: #000;
  font-size: 45px !important;
  font-weight: 400;
  line-height: 50px !important;
}
.dal-about-title { margin: 0 0 25px; color: #000; font-size: 60px !important; font-weight: 400; line-height: 50px; }
.dal-about-intro { width: 100%; max-width: none !important; }
.dal-about-intro > .alignwide { width: 100%; max-width: none !important; margin-right: 0 !important; margin-left: 0 !important; }
.dal-about-columns { gap: 2rem; }
.dal-article-header .taxonomy-category { color: #ff5309; font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.dal-article-header .wp-block-post-date { color: var(--wp--preset--color--muted); }
.dal-about-banner { margin-bottom: 3.125rem; }
.dal-about-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1339 / 585; object-fit: cover; }
.dal-organisation,
.dal-organisation > .dal-role-list { width: 100%; max-width: none !important; }
.dal-role-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; margin-bottom: 0; padding: 0; list-style: none; }
.dal-role-list li { display: flex; box-sizing: border-box; align-items: center; justify-content: center; min-height: 4.325rem; padding: .625rem; background: #f9f9f9; font-size: .875rem; font-weight: 700; line-height: 1.4; text-align: center; }
.dal-team-grid .wp-block-image img { width: 100%; height: 20.375rem; object-fit: contain; object-position: bottom center; background: #f4f4f2; }
.dal-team-grid h3 { margin-bottom: .25rem; font-size: 1.3rem !important; }
.dal-team-grid .has-orange-color { margin-top: 0; }
.dal-jobs-grid { margin-top: 3rem; }
.dal-jobs-grid > .wp-block-column { padding-top: 1.25rem; border-top: 2px solid #ff5309; }
.dal-revenue-grid strong { color: #ff5309; font-size: 1.5rem; }
.dal-careers-page { min-height: 355px; }
.dal-careers-page > .wp-block-columns {
  margin-right: auto !important;
  margin-left: 0 !important;
}
.dal-team-section,
.dal-jobs-section { box-sizing: border-box; }
.dal-contact-map { width: 100%; height: 400px; margin: 0; }
.dal-contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.dal-contact-content { padding-inline: 0; }
.dal-contact-details h2 { margin-bottom: 1.5rem; }
.dal-contact-details h3 { margin-bottom: .25rem; color: #ff5309; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.dal-contact-details p { margin-top: 0; }
.dal-contact-details a { color: inherit; }
.dal-legal-page { padding-top: 39px !important; padding-bottom: 56px !important; }
.dal-legal-page .wp-block-post-title { width: 100%; max-width: none; margin: 0 0 25px; font-size: 60px; font-weight: 400; line-height: 50px; }
.dal-legal-page .wp-block-post-content { width: 100%; max-width: none; }
.dal-legal-content { width: 100%; max-width: none; color: #374151; font-size: 16px; line-height: 22.4px; }
.dal-legal-content p { margin: 16px 0; }
.dal-legal-content p:first-child { margin-top: 0; }
.dal-legal-content h2 { margin: 32px 0 16px; font-size: 24px; font-weight: 600; line-height: 1.2; }
.dal-legal-content ol { margin: 16px 0; padding-left: 1.5rem; }
.dal-home-section { padding-inline: 1.25rem; }
.dal-home-intro { width: 100%; max-width: none; }
.dal-home-intro > * { width: 100%; max-width: none !important; }
.dal-home-main-title { margin: 0 0 50px !important; color: #000; font-size: 45px; font-weight: 400; line-height: 50px; text-align: center; }
.dal-home-intro-copy { margin: 0 0 25px !important; color: #000; font-size: 45px; font-weight: 400; line-height: 50px; }
.dal-home-all-link { margin: 0 0 42px !important; font-size: 13px; font-weight: 600; line-height: 18.2px; }
.dal-home-all-link a { color: #ff5309; text-decoration: none; }
.dal-home-news-title { margin: 0 0 17px !important; color: #000; font-size: 45px !important; font-weight: 400; line-height: 50px !important; }
.dal-home-news-copy { margin: 0 0 27px !important; color: #000; font-size: 17px; line-height: 23.8px; }
.home main .dal-home-section { padding-top: 56px !important; padding-bottom: 56px !important; }
.home main .dal-home-slider + .dal-home-section { padding-bottom: 80px !important; }
.home main .dal-home-section.has-mist-background-color { padding-bottom: 0 !important; }
.home main .dal-home-section.has-mist-background-color { min-height: 728px; }
.dal-certifications img { max-width: 15rem; max-height: 8rem; object-fit: contain; filter: grayscale(1); }
.dal-certifications { min-height: 9rem; }
.dal-project-grid .wp-block-post { position: relative; }
.dal-project-grid .wp-block-post-featured-image { margin: 0 0 1rem; overflow: hidden; aspect-ratio: 4 / 3; background: var(--wp--preset--color--mist); }
.dal-project-grid .wp-block-post-featured-image img { height: 100%; object-fit: cover; transition: transform .5s ease; }
.dal-project-grid .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.025); }
.dal-project-grid .wp-block-post-title { line-height: 1.15; }
.dal-project-grid .taxonomy-projets { color: var(--wp--preset--color--orange); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.dal-project-grid .taxonomy-projets a { color: inherit; text-decoration: none; }
.dal-project-hero .wp-block-post-featured-image img { width: 100%; max-height: 75vh; object-fit: cover; }
.single-projet .wp-site-blocks > main.dal-project-single { padding: 125px 0 80px; }
.single-projet .wp-site-blocks > main.dal-project-single > .alignfull { width: 100% !important; margin-right: 0 !important; margin-left: 0 !important; }
.dal-project-single__overview,
.dal-project-single__related { box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 56px 20px; }
.dal-project-single__overview { min-height: 807px; }
.dal-project-single__toolbar { width: 100%; max-width: 1240px !important; margin: 8px auto 0 !important; padding-bottom: 33px; }
.dal-project-single__section-label { display: flex; align-items: center; gap: 18px; width: 221px; margin: 0 0 33px; color: #000; font-size: 17px; font-weight: 600; line-height: 23.8px; }
.dal-project-single__section-label::after { flex: 1; height: 1px; background: #ff5309; content: ""; }
.dal-project-single__back { align-self: flex-start; margin: 0; font-size: 13px; line-height: 18.2px; }
.dal-project-single__back a { color: #fa7a43; text-decoration: none; }
.dal-project-single__terms { width: 100%; max-width: 1240px !important; margin: 0 auto; color: #ff5309; font-size: 13px; font-weight: 600; line-height: 18.2px; }
.dal-project-single__terms a { color: inherit; text-decoration: none; }
.dal-project-single__title { width: 100%; max-width: 1240px !important; margin: 19px auto 25px; color: #000; font-size: 45px; font-weight: 400; line-height: 50px; }
.dal-project-single__columns { gap: 32px; width: 100%; max-width: 1240px !important; margin: 0 auto; }
.dal-project-single__columns > .wp-block-column { flex-basis: calc(50% - 16px); }
.dal-project-single__information { padding-top: 20px; }
.dal-project-single__information-heading,
.dal-project-single__related-heading { display: flex; align-items: center; gap: 18px; margin: 0; color: #000; font-size: 17px; font-weight: 600; line-height: 23.8px; }
.dal-project-single__information-heading::after,
.dal-project-single__related-heading::after { flex: 1; height: 1px; background: #ff5309; content: ""; }
.dal-project-single__information-title { margin: 26px 0 16px; color: #000; font-size: 15px; font-weight: 500; line-height: 21px; }
.dal-project-single__content { margin-top: 26px; font-size: 15px; line-height: 21px; }
.dal-project-single__related { padding-top: 56px; padding-bottom: 66px; }
.dal-project-single__related-heading { width: calc(100% - 124px); max-width: 1116px; margin: 0 auto 73px; }
.dal-project-single__related .dal-project-carousel { width: 100%; max-width: 1200px !important; margin: 0 auto; }
.dal-project-single__related .dal-project-carousel__track { gap: 50px; padding-bottom: 0; }
.dal-project-single__related .dal-project-card { flex-basis: calc((100% - 150px) / 4); }
.dal-project-single__related .dal-project-card__image { height: 398px; }
.dal-project-single__related .dal-project-card__terms { display: none; }
.dal-project-single__related .dal-project-card h3 { margin-top: 24px; color: #000; font-size: 21px; font-weight: 400; line-height: 25.2px; }
.dal-project-single__related .dal-project-carousel__controls { position: absolute; top: 288px; right: 0; display: flex; gap: 0; }
.dal-project-single__related .dal-project-carousel__controls button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; color: #777; background: #fff; font-size: 20px; }
.dal-site-footer a, .dal-site-footer-bottom a { color: inherit; }
.wp-site-blocks > footer { margin-block-start: 0 !important; }
.dal-site-footer { height: 240.6px; padding: 56px 20px !important; color: #fff; font-size: 16px; line-height: 22.4px; }
.dal-footer-columns { display: grid; grid-template-columns: 167.21px 73px 263.78px 232px 236px 32px 236px; width: 1240px; max-width: none; height: 128.6px; margin: 0; }
.dal-footer-logo { grid-column: 1; }
.dal-footer-about { grid-column: 3; }
.dal-footer-address { grid-column: 5; }
.dal-footer-contact { grid-column: 7; }
.dal-footer-columns > .dal-footer-column { margin-block-start: 0 !important; }
.dal-footer-column > * { margin-block-start: 0 !important; }
.dal-footer-logo figure { margin: 0; }
.dal-footer-logo img { display: block; width: 167.21px; height: 75.93px; object-fit: contain; }
.dal-footer-column h2, .dal-footer-column h3 { margin: 0 0 16px; color: #fff; font-size: 16px; font-weight: 500; line-height: 22.4px; }
.dal-footer-column p { margin: 0; color: #fff; font-size: 12px; font-weight: 500; line-height: 18px; }
.dal-footer-about > p:not(.dal-footer-more) { font-weight: 200; }
.dal-footer-more { font-size: 13px !important; line-height: 18.2px !important; }
.dal-footer-more a { color: #ff5309; text-decoration: none; }
.dal-footer-contact > p + p { margin-top: 15px; }
.dal-site-footer-bottom { box-sizing: border-box; min-height: 44px; margin: 0 !important; padding: 0 20px; color: #fff; font-size: 12px; line-height: 18px; }
.dal-site-footer-bottom p { margin: 0; }

@media (max-width: 760px) {
  .dal-site-header { height: 96px; background-color: #151515; }
  body:not(.home) .wp-site-blocks > main { padding-top: 112px; padding-bottom: 56px; }
  .dal-header-row { top: 30px; height: 66px; }
  .dal-header-logo-panel { flex-basis: 68%; padding-right: 14px; }
  .dal-header-nav-panel { justify-content: flex-end !important; gap: 14px !important; margin-left: 0 !important; padding-right: 16px; }
  .dal-site-header .wp-block-site-logo img { width: 112px; max-height: 52px; }
  .dal-header-linkedin { flex-basis: 38px; width: 38px; height: 38px; }
  .home .dal-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); }
  .home main .dal-home-section.has-mist-background-color { min-height: 0; }
  .dal-home-main-title { margin-bottom: 32px !important; font-size: 34px; line-height: 39px; }
  .dal-section-label::after,
  .dal-home-section-label::after { flex-basis: min(120px, 32vw); width: min(120px, 32vw); }
  .dal-page-hero > h1:not(.dal-section-label),
  .dal-page-hero > p:not(.dal-section-label),
  .dal-about-title { font-size: 34px !important; line-height: 39px !important; }
  .dal-home-intro-copy { font-size: 30px; line-height: 36px; }
  .home main .dal-home-section { padding-top: 40px !important; padding-bottom: 40px !important; }
  .dal-about-columns { gap: 1.5rem; }
  .dal-role-list { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .dal-about-banner { margin-bottom: 2rem; }
  .dal-contact-map { height: 320px; }
  .dal-project-single__overview,
  .dal-project-single__related { padding: 40px 20px; }
  .single-projet .wp-site-blocks > main.dal-project-single { padding: 96px 0 56px; }
  .dal-project-single__overview { min-height: 0; }
  .dal-project-single__toolbar { margin-top: 0 !important; padding-bottom: 0; }
  .dal-project-single__section-label { margin-bottom: 24px; }
  .dal-project-single__back { display: none; }
  .dal-project-single__title { margin-top: 12px; font-size: 34px; line-height: 39px; }
  .dal-project-single__columns { flex-wrap: wrap !important; gap: 30px; }
  .dal-project-single__columns > .wp-block-column { flex-basis: 100% !important; }
  .dal-project-single__information { padding-top: 0; }
  .dal-project-single__related-heading { width: 100%; margin-bottom: 40px; }
  .dal-project-single__related .dal-project-carousel__track { gap: 20px; }
  .dal-project-single__related .dal-project-card { flex-basis: 85%; }
  .dal-project-single__related .dal-project-card__image { height: min(125vw, 398px); }
  .dal-project-single__related .dal-project-card h3 { margin-top: 16px; font-size: 19px; line-height: 23px; }
  .dal-project-single__related .dal-project-carousel__controls { display: none; }
  .dal-site-footer { height: auto; min-height: 0; padding: 40px 20px !important; }
  .dal-footer-columns { grid-template-columns: 1fr; gap: 32px; width: 100%; height: auto; }
  .dal-footer-logo, .dal-footer-about, .dal-footer-address, .dal-footer-contact { grid-column: 1; }
  .dal-site-footer-bottom { align-items: flex-start; gap: 8px; min-height: 0; padding: 14px 20px; }
  .dal-legal-page { padding-top: 32px !important; padding-bottom: 40px !important; }
  .dal-legal-page .wp-block-post-title { font-size: 42px; line-height: 46px; }
}

@media (max-width: 782px) {
  .admin-bar .dal-site-header { top: 46px; }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .dal-header-logo-panel { flex-basis: 24.7125%; }
  .dal-header-nav-panel { margin-left: 24px !important; }
  .dal-site-header .wp-block-navigation { font-size: .75rem; }
  .dal-site-header .wp-block-navigation__container { gap: 16px !important; }
  .dal-header-linkedin { flex-basis: 36px; width: 36px; height: 36px; }
}

/* --- Gravity Forms : alignement sur la charte DAL ------------------------- */
/* GF remplace les formulaires natifs sur Contact et Carrières. Ces règles
   reprennent la typographie et le bouton orange du reste du site plutôt que
   les styles par défaut de l'extension. */
.gform_wrapper.gravity-theme .gfield_label { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.gform_wrapper.gravity-theme .gfield input[type="text"],
.gform_wrapper.gravity-theme .gfield input[type="email"],
.gform_wrapper.gravity-theme .gfield input[type="tel"],
.gform_wrapper.gravity-theme .gfield select,
.gform_wrapper.gravity-theme .gfield textarea { border: 1px solid var(--wp--preset--color--line); border-radius: 0; font-family: inherit; font-size: 15px; }
.gform_wrapper.gravity-theme .gfield input:focus,
.gform_wrapper.gravity-theme .gfield select:focus,
.gform_wrapper.gravity-theme .gfield textarea:focus { border-color: #ff5309; outline: 2px solid rgba(255, 83, 9, .25); outline-offset: 0; }
.gform_wrapper.gravity-theme .gform_footer input[type="submit"] { padding: 14px 24px; border: 0; border-radius: 0; color: #fff; background: #ff5309; font-family: Archivo, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.gform_wrapper.gravity-theme .gform_footer input[type="submit"]:hover { background: #fa7a43; }
.gform_wrapper.gravity-theme .gfield_required { color: #ff5309; }
.gform_wrapper.gravity-theme .gfield_description { color: var(--wp--preset--color--muted); font-size: 13px; }
.gform_confirmation_message { padding: 16px 20px; border-left: 3px solid #ff5309; background: var(--wp--preset--color--mist); }
