/* =========================================
   AQCO — Association pour la qualité dans
   la construction en Outaouais
   ========================================= */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #002d72;
  --primary-lt: #0041a8;
  --accent:     #e8a020;
  --accent-lt:  #f5b740;
  --dark:       #1c1c2e;
  --text:       #2d2d2d;
  --text-muted: #666;
  --light:      #f7f8fc;
  --border:     #e0e4ee;
  --white:      #ffffff;
  --success:    #27ae60;
  --error:      #c0392b;
  --radius:     8px;
  --shadow:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.15);
  --transition: .25s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--dark);
}

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--gray { background: var(--light); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge--primary { background: rgba(0,45,114,.12); color: var(--primary); }
.badge--accent  { background: rgba(232,160,32,.15); color: #b07000; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-lt);
  border-color: var(--primary-lt);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,45,114,.35);
}
.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn--outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}
.btn--sm { padding: 10px 22px; font-size: .875rem; }
.btn--lg { padding: 18px 42px; font-size: 1.05rem; }

/* --- Section Headers --- */
.section-header { margin-bottom: 56px; }
.section-header h2 { font-size: 2.25rem; margin-bottom: 12px; }
.section-header p  { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; }
.section-header.text-center p { margin: 0 auto; }

.section-line {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px 0 20px;
}
.text-center .section-line { margin: 16px auto 20px; }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: box-shadow var(--transition);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
  gap: 24px;
}
.navbar__logo img { height: 92px; }
.navbar__logo:hover { opacity: .85; }
.navbar__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.navbar__lang:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar__menu > li { position: relative; }
.navbar__menu > li > a {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.navbar__menu > li > a:hover,
.navbar__menu > li > a.active { color: var(--primary); background: rgba(0,45,114,.07); }

/* Dropdown */
.navbar__menu .has-dropdown > a::after {
  content: '▾';
  font-size: .7em;
  margin-left: 5px;
  opacity: .6;
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  list-style: none;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: .875rem;
  color: var(--text);
  border-radius: 6px;
  transition: all var(--transition);
}
.dropdown li a:hover { background: var(--light); color: var(--primary); }

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =========================================
   HERO SLIDER
   ========================================= */
.hero {
  margin-top: 112px;
  position: relative;
  height: calc(100vh - 112px);
  min-height: 560px;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease;
  background-size: cover;
  background-position: center;
}
.hero__slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,20,60,.72) 0%, rgba(0,45,114,.45) 55%, transparent 100%);
}
.hero__content {
  position: absolute;
  bottom: 15%;
  left: 8%;
  max-width: 640px;
  color: var(--white);
  animation: heroFadeUp .7s ease;
}
@keyframes heroFadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
.hero__content h1,
.hero__content h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.hero__content p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.hero__dot.active { background: var(--white); transform: scale(1.2); }

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-item__number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item__label {
  font-size: .875rem;
  opacity: .85;
  letter-spacing: .04em;
}

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  margin-top: 112px;
  background: linear-gradient(135deg, var(--primary) 0%, #0041a8 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px; bottom: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero .breadcrumb { font-size: .875rem; opacity: .75; }
.page-hero .breadcrumb a { color: var(--white); }
.page-hero .breadcrumb span { margin: 0 8px; }

/* =========================================
   MISSION CARDS
   ========================================= */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.mission-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mission-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mission-card__icon {
  width: 56px; height: 56px;
  background: rgba(0,45,114,.10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.mission-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--primary); }
.mission-card p  { font-size: .925rem; color: var(--text-muted); line-height: 1.7; }

/* =========================================
   TEAM CARDS
   ========================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.team-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card__avatar {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, #0041a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,.6);
}
.team-card__body { padding: 28px 24px; }
.team-card__name { font-size: 1.3rem; margin-bottom: 4px; }
.team-card__role {
  color: var(--primary);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.team-card p { font-size: .9rem; color: var(--text-muted); }

/* =========================================
   DOCUMENTS (Documentation)
   ========================================= */
.doc-section { margin-bottom: 56px; }
.doc-section h2 { font-size: 1.6rem; margin-bottom: 8px; color: var(--primary); }
.doc-section .section-line { margin-top: 8px; margin-bottom: 24px; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.doc-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.doc-card__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(0,45,114,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.doc-card__info { flex: 1; min-width: 0; }
.doc-card__title { font-weight: 600; font-size: .95rem; margin-bottom: 4px; color: var(--dark); }
.doc-card__meta  { font-size: .8rem; color: var(--text-muted); margin-bottom: 14px; }
.doc-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================
   FORMS
   ========================================= */
.form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}
.form-group label .req { color: var(--accent); margin-left: 2px; }

.form-control {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,45,114,.10);
}
.form-control::placeholder { color: #aaa; }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 130px; }

.form-hint { font-size: .8rem; color: var(--text-muted); }

.form-section-title {
  grid-column: 1/-1;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  margin-top: 12px;
  margin-bottom: 4px;
}

.form-notice {
  background: rgba(0,45,114,.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--text);
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success__icon {
  font-size: 4rem;
  margin-bottom: 20px;
}
.form-success h3 { font-size: 1.6rem; margin-bottom: 12px; color: var(--success); }

/* =========================================
   CONTACT INFO CARDS
   ========================================= */
.contact-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.contact-card__icon {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-card__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.contact-card__value { font-size: 1.05rem; font-weight: 600; color: var(--dark); }
.contact-card__value a { color: var(--dark); }
.contact-card__value a:hover { color: var(--primary); }

/* =========================================
   ABOUT / CONTENT PAGES
   ========================================= */
.content-block {
  max-width: 800px;
}
.content-block p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.content-block h2 { margin-top: 48px; margin-bottom: 16px; }
.content-block h3 { margin-top: 36px; margin-bottom: 12px; }
.content-block ul, .content-block ol { margin: 0 0 20px 24px; }
.content-block li { margin-bottom: 8px; }

.highlight-box {
  background: rgba(0,45,114,.06);
  border: 1px solid rgba(0,45,114,.15);
  border-radius: 12px;
  padding: 32px 36px;
  margin: 32px 0;
}
.highlight-box h3 { margin-top: 0; color: var(--primary); }

/* =========================================
   SIGNALEMENT PAGE
   ========================================= */
.steps-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.step-tab {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  background: var(--light);
  color: var(--text-muted);
  border: none;
  cursor: default;
  transition: all var(--transition);
  position: relative;
}
.step-tab.active   { background: var(--primary); color: var(--white); }
.step-tab.complete { background: rgba(0,45,114,.12); color: var(--primary); }
.step-tab span     { display: block; font-size: .75rem; font-weight: 400; opacity: .8; margin-top: 2px; }

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p { font-size: .9rem; line-height: 1.7; margin-top: 16px; max-width: 340px; }
.footer__logo { filter: brightness(0) invert(1); height: 120px; }

.footer__col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer__col ul a:hover { color: var(--accent); }


.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}
.footer__bottom a { color: rgba(255,255,255,.55); }
.footer__bottom a:hover { color: var(--accent); }

/* =========================================
   COOKIE CONSENT
   ========================================= */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  color: rgba(255,255,255,.9);
  background: var(--dark);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { max-width: 760px; font-size: .9rem; line-height: 1.6; }
.cookie-banner a { color: var(--accent-lt); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.cookie-actions button {
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-cookie-accept { color: var(--dark); background: var(--accent); }
.btn-cookie-accept:hover { background: var(--accent-lt); }
.btn-cookie-decline { color: var(--white); background: transparent; border-color: rgba(255,255,255,.45) !important; }
.btn-cookie-decline:hover { border-color: var(--white) !important; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .navbar__menu { display: none; }
  .navbar__toggle { display: flex; }

  .navbar__menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 112px;
    left: 0; right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    gap: 4px;
    align-items: stretch;
  }
  .navbar__lang { margin-left: auto; }
  .navbar__menu.open .dropdown {
    position: static;
    box-shadow: none;
    border: 1px solid var(--border);
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 4px;
  }
  .navbar__menu.open .has-dropdown .dropdown { display: none; }
  .navbar__menu.open .has-dropdown.open .dropdown { display: block; }

  .hero__content { left: 6%; right: 6%; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.75rem; }
  .form-wrap { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
  .cookie-banner { align-items: flex-start; flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .hero__btns { flex-direction: column; }
  .hero { min-height: 500px; }
  .steps-bar { flex-direction: column; }
  .doc-grid { grid-template-columns: 1fr; }
}
