/* ===== Grid lines (body background) =====
   Same subtle graph-paper background used across the marketing pricing
   grids (grille_tarifaire_*.html - see e.g. "Grille Tarifaire - Community
   Management"), applied here to the whole site for visual consistency
   between the site and those documents. Layers over the existing
   --doo-s-color-background as a background-image, not a separate overlay
   element like the marketing docs use, since here it just needs to paint
   behind body's own content rather than sit above a boxed .page element. */

.grid-lines {
  background-image:
    linear-gradient(rgba(26, 86, 160, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 160, 0.04) 1px, transparent 1px);
  background-size: 4em 4em;
}

/* ===== Accent bar (top of header) =====
   Same decorative gradient band as the marketing pricing grids, placed at
   the very top of the page, above the header. */

.accent-bar {
  height: 0.5em;
  background: linear-gradient(90deg,
    var(--doo-s-color-secondary, #d7a037) 0%,
    var(--doo-s-color-highlight, #e3c68e) 40%,
    var(--doo-s-color-secondary, #d7a037) 70%,
    transparent 100%);
  flex-shrink: 0;
}

/* ===== Logo block (General tab) =====
   Same class names/structure as the marketing pricing grids
   (grille_tarifaire_*.html): .logo-block wraps the image (or the text
   fallback below) and .brand-text/.brand-tagline. Adapted from the source:
   .logo there is a fixed 16em x 4em because that document scales its whole
   layout off a viewport-relative clamp() font-size unrelated to this
   site's - forcing that same absolute size here would just resize the
   live logo unprompted, so width/height are left to the existing
   responsive header-column sizing and only the non-sizing touches
   (object-fit) are reused. .logo-block wraps onto a second line
   and .logo keeps a 60px floor (min-width) rather than shrinking away to
   nothing, so a long tagline in .brand-text can't crush the image - it
   just wraps onto more lines of its own instead. */

.logo-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
}

.logo {
  max-width: 100%;
  min-width: 60px;
  object-fit: contain;
}

.doo-s-logo-text {
  display: inline-block;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--doo-s-color-primary, #4066aa);
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.brand-tagline {
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--doo-s-color-secondary, #d7a037);
  text-transform: uppercase;
}

/* ===== Language switcher (General tab icons) =====
   Same design as the Popcorn Images reference template: no background on
   the active language, its icon just grows instead. Overrides core's
   media/mod_languages/css/template.css, which sets a grey background on
   li.lang-active - loads before this file (registered via jdoc:head vs.
   this file's plain <link>), so an equal-specificity selector here wins. */

div.mod-languages ul li.lang-active {
  background-color: transparent;
}

.mod-languages .doo-s-lang-icon {
  height: 16px;
  width: auto;
  transition: height 0.15s ease;
}

.mod-languages li.lang-active .doo-s-lang-icon {
  height: 21px;
}

/* ===== Misc ===== */

.article-info {
  font-size: .75em;
}

h3.article {
  text-align: left;
}

#pied ul {
  list-style:none;
  padding:0;
  margin:0;
}

#pied li {
  list-style:none;
  padding:0;
  margin:0;
}

#pied h3 {
  margin: 0 !important;
  color: var(--doo-s-color-text, #505050) !important;
  font-size: 12px;
  text-align: left;
  text-shadow: none !important;
}

.imgblog { 
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  padding: 10px;
  border: 10px double var(--doo-s-color-secondary, #d7a037);
}

.img_caption {
  font-size: .5em;
}

figcaption {
  font-size: 0.7em;
  color: #b5c7cf;
  text-align: right;
}

ul.menu,
ul.nav {
  display: flex;
  justify-content: space-evenly;
}

/* ===== About ===== */
.section {
  margin: 60px auto;
  padding: 0 20px;
}

.section-title-main {
  font-size: 28px;
  margin-bottom: 20px;
  position: relative;
}

.section-title-main::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #4a90e2;
  margin-top: 8px;
  border-radius: 2px;
}

/* Company */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 12px;
}

