/* =========================================================
   BASE CSS MODERNE SANS LAYERS
   ---------------------------------------------------------
   Objectif :
   - garder un CSS simple à relire et à maintenir
   - utiliser variables + flex/grid + mobile first
   - éviter les floats sauf si besoin exceptionnel
   - conserver des noms de classes proches de l'existant
   ========================================================= */


/* =========================================================
   1. VARIABLES GLOBALES
   ---------------------------------------------------------
   Toutes les couleurs, tailles et espacements importants
   sont centralisés ici.
   ========================================================= */

:root {
  /* Couleurs principales */
  --color-bg: #f2f0eb;
  --color-bg-2: #dfdbd1;

  --color-surface: #ffffff;
  --color-surface-alt: #efeeea;
  --color-surface-soft: #e4e0e0;
  --color-surface-muted: #f0efec;

  --color-surface-2: #f8f6f2;

  --color-text: #303030;
  --color-text-strong: #323232;
  --color-text-muted: #797979;
  --color-text-soft: #616161;

  --color-text-btn-hover: #929292;


  /* --color-primary: #d14500; */
  --color-primary: #2e358e;
  /* --color-primary-hover: #8E882E; */
  --color-primary-hover: #8E582E;
  
  --color-primary-light: #ffc000;
  --color-primary-dark: #860000;

  --color-secondary: #8E582E;


  --color-dark: #1b1a18;
  --color-border: #d6d1ca;
  --color-border-strong: #b7b7b7;
  --color-line: #403e3f;

  --color-success: #007f00;
  --color-success-border: rgb(140, 190, 65);
  --color-error: #c14120;
  --color-error-bg: #faf9f5;

  --color-footer-text: #8f949b;
  --color-footer-link: #bfc5cd;
  --color-footer-link-hover: #929292;

  --color-note-bg: #f8ecc5;
  --color-note-border: #d8ceae;
  --color-table-hover: #c0bdb8;
  --color-overlay: rgba(0, 0, 0, 0.5);
  /* --color-shadow: rgba(0, 0, 0, 0.2); */
  --color-shadow: rgba(20,18,16,.06);

  /* Typographies */
  --font-body: "Source Sans 3", sans-serif;
  --font-heading: "Barlow Condensed", sans-serif;

  /* Tailles de texte fluides */
  --text-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 1rem);
  /* --text-base: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem); */
  --text-base: 1rem;
  /* --text-md: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); */
  --text-md: 1.05rem;
  /* --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.35rem); */
  --text-lg: 1.25rem;
  /* --text-xl: clamp(1.35rem, 1.15rem + 0.6vw, 1.75rem); */
  --text-xl: 2.3rem;
  /* --text-2xl: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); */
  --text-2xl: 3.5rem;

  /* --text-3xl: clamp(2.6rem, 1.8rem + 3vw, 4rem); */
  --text-3xl: 4.8rem;

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Rayons */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* Largeurs / layout */
  --container: min(90vw, 1200px);
  --container-narrow: min(90vw, 800px);
  --header-height-mobile: 70px;
  --header-height-desktop: 160px;
  --header-position_mini: -160px;
  --header-height-mini_desktop: 70px;
  --nav-offset-desktop: 90px;
  --section-padding: clamp(var(--space-8), 5vw, var(--space-12));

  /* Animations / ombres */
  --transition-fast: 180ms ease;
  --transition-medium: 300ms ease;
  --shadow-sm: 0 2px 10px var(--color-shadow);
  --shadow:0 10px 28px rgba(20,18,16,.06);
}


/* =========================================================
   2. RESET / BASE COMMUNE
   ---------------------------------------------------------
   Mise à plat des comportements navigateur.
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  /* scroll-behavior: smooth; */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height-desktop);
}

/* body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
} */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}

img,
picture,
video,
canvas,
svg,
iframe,
object,
embed {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

section {
  overflow: hidden;
}

h1,
h2,
h3,
.titre_accueil,
.grand_titre_accueil,
.grand_sous_titre_accueil,
nav {
  font-family: var(--font-heading);
  line-height: 1.1;
}

h1 {
  font-size: var(--text-3xl);
  color: var(--color-text-strong);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.03;
  letter-spacing: 0.02em;
  margin: var(--space-4) 0 var(--space-4) 0;
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  text-transform: uppercase;
  color: var(--color-primary);
  text-align: center;
  scroll-margin-top: var(--header-height-desktop);
}

/* h2[id] {
  scroll-margin-top: var(--anchor-offset);
} */

h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  text-transform: uppercase;
  color: var(--color-secondary);
  text-align: center;
}

