/*
Theme Name: Harlor
Author: Anthony, Les Imageurs
Description: Template créé pour le site de Harlor
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harlor

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

:root {
  --orange-primary: #ff6f07;
  --blue-primary: #1d335b;
  --blue-secondary: #515f87;
  --mid-grey: #d7e3ef;
  --white: #ffffff;
  --work-sans: "Work Sans", sans-serif;
  --clash-grotesk: "Clash Grotesk", sans-serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--work-sans);
}

::selection {
  background-color: var(--blue-primary);
  color: var(--white);
}

a {
  text-decoration: none;
}

strong {
  font-weight: 600;
}

.overflow-container {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.content {
  padding: 0 20px;
}

.content,
.wp-block-cover.alignwide .wp-block-cover__inner-container,
.wp-block-group.alignwide > *,
.is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.alignfull > * {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.wp-block {
  max-width: 100%;
}

.alignwide,
.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignfull,
.alignwide > *,
.alignwide .wp-block-cover__inner-container {
  padding: 0 20px;
}

/* STYLES */
h1 {
  font-family: var(--clash-grotesk);
  font-weight: 500;
  font-size: 3rem;
  line-height: 100%;
  margin-bottom: 24px;
}

h2 {
  font-family: var(--clash-grotesk);
  font-weight: 500;
  font-size: 2.375rem;
  line-height: 100%;
  margin-bottom: 24px;
}

h3 {
  font-family: var(--clash-grotesk);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 100%;
  margin-bottom: 16px;
}

.chapo {
  font-family: var(--clash-grotesk);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 120%;
}

p,
.wp-block-list {
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 130%;
}

p:not(:last-child),
.wp-block-list {
  margin-bottom: 24px;
}

ul.wp-block-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

ul.wp-block-list li {
  position: relative;
  padding-left: 12px;
}

ul.wp-block-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background-color: var(--orange-primary);
  display: inline-block;
  border-radius: 0;
}

.wp-block-list li:not(:last-child) {
  margin-bottom: 16px;
}

ol {
  counter-reset: custom-counter;
  list-style: none;
}

ol li {
  counter-increment: custom-counter;
  position: relative;
  padding-left: 32px;
}

ol li::before {
  content: counter(custom-counter);
  font-family: var(--work-sans);
  font-weight: 500;
  font-size: 0.75rem;
  position: absolute;
  left: 0;
  top: -10%;
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 50%;
  background-color: var(--blue-primary);
  text-align: center;
  color: var(--white);
}

.wp-block-button__link {
  border-radius: 0;
  padding: 9px 16px;
  font-family: var(--clash-grotesk);
  font-weight: 500;
  font-size: 1rem;
  line-height: 110%;
}

.wp-block-button__link.has-blue-primary-color {
  border: 1px solid var(--blue-primary);
  transition: all 0.3s ease;
}

.wp-block-button__link.has-blue-primary-color:hover {
  color: var(--white) !important;
  background-color: var(--blue-primary) !important;
}

.wp-block-button__link.has-orange-primary-background-color,
.wp-block-button__link.has-blue-primary-background-color {
  transition: all 0.3s ease;
}

.wp-block-button__link.has-orange-primary-background-color:hover {
  background-color: var(--blue-secondary) !important;
}

.wp-block-button__link.has-blue-primary-background-color:hover {
  background-color: var(--orange-primary) !important;
}

.drapeau {
  position: relative;
}

.drapeau::after {
  content: "";
  width: 44px;
  height: 44px;
  background-image: url("/wp-content/uploads/2025/07/picto-drapeau-france.svg");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: -0;
  right: 10%;
}

.has-medium-font-size {
  font-size: 1.375rem;
}

.wp-block-cover {
  padding: 0;
}

/* HEADER */
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.site-logo {
  padding: 0 30px;
}

.site-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.site-navigation {
  width: 100%;
}

header nav ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
}