.about-text {
  /*line-height: 1.7;*/
  /*color: #444;*/
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.value-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card img {
  width: 33%;
  display: block;
  margin: 2rem auto 0 auto;
}


/* People */
.collab-card {
  margin: 40px auto;
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: flex;
  flex-wrap: wrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.collab-photo {
  flex: 1 1 280px;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.collab-photo::after {
  content: "";
  position: absolute;
  inset: 0;
}

.collab-content {
  flex: 2 1 500px;
  padding: 30px;
}

.collab-name {
  font-size: 26px;
  font-weight: 700;
}

.collab-role {
  color: #666;
  margin-bottom: 15px;
  text-align: left;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-top: 50px;
  /*border-left: 4px solid #4066aa;
  padding-left: 10px;*/
}

.section-title img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.badge {
  display: inline-block;
  background: #eef4ff;
  color: #2a5bd7;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin: 4px 5px 0 0;
  transition: 0.2s;
}

.badge:hover {
  background: #2a5bd7;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .collab-card {
    flex-direction: column;
  }
}


/* ===== Responsive H3 with icon ===== */

h3.iconetitreh3 {
    text-align:left;
    display: flex;
    align-items: center;
    gap: 12px;

    /*font-size: clamp(1.2rem, 2vw, 2rem);*/
    font-weight: 700;
    /*line-height: 1.2;*/

    margin: 1rem 0;
    /*color: #222;*/
}

/* Individual icon styling */
h3.iconetitreh3 img {
    width: clamp(64px, 5vw, 64px);
    height: clamp(64px, 5vw, 64px);

    object-fit: contain;
    flex-shrink: 0;
}

/* Optional mobile spacing */
@media (max-width: 480px) {
    h3.iconetitreh3 {
        gap: 10px;
    }
}


/* ===== Sectors module ===== */

.secteurs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.secteurselements {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.imgsecteurs {
  width: 100%;
  max-width: 90px;
  height: auto;
  display: block;
  opacity: 0.5;
  padding: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.overlaysecteurs {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--doo-s-color-highlight, #e3c68e);
  border-radius: 8px;
  box-shadow: 0 0 8px var(--doo-s-color-secondary, #d7a037);
  width: 90%;
  max-width: 120px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 5px;
  box-sizing: border-box;
}

.secteurselements:hover .overlaysecteurs,
.secteurselements:focus-within .overlaysecteurs {
  opacity: 1;
}

.secteurselements:hover .imgsecteurs {
  opacity: 0.8;
  transform: scale(1.05);
}

.textsecteurs {
  color: var(--doo-s-color-primary, #4066aa);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

/* Tablet */
@media (max-width: 768px) {
  .secteurs {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .imgsecteurs {
    max-width: 75px;
  }

  .textsecteurs {
    font-size: 0.75rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .secteurs {
    grid-template-columns: repeat(2, 1fr);
  }

  .secteurselements {
    min-height: 120px;
  }

  .imgsecteurs {
    max-width: 65px;
    padding: 6px;
  }

  .overlaysecteurs {
    opacity: 1;
    position: static;
    transform: none;
    margin-top: 8px;
    width: 100%;
    max-width: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
  }

  .textsecteurs {
    font-size: 0.72rem;
  }
}

/* ===== Footer ===== */

.site-footer {
  background: #0f172a;
  padding: 70px 20px 25px;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 600;
}

.footer-column p {
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-benefits,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.footer-benefits li,
.footer-links li {
  margin-bottom: 14px;
}

.footer-links a,
.footer-socials a,
.footer-legal a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-socials a:hover,
.footer-legal a:hover {
  color: #ffffff;
}

.footer-button {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 22px;
  background: var(--doo-s-color-secondary, #d7a037);
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.footer-button:hover {
  background: var(--doo-s-color-primary, #4066aa);
}

.footer-socials {
  margin-top: 24px;
  display: flex;
  gap: 18px;
}

.footer-bottom {
  border-top: 1px solid #334155;

  margin-top: 60px;
  padding-top: 25px;

  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #94a3b8;
}

.footer-legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 768px) {

  .footer-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-socials,
  .footer-legal {
    justify-content: center;
  }
}