h4 {
  color: var(--color-text-muted);
  font-style: italic;
}

::selection {
  background: rgba(255, 192, 0, 0.35);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


/* =========================================================
   3. UTILITAIRES DE MISE EN PAGE
   ---------------------------------------------------------
   Petites classes réutilisables partout.
   ========================================================= */

.container,
#header_conteneur,
#contenu,
#footer_conteneur,
section {
  width: var(--container);
  margin-inline: auto;
}

.container-narrow,
.sous_contenu {
  width: var(--container-narrow);
  margin-inline: auto;
}

.stack {
  display: grid;
  gap: var(--space-4);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: var(--space-4);
}

.grid-2,
.grid-3 {
  grid-template-columns: 1fr;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.w-full {
  width: 100%;
}

.spacer {
  height: var(--space-12);
}

/* .marge {
  display: block;
  height: var(--header-height-mobile);
} */


/* =========================================================
   4. STRUCTURE GLOBALE DU SITE
   ========================================================= */

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10000;
  height: var(--header-height-mobile);
  overflow: hidden;
  text-align: center;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);

}

.menu_mobile {
  position: absolute;
  top: 15px;
  left: 15px;
  display: block;
}

.header_mini,
.header_maxi,
.nav_mini,
.nav_maxi,
.menu_ouvert,
.menu_ferme,
footer img,
.bouton_valider,
.categorie,
.tag,
#scroll-down-arrow {
  transition: all var(--transition-medium);
}

.menu_ouvert {
  height: 100dvh;
}

.menu_ferme,
.header_mini,
.header_maxi {
  height: var(--header-height-mobile);
}

.conteneur,
.galerie_societe,
#points_conteneur {
  background-color: var(--color-surface-alt);
}

.conteneur {
  padding-bottom: var(--space-12);
}

.galerie_societe,
#points_conteneur {
  padding: var(--section-padding);
}

.titre_accueil {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-strong);
}

.grand_titre_accueil {
  font-size: var(--text-3xl);
  font-weight: 700;
  text-align: center;
  color: var(--color-text-strong);
}

.grand_sous_titre_accueil {
  font-size: var(--text-2xl);
  font-weight: 700;
  text-align: center;
  color: var(--color-primary-light);
}

.titre_actualites,
.titres {
  text-align: center;
}

.titres {
  width: min(70%, 900px);
  margin-inline: auto;
}

.sous_titre {
  font-size: var(--text-md);
}

.souligne {
  width: min(250px, 100%);
  margin: 3em auto;
  border: 0;
  border-top: 3px solid var(--color-border-strong);
}

.paire {
  background-color: var(--color-surface);
}

.impaire {
  background-color: var(--color-surface-alt);
}

.age {
  display: none;
}

/* =========================================================
   5. TAGS / PETITS ÉLÉMENTS UI
   ========================================================= */

.tag,
.categorie {
  display: inline-block;
  text-transform: uppercase;
}

.tag {
  padding: 0.5em 1em;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: #000000;
  white-space: nowrap;
}

.tag:hover {
  color: var(--color-bg);
  background-color: #000000;
}

.neutre {
  background-color: var(--color-primary-light);
}

.categorie {
  margin-right: 10px;
  margin-bottom: 3px;
  padding: 5px 10px;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  background-color: var(--color-bg);
  transition: background-color var(--transition-medium), color var(--transition-fast);
}

.categorie:hover {
  color: var(--color-bg);
  background-color: rgba(26, 23, 27, 0.8);
}

.ss-slider__dots{
  --ss-panel-bg:rgba(0,0,0,0.08);
  --ss-panel-border:rgba(0,0,0,0.12);
}


/* =========================================================
   6. BOUTONS
   ========================================================= */

.btn,
.bouton_valider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-surface);
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-full);
  /* text-transform: uppercase; */
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-medium);

}

.btn:hover,
.bouton_valider:hover {
  transform: translateY(-3px);
  transition: all var(--transition-fast);
}

.bouton_valider {
  width: 100%;
}

.btn_primary {
  background: var(--color-primary);
  color: var(--color-surface);
}