.menu-haut {
  background-color: var(--blue-primary);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.menu-haut ul {
  padding: 12px 32px;
}

.menu-haut a {
  color: var(--mid-grey);
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: none;
}

.menu-haut .menu-secondaire a::before {
  content: "";
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  height: 10px;
  width: 10px;
  margin-right: 4px;
  vertical-align: middle;
}

.menu-haut .menu-secondaire .menu-contact a::before {
  background-image: url("/wp-content/uploads/2025/07/picto-email-blanc.svg");
}

.menu-haut .menu-secondaire .menu-linkedin a::before {
  background-image: url("/wp-content/uploads/2025/07/picto-linkedin-blanc.svg");
}

.menu-bas {
  background-color: var(--white);
  display: flex;
  flex-direction: row;
}

.menu-bas ul.menu {
  position: relative;
  padding: 16px 32px;
  justify-content: space-between;
  width: 100%;
  border-left: 1px solid var(--mid-grey);
  border-bottom: 1px solid var(--mid-grey);
}

.menu-bas a {
  color: var(--blue-primary);
  font-family: var(--clash-grotesk);
  font-size: 1rem;
  font-weight: 500;
  line-height: 110%;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

nav a {
  transition: color 0.3s ease;
}

nav li.current-page a,
nav a:hover {
  color: var(--orange-primary);
}

.menu-bas a::before {
  content: url("/wp-content/uploads/2025/07/chevron-droit-orange.svg");
  margin-right: 4px;
}

.contact-mail {
  background-color: var(--orange-primary);
  padding: 0 30px;
  display: flex;
  align-items: center;
}

li.has-submenu:hover .submenu {
  display: block;
  position: absolute;
  top: 100%;
}

.submenu {
  display: none;
  background-color: var(--white);
  padding: 16px 32px;
  width: 100%;
  border: 1px solid var(--mid-grey);
  width: 100%;
  max-width: 250px;
}

/* FOOTER */
footer {
  background-color: var(--blue-primary);
}

footer .footer-principal {
  border-top: 1px solid var(--blue-secondary);
  border-bottom: 1px solid var(--blue-secondary);
}

.footer-contact {
  gap: 8px;
}

footer .copyright {
  color: var(--white);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 24px 20px;
}

footer nav ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.footer-contact p,
footer .copyright p {
  font-size: 0.75rem !important;
  line-height: 100%;
  margin: 0;
}

footer nav ul {
  gap: 24px;
}

footer nav a {
  color: var(--white);
  font-size: 0.75rem !important;
  line-height: 100%;
}

/* CAS CLIENTS CARORUSEL */
.swiper-wrapper {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.realisation-carte {
  position: relative;
  height: 384px;
  display: flex;
  padding: 24px 24px 0 24px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
}

.realisation-carte::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
}

.realisation-carte::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: var(--blue-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.realisation-carte:hover::after {
  opacity: 0.75;
}

.realisation-carte a {
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.realisation-carte .realisation-tag {
  color: var(--white);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 16px;
}

.realisation-carte h3 {
  font-family: var(--clash-grotesk);
  color: var(--white);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 100%;
  margin-top: 8px;
}

.realisation-fleche {
  background-color: var(--blue-primary);
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realisation-fleche {
  background-color: var(--blue-primary);
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realisation-fleche img {
  display: block;
}

/* ARTICLES */
.articles-grille {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .articles-grille {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 782px) {
  .articles-grille {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1201px) {
  .articles-grille {
    grid-template-columns: repeat(4, 1fr);
  }
}

.article-carte {
  background-color: var(--blue-secondary);
  transition: background-color 0.3s ease;
}

.article-carte:hover {
  background-color: var(--orange-primary);
}

.article-lien {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.article-image {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.article-carte:hover .article-image img {
  transform: scale(1.1);
}

.article-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-content {
  padding: 24px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

p.article-date {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: 0;
}

h3.article-titre {
  font-family: var(--clash-grotesk);
  font-size: 1.375rem;
  font-weight: 500;
  font-size: 22px;
  line-height: 100%;
  margin-bottom: 0;
}

p.article-extrait {
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 130%;
}

.article-fleche {
  background-color: var(--white);
  height: 44px;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 24px;
}

.article-carte {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
