/* ==========================================================================
   Grand Paris Déménagement : feuille unique (reproduction du site Elementor)
   Points de rupture : 768px (tablette) et 1025px (desktop)
   ========================================================================== */

/* Polices (roboto-400.woff2 est variable : couvre 400 à 600) */
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-400.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("../fonts/roboto-slab-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Charte */
:root {
  --primary: #1F3072;
  --secondary: #FF1D1D;
  --text: #414141;
  --accent: #506FB2;
  --ciel: #84A5D7;
  --clair: #AFC9EA;
  --fonce: #18223B;
  --white: #FFFFFF;
  --border: #D5D8DC;
}

/* Reset minimal */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Roboto", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 400; line-height: 1.2; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
p { margin: 0 0 .9rem; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 10px; }

/* En-tête */
.site-header { position: relative; z-index: 10; background: var(--white); border-bottom: 2px solid var(--primary); box-shadow: 0 0 10px rgba(0, 0, 0, .32); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.site-header__logo img { width: 340px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; }
.menu a { display: block; padding: 0 15px; font-size: 15px; font-weight: 600; text-transform: uppercase; text-decoration: none; color: var(--primary); line-height: 70px; }
.menu a:hover, .menu a:focus { color: var(--secondary); }
.menu-toggle { display: none; width: 45px; height: 42px; padding: 0; border: 1px solid rgba(0, 0, 0, .1); border-radius: 3px; background: transparent; color: var(--primary); cursor: pointer; }
.menu-toggle svg { margin: auto; }

/* Hero */
.hero { position: relative; padding: 2% 0; background: var(--white) url("../img/bg-banniere.gif") repeat-x left top; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/banner.png") no-repeat 70% 100% / 40% auto; pointer-events: none; }
.hero__inner { position: relative; max-width: 1074px; min-height: 340px; margin: 0 auto; }
.hero__title { margin: 0 0 22px; font-family: Arial, sans-serif; font-weight: 400; font-size: 32px; text-transform: uppercase; color: var(--secondary); }
.hero__text { color: var(--primary); text-align: justify; margin-bottom: 28px; }
.hero__text--narrow { width: 60%; margin-bottom: 27px; }
.hero__text p:last-child { margin-bottom: 0; }

/* Boutons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 3px; font-size: 15px; line-height: 1; text-decoration: none; transition: background .3s; }
.btn--red { background: var(--secondary); color: var(--white); }
.btn--red:hover, .btn--red:focus { background: var(--primary); color: var(--white); }

/* Bandeaux bleus */
.band { background: var(--primary); text-align: center; padding: 5px 10px; }
.band--sep { border-bottom: 2px solid var(--white); }
.band__title { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--white); }
.band__title a { color: inherit; text-decoration: none; }
.band--toggle { cursor: pointer; }

/* Onglets (titres en ligne >= 768px, accordéon dessous) */
.tabs { display: grid; grid-template-columns: 19.6% 18.1% 14.3% 13.6% 1fr; /* largeurs relevées sur le site actuel */ margin-top: 10px; margin-bottom: 10px; }
.tabs__title { grid-row: 1; padding: 20px 25px; border: 1px solid transparent; border-bottom: 0; background: none; text-align: left; font-weight: 600; font-size: 16px; line-height: 1; text-transform: uppercase; color: var(--accent); cursor: pointer; }
.tabs__title.is-active { border-color: var(--border); color: var(--ciel); position: relative; z-index: 1; background: var(--white); margin-bottom: -1px; }
.tabs__panel { grid-row: 2; grid-column: 1 / -1; display: none; padding: 20px; border: 1px solid var(--border); color: var(--text); }
.tabs__panel.is-active { display: block; }
.tabs__panel ul { margin: 0 0 .9rem; }
.tabs__panel h4 { margin-top: .5rem; }

/* Carrousel (translation de la piste par site.js) */
.carousel { position: relative; overflow: hidden; margin: 10px 0 20px; }
.carousel__track { display: flex; transition: transform .5s ease; }
.carousel__slide { flex: 0 0 100%; margin: 0; }
.carousel__slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carousel__slide figcaption { min-height: 21px; padding-top: 6px; text-align: center; font-size: 15px; font-style: italic; color: var(--primary); }
.carousel__prev, .carousel__next { position: absolute; top: calc((100% - 52px) / 2); transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.carousel__prev { left: 5px; }
.carousel__next { right: 5px; }
.carousel__prev::before, .carousel__next::before { content: ""; display: block; width: 12px; height: 12px; margin: auto; border: solid var(--white); border-width: 0 3px 3px 0; }
.carousel__prev::before { transform: rotate(135deg); }
.carousel__next::before { transform: rotate(-45deg); }
.carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; margin-top: 8px; min-height: 6px; }
.carousel__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; }
.carousel__dots button.is-active, .carousel__dots button[aria-current="true"] { opacity: 1; }

/* Panneaux dépliables */
.panel { padding: 20px 0; }

/* Calculateur (rendu par site.js dans #calc-app) */
.calc { max-width: 1120px; margin: 0 auto; padding: 20px; border: 1px solid var(--text); text-align: center; }
.calc__crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 464px; margin: 0 auto 15px; padding-left: 20px; list-style: none; }
.calc__crumbs a, .calc__crumbs button { display: block; padding: 5px 10px; border: 1px solid; border-radius: 5px; background: var(--white); color: var(--primary); text-decoration: none; transition: all .5s; cursor: pointer; }
.calc__crumbs .active a, .calc__crumbs .active button, .calc__crumbs a.active, .calc__crumbs button.active { background: var(--primary); color: var(--white); }
.calc__crumbs a:hover, .calc__crumbs button:hover { background: var(--accent); color: var(--white); }
.calc__volume { color: var(--secondary); font-size: 1.25rem; }
.calc__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin: 15px 0; }
.calc__item img { margin: 0 auto; }
.calc__item label { display: block; min-height: 40px; margin: 10px auto 0; text-align: center; }
.calc__item input { width: 100%; text-align: center; }