.btn_primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-bg);
}

.btn_secondary {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.btn_secondary:hover {
  background: var(--color-bg-2);
  color: var(--color-text);
}

/* =========================================================
   7. BLOCS CONTENU / CARTES / COLONNES
   ========================================================= */

.sommaire_voyages,
#points,
#actualites {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.cadre_voyage,
.cadre_voyage_detail,
.point,
.actualite_cadre,
.card {
  background-color: var(--color-bg);
}

.actualite_cadre {
  padding: var(--space-4);
}

.marge_voyage {
  padding-top: var(--space-12);
}

.cadre_voyage h3 {
  color: var(--color-text-soft);
  font-weight: 400;
}

.sous_titre_voyage {
  color: var(--color-primary);
  font-weight: 900;
}

.cadre_voyage p,
.cadre_voyage h2,
.cadre_voyage h3,
.point p,
.point h2,
.colonne p,
.colonne h2 {
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.colonne {
  columns: 1;
  column-gap: var(--space-4);
}

.photo_accueil {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-6);
}

.grille {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: var(--space-6);
  align-items: stretch
}

.grille_contact {
  display: grid;
  grid-template-columns: 0.90fr 1.20fr;
  gap: var(--space-6);
  align-items: stretch
}

.cadre_contenu {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}

 .cadre_photo {
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow);
 }

 .cadre_photo img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

.cadre_apropos {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  gap: var(--space-8);
  align-items: start;
  box-shadow: var(--shadow);  
}

.cadre_apropos img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* =========================================================
   8. GALERIES / CAROUSEL
   ========================================================= */

/* .main-carousel {
  width: 100%;
  margin-inline: auto;
}

.carousel-cell {
  margin-right: var(--space-2);
}

.in-use-carousel__item__title {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  margin: 0;
  line-height: 50px;
  text-align: center;
  color: var(--color-bg);
  background-color: var(--color-overlay);
}

.gallery,
.gallery img,
.instructions {
  display: none;
}

.gallery {
  clear: both;
  height: 215px;
  overflow: auto;
  white-space: nowrap;
}

.photo_societe img,
.cadre_voyage img,
.point img {
  width: 100%;
} */







.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.gallery img {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}



/* =========================================================
   9. FLECHE BAS DE PAGE
   ========================================================= */

#scroll-down-arrow {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 192, 0, 0.8);
  box-shadow: var(--shadow-sm);
  animation: pulse 2s infinite;
}

#scroll-down-arrow:hover {
  transform: scale(1.08);
  background: var(--color-primary);
}

#scroll-down-arrow svg {
  width: 24px;
  height: 24px;
  fill: var(--color-bg);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#bottom {
  height: 0;
}


/* =========================================================
   10. TABLEAUX
   ========================================================= */

table {
  width: 100%;
  border: none;
  border-collapse: collapse;
}

th,
td {
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
}

.message th {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  background-color: var(--color-surface-soft);
}

.message td {
  background-color: var(--color-surface);
}

.categories tr:hover,
.tableau tbody tr:hover {
  background-color: var(--color-table-hover);
}

.tableau {
  font-size: var(--text-sm);
}

.tableau thead th {
  color: var(--color-bg);
  background-color: var(--color-primary);
  border-bottom: 3px solid #535353;
}

.tableau tbody td a {
  color: #4f5051;
}

.tableau tbody td a:hover {
  color: var(--color-bg);
}

.annule {
  background-color: #777777;
}

.entete_tableau {
  display: none;
}


/* =========================================================
   11. FORMULAIRES
   ========================================================= */

#devis {
  width: var(--container);
  margin-inline: auto;
}

.form-row {
  display: grid;
  gap: var(--space-4);
}

.column-half,
.column-full {
  width: 100%;
  padding: 0;
}

.cadre_contact {
  width: min(100%, 960px);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  background-color: var(--color-bg);
}

#contact .libelle {
  display: block;
  width: 100%;
  margin-bottom: var(--space-2);
}

input.champ_text,
textarea.champ_text,
input.inputform,
textarea.inputform,
select.champ_text,
iframe.champ_text,
input.champ_text_error,
textarea.champ_text_error,
select.champ_text_error,
iframe.champ_text_error {
  width: 100%;
  margin: 0 0 var(--space-4);
  padding: 0.875rem 1rem;
  background-color: var(--color-surface-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

input.champ_text,
textarea.champ_text,
input.inputform,
textarea.inputform,
select.champ_text,
iframe.champ_text {
  color: var(--color-text-strong);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface-2);
  border-radius: var(--radius-md);
}

input.champ_text:focus,
textarea.champ_text:focus,
iframe.champ_text:focus,
select.champ_text:focus {
  outline: 0;
  border-color: var(--color-primary);
}

input.champ_text_error,
textarea.champ_text_error,
select.champ_text_error,
iframe.champ_text_error {
  color: #7c7565;
  background-color: var(--color-error-bg);
  border: 1px solid #dddddd;
  border-left: 5px solid var(--color-error);
}

.text_erreur {
  margin: 5px 0;
  color: var(--color-error);
  font-size: var(--text-xs);
}

.recherche {
  width: min(100%, 500px);
}

.cadre_erreur,
.cadre_confirmation,
.cadre_prix_haut,
.cadre_prix_bas,
.cadre_warning {
  width: 100%;
}

.cadre_erreur,
.cadre_confirmation,
.cadre_prix_haut,
.cadre_warning {
  padding: var(--space-4);
  text-align: center;
}

.cadre_erreur {
  margin-bottom: 10px;
  color: var(--color-error);
  background-color: var(--color-error-bg);
  border: 1px solid var(--color-error);
}

/* .cadre_confirmation {
  color: var(--color-success);
  background-color: var(--color-bg);
  border: 1px solid var(--color-success-border);
} */

.cadre_confirmation {
  box-sizing: border-box;
  width: 100%;
  padding: 42px 30px 36px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-text, #393636);
  font-family: var(--font-body);
  text-align: center;
}

.cadre_confirmation__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 24px;
  border: 1px solid #b7b7b7;
  border-radius: 50%;
}

.cadre_confirmation__icone svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cadre_confirmation__titre {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.35;
}

.cadre_confirmation__texte p {
  max-width: 340px;
  margin: 0 auto;

  color: var(--color-text-soft, #737373);
  /* font-size: 14px; */
  line-height: 1.75;
}

.cadre_confirmation__signature {
  display: block;
  margin-top: 28px;

  color: var(--color-text-soft, #737373);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cadre_confirmation__signature::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 0 auto 20px;
  background-color: #d0d0d0;
}

@media (max-width: 700px) {
  .cadre_confirmation {
    padding: 34px 24px;
  }

  .cadre_confirmation__titre {
    font-size: 23px;
  }
}


.cadre_prix_haut,
.cadre_warning {
  margin-top: var(--space-4);
  font-weight: bold;
  color: var(--color-bg);
  background-color: var(--color-primary);
}

.cadre_prix_bas {
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-primary);
}

.cadre_warning {
  width: min(100%, 70%);
  border-radius: var(--radius-sm);
}

.entete_colonne {
  color: var(--color-bg);
  text-align: center;
  font-weight: bold;
  background-color: #aa9881;
}

.edit input {
  font-size: var(--text-xs);
}

.obligatoire {
  text-decoration: underline;
}


/* =========================================================
   12. ACTUALITES
   ========================================================= */

#news {
  padding: 0;
  list-style: none;
}

#news li {
  position: relative;
  min-height: 100px;
  margin-bottom: 10px;
  padding: 10px;
  color: #212326;
  border: 1px solid #ddd;
  border-radius: var(--radius-lg);
  background: linear-gradient(#f8f8f8, #e0e0e0);
  text-shadow: 0 1px 1px var(--color-bg);
  line-height: normal;
  cursor: move;
}

.cadre_infos {
  font-size: 16px;
}

.infos {
  margin-right: 5px;
  padding: 0 10px 3px;
  font-size: 14px;
  font-weight: normal;
  background-color: #cccccc;
  border-radius: var(--radius-lg);
}

.icones {
  position: absolute;
  inset: 0 auto auto 0;
  display: none;
  width: 100%;
  height: 110px;
  padding-top: 10px;
  background-image: url('../img-interface/transparent-noir.png');
  border-radius: var(--radius-lg);
}

.icone {
  padding: 7px 15px;
  border: 0;
}

.icone_mini {
  border: 0;
}


/* =========================================================
   13. NAVIGATION
   ---------------------------------------------------------
   Menu mobile moderne avec vrai bouton + état accessible.
   ========================================================= */