/* Formulaires */
.form { max-width: 1120px; margin: 0 auto; }
.form h3 { color: var(--primary); margin-bottom: 0; }
.form h4 { color: var(--secondary); margin-bottom: 0; margin-top: 15px; }
.form hr { margin: 0 0 10px; border: 0; border-top: 1px solid var(--border); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (min-width: 768px) { .form__grid--addr { grid-auto-flow: column; grid-template-rows: repeat(3, auto); } } /* colonnes NF : Date/CP/Etage | Adresse/Ville/Ascenseur */
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea { width: 100%; padding: 8px 12px; border: 1px solid #C4C4C4; border-radius: 0; background: #F7F7F7; }
.field input:not([type=radio]):not([type=checkbox]), .field select { height: 50px; }
.field--radio .radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 15px; }
.field--radio label, .field--check label { display: inline; margin: 0; font-weight: 400; }
.field--check input { margin-right: 6px; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--secondary) !important; }
.field__error { display: block; color: var(--secondary); }
.req { color: var(--secondary); }
.form__submit button, .form button[type=button]:not(.btn-calc) { width: 130px; padding: 10px 15px; border: 1px solid; border-radius: 5px; background: var(--white); color: var(--primary); transition: all .5s; cursor: pointer; }
.form__submit button:hover, .form__submit button:focus { background: var(--accent); color: var(--white); }
.form__submit button:disabled { opacity: .6; cursor: wait; }
.btn-calc { width: 100%; height: 50px; margin-top: 30px; border: 1px solid var(--secondary); border-radius: 5px; background: var(--white); color: var(--secondary); transition: all .5s; cursor: pointer; }
.btn-calc:hover, .btn-calc:focus { background: var(--secondary); color: var(--white); }
.form__status { color: var(--secondary); font-weight: 600; }
.form__success { color: var(--primary); font-weight: 600; text-align: center; }
.form__rgpd { margin-top: 10px; font-size: 13px; }
.hp { position: absolute; left: -9999px; }

/* Coordonnées */
.coords { padding-top: 20px; padding-bottom: 20px; text-align: center; }
.coords h3 { margin-bottom: 1.2rem; }
.coords p { margin-bottom: 1.2rem; }

/* Pied de page */
.site-footer { padding: 10px 10px 40px; text-align: center; font-weight: 600; color: var(--fonce); }
.site-footer p { margin: 0 0 .5rem; }
.site-footer a { color: var(--fonce); }

/* Mentions légales */
.legal { padding-top: 30px; padding-bottom: 30px; }
.legal h1 { font-size: 32px; font-weight: 600; color: var(--primary); }
.legal h2 { margin-top: 1.5rem; font-size: 24px; font-weight: 600; color: var(--primary); }

/* Tablette et mobile (< 1025px) : menu replié derrière le hamburger */
@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--primary); box-shadow: 0 10px 10px rgba(0, 0, 0, .15); }
  .menu.is-open { display: block; }
  .menu ul { flex-direction: column; }
  .menu a { line-height: 1; padding: 15px 20px; border-top: 1px solid var(--border); }
  .hero { padding-bottom: 180px; background-position: center bottom; }
  .hero::before { background-position: right bottom; background-size: 452px auto; }
  .hero__inner { min-height: 0; padding: 20px 20px 0; text-align: center; }
  .hero__title { font-size: 34px; line-height: .95; }
  .hero__text--narrow { width: 100%; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .site-header__logo { width: 80%; }
  .site-header__logo img { width: 100%; }
  .tabs { display: block; border-bottom: 1px solid var(--border); }
  .tabs__title { display: block; width: 100%; padding: 10px; line-height: 1.5; border: 1px solid var(--border); border-bottom: 0; margin: 0; }
  .tabs__title.is-active { margin: 0; }
  .tabs__panel { border-bottom: 0; padding: 10px; }
  .calc__grid { grid-template-columns: repeat(2, 1fr); }
  .form__grid { grid-template-columns: 1fr; }
}