#header_conteneur {
  position: relative;
  display: flex;
  /* align-items: center; */
  /* line-height: var(--header-height-mobile); */
  justify-content: space-between;
  gap: var(--space-4);
  width: var(--container);
  min-height: var(--header-height-mobile);
  margin-inline: auto;
}

/* .logo {
  display: inline-block;
  width: 209px;
  height: 84px;
  margin: 0 auto;
  text-align: center;
} */

.logo_site {
  display: inline-block;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu_mobile {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-bg);
  cursor: pointer;
}

.menu_mobile:hover {
  color: var(--color-primary-light);
}

.menu-toggle-bars {
  position: relative;
  display: block;
  width: 24px;
  height: 18px;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after,
.menu-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition-medium), opacity var(--transition-medium), top var(--transition-medium);
}

.menu-toggle-bars::before {
  top: 0;
}

.menu-toggle-bars span {
  top: 8px;
}

.menu-toggle-bars::after {
  top: 16px;
}

.menu_mobile[aria-expanded="true"] .menu-toggle-bars::before {
  top: 8px;
  transform: rotate(45deg);
}

.menu_mobile[aria-expanded="true"] .menu-toggle-bars span {
  opacity: 0;
}

.menu_mobile[aria-expanded="true"] .menu-toggle-bars::after {
  top: 8px;
  transform: rotate(-45deg);
}

/* .nav_principal {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  background-color: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
} */

.nav_principal {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--header-height-mobile));
  display: none;
  background-color: var(--color-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav_principal.is-open {
  display: block;
}

.nav_principal ul {
  display: flex;
  flex-direction: column;
  width: var(--container);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav_principal li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav_principal a {
  display: block;
  width: 100%;
  padding: var(--space-4) 0;
  color: var(--color-text-strong);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  /* text-transform: uppercase; */
}

/* .nav_principal a:hover,
.nav_principal #current a,
.nav_principal .is-current {
  color: var(--color-primary-hover);
} */

.nav_principal a:hover,
.nav_principal a.current,
.nav_principal .is-current {
  color: var(--color-primary-hover);
}




/* =========================================================
   14. PAGINATION
   ========================================================= */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: var(--space-2);
}

.pages,
.page_actuelle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.25rem 0.5rem;
  font-weight: bold;
  line-height: 1;
}

.pages {
  color: var(--color-primary-light);
  background-color: var(--color-text-strong);
}

.pages:hover {
  color: #f2f2f2;
  background-color: #444444;
}

.page_actuelle {
  color: var(--color-bg);
  background-color: var(--color-primary-light);
}

.page_actuelle:hover {
  color: #000000;
  background-color: #e8e8e8;
}


/* =========================================================
   15. FOOTER
   ========================================================= */

footer {
  padding: var(--section-padding);
  font-size: var(--text-sm);
  font-weight: 300;
  text-align: center;
  color: var(--color-footer-text);
  background-color: var(--color-dark);
}

#footer_conteneur {
  display: grid;
  gap: var(--space-8);
}

#footer_left,
#footer_right {
  width: 100%;
}

footer a {
  color: var(--color-footer-link);
}

footer a:hover {
  color: var(--color-footer-link-hover);
}

footer img {
  border: 0;
  opacity: 0.6;
}

footer img:hover {
  opacity: 0.2;
}

.footer_contenu {
  width: min(50%, 900px);
  margin-inline: auto;
}

.ligne {
  max-width: 1040px;
  margin: var(--space-8) auto;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-line);
}


/* =========================================================
   16. DIVERS
   ========================================================= */

.note_dev {
  background-color: #ffcc00;
}

.note {
  margin-bottom: 1em;
  padding: 1em;
  font-style: italic;
  background-color: var(--color-note-bg);
  border: 1px solid var(--color-note-border);
  border-radius: var(--radius-lg);
}

.tel {
  font-size: 30px;
  color: var(--color-bg);
}

.droite {
  width: 100%;
}

.ligne_num {
  width: 20%;
}

.ligne_libelle {
  width: 70%;
}

.ligne_horaires {
  width: 10%;
}


/* =========================================================
   17. RESPONSIVE - TABLETTE
   ========================================================= */

@media (min-width: 768px) {
  .grid-2,
  .sommaire_voyages,
  #actualites,
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  #points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .colonne {
    columns: 2;
  }

  #footer_conteneur {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}


/* =========================================================
   18. RESPONSIVE - DESKTOP
   ========================================================= */

@media (min-width: 1024px) {
  header {
    height: var(--header-height-desktop);
    /* background-image: url('../img/header.webp');
    background-position: top center;
    background-repeat: no-repeat; */
    /* padding-bottom: var(--header-height-desktop); */
  }

  .header_mini {
    height: var(--header-height-mini_desktop);
    /* height: var(--header-height-desktop); */
    /* background-color: var(--color-bg); */
    /* background-image: url('../img/header.webp');
    background-position: center var(--header-position_mini);
    background-repeat: no-repeat; */
    /* top: -90px; */
  }

  .header_maxi {
    height: var(--header-height-desktop);
    /* background-color: var(--color-bg); */
    /* background-image: url('../img/header.webp');
    background-position: top center;
    background-repeat: no-repeat; */
  }

  main{
    padding-top: var(--nav-offset-desktop);
  }

  .marge {
    height: var(--header-height-desktop);
    display: block;   
  }

  .nav_mini {
    padding-top: 35px !important;
    height: 0px !important;

  }

  .nav_maxi {
    padding-top: var(--nav-offset-desktop);
  }

  #header_conteneur {
    min-height: var(--header-height-desktop);
    /* line-height: var(--header-height-desktop); */
    /* padding-top: var(--nav-offset-desktop); */
  }

  .menu_mobile {
    display: none;
  }

  .nav_principal {
    position: static;
    
    display: inline-block;
    /* width: auto; */
    /* margin-top: var(--nav-offset-desktop); */
    /* height: var(--header-height-desktop); */
    height: auto;
    background: transparent;
    border-top: 0;
    line-height: 1;
    overflow: hidden; 
  }

  .nav_principal ul {
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .nav_principal li + li {
    border-top: 0;
  }

  .nav_principal a {
    width: auto;
    padding: 0 var(--space-3);
  }

  .topbar_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 24px; */
    /* min-height: 78px; */
    height: var(--header-height-desktop);
    width: var(--container);
    /* margin-top: var(--nav-offset-desktop); */
    padding-top: var(--nav-offset-desktop);
  }


  .entete_tableau {
    display: table-row;
  }
}


/* =========================================================
   19. ACCESSIBILITE / REDUCTION DES ANIMATIONS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   20. JÉRÉMY BACA - BASE ET CLASSES COMMUNES
   ========================================================= */

html {
  scroll-padding-top: 112px;
}

body {
  --color-bg: #faf9f6;
  --color-text: #202020;
  --color-text-strong: #202020;
  --color-text-muted: #66635f;
  --color-primary: #ef2027;
  --color-primary-hover: #c81920;
  --color-primary-dark: #bd171e;
  --color-dark: #202020;
  --container: min(1370px, calc(100% - 80px));
  --header-height-desktop: 112px;
  --header-height-mobile: 84px;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-full: 0;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
}

body > main {
  padding-top: var(--header-height-desktop);
}

.accueil_baca section {
  width: 100%;
  margin: 0;
  scroll-margin-top: 0;
}

.accueil_baca .section_metier {
  padding-block: 64px;
}

.accueil_baca h1,
.accueil_baca h2 {
  color: inherit;
  text-transform: none;
  text-align: left;
  letter-spacing: -.02em;
  scroll-margin-top: 0;
}

.accueil_baca h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 10px 0 26px;
}

.accueil_baca p {
  margin: 0 0 18px;
}

.repere {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary-dark);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.repere::before {
  content: "";
  width: 46px;
  height: 2px;
  background: var(--color-primary);
}

body .btn,
body .bouton_valider {
  border-radius: 0;
  padding: 14px 26px;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
}

body .btn:hover,
body .bouton_valider:hover {
  transform: none;
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

body :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

body #scroll-down-arrow {
  background: var(--color-primary);
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.photo_metier {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 1023px) {
  html {
    scroll-padding-top: 84px;
  }

  body {
    --container: min(1370px, calc(100% - 40px));
  }

  body > main {
    padding-top: var(--header-height-mobile);
  }
}

@media (max-width: 767px) {
  .accueil_baca .section_metier {
    padding-block: 40px;
  }

  .accueil_baca h2 {
    margin-bottom: 20px;
  }
}

/* =========================================================
   21. JÉRÉMY BACA - BARRE DE NAVIGATION
   ========================================================= */

body > header {
  height: var(--header-height-desktop);
  background: var(--color-bg);
  border-top: 3px solid var(--color-primary);
  border-bottom: 1px solid #e7e4df;
  overflow: visible;
}

body #header_conteneur {
  height: 100%;
  min-height: 0;
}

body .topbar_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  height: 100%;
  padding: 0;
}

body .logo_site {
  flex-shrink: 0;
  width: 192px;
}

body .logo_site img {
  width: 100%;
  height: auto;
}

body .nav_principal {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin-left: auto;
  background: transparent;
  overflow: visible;
}

body .nav_principal ul {
  width: auto;
  flex-direction: row;
  gap: 28px;
  flex-wrap: nowrap;
}

body .nav_principal li + li {
  border: 0;
}

body .nav_principal a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  border-bottom: 2px solid transparent;
}

body .nav_principal a.current,
body .nav_principal a:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

body .menu_mobile {
  display: none;
}

@media (max-width: 1023px) {
  body > header {
    height: var(--header-height-mobile);
  }

  body .topbar_inner {
    gap: 16px;
  }

  body .logo_site {
    width: 146px;
  }

  body .menu_mobile {
    position: static;
    display: inline-flex;
    order: 3;
    flex-shrink: 0;
    color: var(--color-text);
  }

  body .devis_navigation {
    margin-left: auto;
    padding: 11px 16px;
    font-size: .9rem;
  }

  body .nav_principal {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header-height-mobile));
    display: none;
    margin: 0;
    padding-block: 24px;
    background: var(--color-bg);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body .nav_principal.is-open {
    display: block;
  }

  body .nav_principal ul {
    width: var(--container);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  body .nav_principal a {
    padding: 20px 0;
    text-align: left;
    font-size: 1.25rem;
  }
}

@media (max-width: 479px) {
  body .devis_navigation {
    display: none;
  }

  body .menu_mobile {
    margin-left: auto;
  }
}

/* =========================================================
   22. JÉRÉMY BACA - PHOTO ET ACCROCHE D’ACCUEIL
   ========================================================= */

.accueil_visuel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding-block: 72px;
  color: #fff;
  background: #30352f;
}

.accueil_visuel .image_fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.accueil_visuel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(15 20 19 / 84%), rgb(15 20 19 / 35%) 58%, transparent);
}

.accroche {
  max-width: 650px;
}

.accroche .surtitre {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.accroche h1 {
  font-size: clamp(3rem, 4.6vw, 5.2rem);
  line-height: 1;
  margin: 18px 0 24px;
}

.accroche > p:not(.surtitre) {
  font-size: 1.2rem;
}

.accroche .actions {
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}

.lien_clair {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
  font-weight: 600;
}

.lien_clair:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

@media (max-width: 767px) {
  .accueil_visuel {
    min-height: 520px;
    padding-block: 48px;
  }

  .accueil_visuel::before {
    background: rgb(15 20 19 / 65%);
  }

  .accroche h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }

  .accroche .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
}

/* =========================================================
   23. JÉRÉMY BACA - PRÉSENTATION DE L’ENTREPRISE
   ========================================================= */

.grille_presentation {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 56px;
}

.grille_presentation > .photo_metier {
  aspect-ratio: 3 / 2;
}

.expertises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-weight: 700;
}

.expertises li + li {
  border-left: 1px solid #ed9295;
}

.expertises .material-symbols-outlined {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 34px;
}

@media (max-width: 767px) {
  .grille_presentation {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .expertises {
    margin-top: 24px;
    font-size: .9rem;
  }
}

/* =========================================================
   24. JÉRÉMY BACA - GALERIES ET RÉNOVATION DE TOITURES
   ========================================================= */

.section_blanche {
  background: #ffffff;
}

.entete_section {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
  margin-bottom: 24px;
}

.entete_section h2,
.entete_section p {
  margin-bottom: 0;
}

.galerie_metier {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.realisation {
  min-width: 0;
  margin: 0;
}

.realisation a {
  display: block;
  overflow: hidden;
}

.realisation img {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
  border-radius: 0;
  transition: transform 250ms ease;
}

.realisation a:hover img {
  transform: scale(1.035);
}

.realisation figcaption {
  margin-top: 10px;
  font-size: .9rem;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .entete_section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .galerie_metier {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
}

@media (max-width: 479px) {
  .galerie_metier {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   25. JÉRÉMY BACA - ZINGUERIE
   ========================================================= */

.section_sombre {
  color: #fff;
  background: var(--color-dark);
}

.section_sombre .repere {
  color: #ff8589;
}

/* Petits écrans : grille et espacements hérités des classes communes. */

/* =========================================================
   26. JÉRÉMY BACA - TUILES PLATES / ARDOISES
   ========================================================= */

.galerie_deux {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.galerie_deux img {
  aspect-ratio: 2.25;
}

@media (max-width: 767px) {
  .galerie_deux {
    gap: 24px 16px;
  }
}

@media (max-width: 479px) {
  .galerie_deux {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   27. JÉRÉMY BACA - MEMBRANE EPDM
   ========================================================= */

.section_grise {
  background: #eeede9;
}

/* .grille_epdm {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
}

.grille_epdm > .realisation img {
  aspect-ratio: 1.85;
}

.grille_epdm > div img {
  aspect-ratio: 2.8;
}

@media (max-width: 767px) {
  .grille_epdm {
    grid-template-columns: 1fr;
    gap: 26px;
  }
} */

/* =========================================================
   28. JÉRÉMY BACA - AUTRES RÉALISATIONS
   ========================================================= */

#autres .entete_section p {
  max-width: 440px;
}

/* Petits écrans : grille et espacements hérités des classes communes. */

/* =========================================================
   29. JÉRÉMY BACA - DEVIS ET INFORMATIONS LÉGALES
   ========================================================= */

.accueil_baca #contact {
  background: #fff;
}

.contact_baca {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.coordonnees {
  margin-top: 36px;
  font-style: normal;
  font-size: 1.15rem;
}

.coordonnees p {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.coordonnees .material-symbols-outlined {
  color: var(--color-primary);
  line-height: 1.5;
}

.coordonnees a {
  color: inherit;
  font-weight: 700;
}

.formulaire_baca {
  padding-left: 64px;
  border-left: 1px solid #d6d1ca;
  min-width: 0;
}

.grille_formulaire {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.formulaire_baca label {
  display: block;
  margin-bottom: 5px;
  font-size: .9rem;
  font-weight: 600;
}

/* Masquer les libellés visuellement sans les retirer aux lecteurs d’écran. */
.formulaire_baca label:not(.consentement) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.formulaire_baca input:not([type="checkbox"]),
.formulaire_baca select,
.formulaire_baca textarea {
  border-radius: 0;
  background: #faf9f6;
}

.formulaire_baca textarea {
  min-height: 130px;
  resize: vertical;
}

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

.formulaire_baca .consentement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.5;
}

.consentement input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--color-primary);
}

.consentement a {
  text-decoration: underline;
}

.formulaire_baca .bouton_valider {
  width: 100%;
}

.informations_legales {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e7e4df;
  color: var(--color-text-muted);
  font-size: .9rem;
}

.informations_legales details {
  scroll-margin-top: 16px;
}

.informations_legales summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  padding-block: 8px;
}

.informations_legales p {
  margin-top: 12px;
}

@media (max-width: 1023px) {
  .contact_baca {
    gap: 32px;
  }

  .formulaire_baca {
    padding-left: 32px;
  }
}

@media (max-width: 767px) {
  .contact_baca,
  .informations_legales {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .formulaire_baca {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid #d6d1ca;
  }
}

@media (max-width: 479px) {
  .grille_formulaire {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* =========================================================
   30. JÉRÉMY BACA - PIED DE PAGE
   ========================================================= */

body > footer {
  padding: 40px 0;
}

.pied_page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  text-align: right;
}

.logo_pied {
  display: block;
  width: 300px;
  padding: 12px;
  /* background: var(--color-bg); */
  flex-shrink: 0;
}

body .logo_pied img,
body .logo_pied img:hover {
  opacity: 1;
}

.liens_pied {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-body);
  line-height: 1.5;
}

.pied_page p {
  margin: 16px 0 0;
}

@media (max-width: 767px) {
  .pied_page {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .liens_pied {
    justify-content: flex-start;
    gap: 12px 20px;
  }
}
