@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

/* Page d'attente Edgar — styles isolés du reste du thème WordPress. */
:root {
  --edgar-night: #040523;
  --edgar-blue: #001a45;
  --edgar-input: #071f64;
  --edgar-gold: #a67800;
  --edgar-white: #f6f6fa;
  --edgar-serif: 'Noto Serif', Georgia, serif;
  --edgar-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* La page d'attente masque seulement l'en-tête / pied de page éventuels du thème. */
body.page-template-page-accueil,
body.page-template-page-accueil #page,
body.page-template-page-accueil .site {
  background: var(--edgar-night);
}
body.page-template-page-accueil #masthead,
body.page-template-page-accueil .site-header,
body.page-template-page-accueil #colophon,
body.page-template-page-accueil .site-footer {
  display: none !important;
}
body.page-template-page-accueil #page,
body.page-template-page-accueil .site-main,
body.page-template-page-accueil .content-area,
body.page-template-page-accueil .site-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.page-template-page-accueil { margin: 0; }

.edgar-landing,
.edgar-landing * { box-sizing: border-box; }
.edgar-landing {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--edgar-night);
  color: var(--edgar-white);
  font-family: var(--edgar-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: .10em;
  -webkit-font-smoothing: antialiased;
}
.edgar-landing a { color: inherit; }
.edgar-landing img { max-width: 100%; display: block; }
.edgar-landing p { margin: 0; }
.edgar-landing em { font-style: italic; }
.edgar-gold { color: var(--edgar-gold); }

/* Fond d'origine découpé en calques SVG indépendants. */
.edgar-landing__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.edgar-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: fill;
  user-select: none;
}
.edgar-bg--star {
  /*transform: translate3d(0, var(--edgar-parallax, 0px), 0);
  will-change: transform;*/
}
.edgar-bg--star {
    --edgar-start: 0px;

    transform: translate3d(
        0,
        calc(var(--edgar-start) + var(--edgar-parallax, 0px)),
        0
    );

    will-change: transform;
}

@media (min-width: 768px) {
    .edgar-bg--star[src$="asterisque-3.svg"] {
        /*display: none;*/
    }
    .edgar-bg--star[src$="asterisque-5.svg"] {
        --edgar-start: 145px;
    }

    .edgar-bg--star[src$="asterisque-4.svg"] {
        --edgar-start: 235px;
    }

    .edgar-bg--star[src$="asterisque-6.svg"] {
        --edgar-start: 145px;
    }

    .edgar-bg--star[src$="asterisque-4.svg"] {
        transform: translate3d(
            18vw,
            calc(var(--edgar-start, 0px) + var(--edgar-parallax, 0px)),
            0
        );
    }

    .edgar-bg--star[src$="asterisque-6.svg"] {
        transform: translate3d(
            18vw,
            calc(var(--edgar-start, 0px) + var(--edgar-parallax, 0px)),
            0
        );
    }
    .edgar-bg--star[src$="asterisque-2.svg"] {
        transform: translate3d(
            -14vw,
            calc(var(--edgar-start, 0px) + var(--edgar-parallax, 0px)),
            0
        );
    }
}

/* Sections : 100 % de hauteur minimum, sans découper le texte. */
.edgar-section {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  padding-block: 64px;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}
.edgar-section--hero { padding: 0; }
.edgar-hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: min(50vw, 1080px);
  pointer-events: none;
}
.edgar-hero__photo img { width: 100%; height: auto; }
.edgar-hero__vertical {
  position: absolute;
  top: 50%;
transform: translateY(-50%) rotate(180deg);
  right: clamp(9px, 1.7vw, 32px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  writing-mode: vertical-rl;
  color: var(--edgar-white);
  font-family: var(--edgar-serif);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
    height: max-content;
    max-height: none;
}

.edgar-hero__vertical .edgar-dot {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.edgar-hero__content {
  position: relative;
  z-index: 1;
  width: min(1100px, 82vw);
  margin-left: clamp(36px, 9.6vw, 210px);
}
.edgar-hero__logo {
  width: 500px;
  height: auto;
  margin-bottom: 26px;
}
.edgar-hero__title,
.edgar-story h2,
.edgar-contact h2 {
  margin: 0;
  color: var(--edgar-white);
  font-family: var(--edgar-sans);
  font-weight: 200;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.edgar-hero__title {
  font-size: 110px;
  line-height: .955;
  letter-spacing: .01em;
  white-space: nowrap;
}
.edgar-hero__title-line { display: block; }
.edgar-hero__title small {
  display: inline-block;
  margin-left: -5px;
  vertical-align: .14em;
  color: var(--edgar-gold);
  font: italic 500 clamp(12px, .9vw, 17px)/1.18 var(--edgar-serif);
	font-size: 19px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
  transform: translateY(3px);
}
.edgar-hero__intro {
  max-width: 1070px;
  margin-top: 20px !important;
  color: var(--edgar-gold);
  font-size: 37px;
  line-height: 1.25;
  letter-spacing: .012em;
}

.edgar-content {
  width: min(1300px, calc(100% - 18vw));
  margin-left: auto;
  margin-right: auto;
}
.edgar-story h2,
.edgar-contact h2 {
  margin-bottom: 20px;
  font-size: 50px;
  line-height: 1.12;
}
.edgar-story__lead,
.edgar-contact__lead {
  color: var(--edgar-gold);
  font-size: 32px;
  line-height: 1.3;
	font-weight: 500;
  letter-spacing: .02em;
}
.edgar-story__lead { margin-bottom: 35px !important;  font-size: 32px}
.edgar-story__body { max-width: 1300px; }
.edgar-story__body p {
  margin-bottom: 26px;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: .10em;
}
.edgar-story__body p:last-child { margin-bottom: 0; }




/* Présentation : texte sur deux colonnes */

.edgar-story__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 5vw, 90px);
    align-items: start;
}

.edgar-story__column {
    min-width: 0;
}

.edgar-story__column p:last-child {
    margin-bottom: 0;
}

/* Tablette et mobile : une seule colonne */

@media (max-width: 991px) {
    .edgar-story__body {
        grid-template-columns: 1fr;
        row-gap: 26px;
    }
}




/* Contact et Formidable : grille de 2 colonnes, 1 colonne sur mobile. */
.edgar-contact { width: min(1300px, calc(100% - 18vw)); }
.edgar-contact__lead { max-width: 1300px; margin-bottom: 44px !important; }
.edgar-contact__form,
.edgar-contact__form .frm_forms,
.edgar-contact__form .with_frm_style,
.edgar-contact__form form { width: 100%; max-width: 100%; }
.edgar-contact__form .frm_fields_container {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 22px !important;
  row-gap: 28px !important;
}
.edgar-contact__form .frm_fields_container > .frm_form_field {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}
.edgar-contact__form .frm_fields_container > .frm_form_field.frm_full,
.edgar-contact__form .frm_fields_container > .frm_form_field.frm12,
.edgar-contact__form .frm_fields_container > .frm_section_heading,
.edgar-contact__form .frm_fields_container > .frm_error_style {
  grid-column: 1 / -1 !important;
}
.edgar-contact__form .frm_primary_label,
.edgar-contact__form .frm_form_field > label {
  display: block;
  margin: 0 0 5px !important;
  color: var(--edgar-gold) !important;
  font-family: var(--edgar-sans) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}
.edgar-contact__form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
.edgar-contact__form select,
.edgar-contact__form textarea {
  display: block !important;
  width: 100% !important;
  min-height: 32px !important;
  height: 42px !important;
  padding: 5px 10px !important;
  border: 1px solid #1727a8 !important;
  border-radius: 0 !important;
  outline-offset: -1px;
  box-shadow: inset 0px 4px 10px 0px #00000070;
  background: #020d2e !important;
  color: var(--edgar-white) !important;
  font: 400 15px/1.35 var(--edgar-sans) !important;
  letter-spacing: .07em !important;
  resize: none !important;
}
.edgar-contact__form textarea {
  height: auto !important;
  min-height: 42px !important;
  resize: vertical;
}
.edgar-contact__form input::placeholder,
.edgar-contact__form textarea::placeholder { color: rgb(102, 112, 133) !important; opacity: 1; }
.edgar-contact__form input:focus-visible,
.edgar-contact__form textarea:focus-visible,
.edgar-contact__form select:focus-visible {
  outline: 2px solid var(--edgar-gold);
}
.edgar-contact__form .frm_submit {
  grid-column: 2 !important;
  margin: 0 !important;
  display: flex;
  justify-content: stretch;
  align-items: end;
}
.edgar-contact__form .frm_submit button,
.edgar-contact__form .frm_submit input[type="submit"] {
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 6px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--edgar-gold) !important;
  color: var(--edgar-white) !important;
  font: 400 15px/1.3 var(--edgar-sans) !important;
  letter-spacing: .05em !important;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease;
}
.edgar-contact__form .frm_submit button:hover,
.edgar-contact__form .frm_submit input[type="submit"]:hover { filter: brightness(1.15); }
.edgar-contact__form .frm_error,
.edgar-contact__form .frm_error_style,
.edgar-contact__form .frm_message,
.edgar-contact__form .frm_description,
.edgar-form-warning {
  color: var(--edgar-white);
  font: 400 15px/1.5 var(--edgar-serif);
  letter-spacing: 0;
}
.edgar-contact__form .frm_error { margin-top: 5px; color: #ffb8b8; }
.edgar-contact__form .frm_message,
.edgar-contact__form .frm_error_style { padding: 12px; border: 1px solid var(--edgar-gold); background: #041232; }

.edgar-footer {
  position: relative;
  z-index: 1;
  min-height: 140px;
  display: flex;
  align-items: center;
	background: linear-gradient(
	  to bottom,
	  #030E30 0%,
	  #030E30 20%,
	  #020D2B 50%,
	  #020A23 85%,
	  #020A23 100%
	);
  scroll-snap-align: end;
}
.edgar-footer__inner {
	width: min(1300px, calc(100% - 18vw));
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.edgar-footer__brand { display: inline-block; }
.edgar-footer__brand img { width: 173px; height: auto; }
.edgar-footer__linkedin {
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  transition: transform .25s ease;
  transform-origin: center;
}
.edgar-footer__linkedin:hover { transform: scale(1.055); }
.edgar-footer__linkedin img { width: 35px; height: 35px; }
.edgar-footer__linkedin span {
  font: 400 13px/1.22 var(--edgar-serif);
  letter-spacing: 0;
}

/* Magnétisme natif, uniquement quand les 3 sections tiennent à l'écran. */
@media (min-width: 1200px) and (min-height: 800px) and (hover: hover) {
  html:has(.edgar-landing) {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
  }
  body.admin-bar .edgar-section { scroll-margin-top: 32px; }
}

@media (max-width: 1199px) {
  .edgar-hero__content { margin-left: 7vw; width: 84vw; }
  .edgar-hero__photo { width: 52vw; }
  .edgar-hero__intro { max-width: 66vw; }
  .edgar-content, .edgar-contact, .edgar-footer__inner {
    width: min(1000px, calc(100% - 14vw));
    margin-left: 7vw;
  }

  .edgar-hero__logo {
    width: 350px;
    margin-bottom: 16px;
  }
  .edgar-hero__title {
    font-size: 80px;
  }
  .edgar-hero__intro {
    font-size: 32px;
  }
  .edgar-hero__vertical {
    font-size: 16px;
  }
  .edgar-story__lead {
      font-size: 30px;
  }

  .edgar-story__lead,
  .edgar-contact__lead {
      font-size: 24px;
      line-height: 1.3;
  }

  .edgar-story__body p { font-size: 15px; line-height: 1.3; }

}

/* Composition mobile d'après la maquette Figma iPhone fournie. */
@media (max-width: 767px) {
  .edgar-landing {
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: .025em;
  }
  .edgar-section { min-height: 100svh; padding-block: 0; padding-top: 100px; }

  /* Sur mobile : portrait en premier, puis logo et accroche. */
  .edgar-section--hero {
    display: block;
    min-height: 100svh;
    /* Hauteur réelle du portrait mobile (804 × 874), sans espace artificiel. */
    padding: 0;
  }
  .edgar-hero__photo {
    position: relative;
    width: 100%;
    opacity: 1;
    padding-bottom: 22px;
  }
  .edgar-hero__photo picture,
  .edgar-hero__photo img {
    display: block;
    width: 100%;
    height: auto;
  }







  .edgar-hero__vertical {
    display: flex;
    top: 50vh;
    right: 8px;
    z-index: 3;
    gap: 5px;
    font-size: 13px;
    line-height: 1;
  }
  .edgar-hero__vertical .edgar-dot { font-size: 15px; }
  .edgar-hero__content {
    width: calc(100% - 48px);
    margin-inline: 24px;
    transform: none;
  }
  .edgar-hero__logo {
    position: static;
    width: clamp(210px, 64vw, 285px);
    height: auto;
    margin: 0 0 30px;
  }
  .edgar-hero__title {
    font-size: clamp(35px, 11.3vw, 51px);
    line-height: 1.03;
    letter-spacing: -.035em;
    white-space: nowrap;
  }
  .edgar-hero__title small {
    margin-left: 2px;
    font-size: 15px;
    vertical-align: .12em;
    letter-spacing: 0;
  }
  .edgar-hero__intro {
    max-width: 100%;
    margin-top: 22px !important;
    font-size: clamp(18px, 4.9vw, 21px);
    line-height: 1.37;
  }

  .edgar-content,
  .edgar-contact,
  .edgar-footer__inner {
    width: calc(100% - 48px);
    margin-inline: 24px;
  }
  .edgar-story h2,
  .edgar-contact h2 {
    font-size: clamp(29px, 7.8vw, 39px);
    line-height: 1.08;
    margin-bottom: 20px;
  }
  .edgar-story__lead,
  .edgar-contact__lead {
    font-size: 18px;
    line-height: 1.43;
  }
  .edgar-story__lead { margin-bottom: 32px !important; }
  .edgar-story__body p {
    font-size: 15px;
    line-height: 1.57;
    letter-spacing: .035em;
    margin-bottom: 22px;
  }
  .edgar-contact__lead { margin-bottom: 32px !important; }
  .edgar-contact__form .frm_fields_container {
    grid-template-columns: 1fr !important;
    row-gap: 18px !important;
  }
  .edgar-contact__form .frm_submit {
    grid-column: 1 !important;
    margin-top: 10px !important;
  }

  /* Pied de page centré en colonne, conforme à la maquette mobile. */
  .edgar-footer {
    min-height: 270px;
    padding-block: 35px 40px;
  }
  .edgar-footer__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
  }
  .edgar-footer__brand img { width: 165px; margin-left: 4%;}
  .edgar-footer__linkedin {
    flex-direction: column;
    gap: 17px;
    text-align: center;
  }
  .edgar-footer__linkedin img { width: 35px; height: 35px; }
  .edgar-footer__linkedin span { font-size: 13px; line-height: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.edgar-landing) { scroll-snap-type: none !important; }
  .edgar-bg--star { transform: none !important; will-change: auto; }
  .edgar-footer__linkedin, .edgar-contact__form .frm_submit button { transition: none !important; }
}

.with_frm_style .frm_required {
    color: var(--edgar-gold) !important;
}


/* Formidable — bloc d'erreurs */

.frm_forms .frm_error_style {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 35px !important;
    padding: 22px 26px !important;
    background: rgba(9, 27, 75, 0.9) !important;
    border: 0 !important;
    border-left: 3px solid #A67800 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: "Noto Serif", serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Titre du message */

.frm_forms .frm_error_style > span {
    display: block;
    margin-bottom: 16px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
    color: #fff;
}

/* Liste des erreurs */

.frm_forms .frm_error_style ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 25px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.frm_forms .frm_error_style li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 13px;
    line-height: 1.5;
}

.frm_forms .frm_error_style li::before {
    content: "—";
    display: inline;
    margin-right: 7px;
    color: #A67800;
}

/* Liens vers les champs */

.frm_forms .frm_error_style a.frm_error_link {
    color: #d8dce8 !important;
    text-decoration: none !important;
    font-weight: 400;
    transition: color 0.2s ease;
}

.frm_forms .frm_error_style a.frm_error_link:hover,
.frm_forms .frm_error_style a.frm_error_link:focus-visible {
    color: #A67800 !important;
    text-decoration: underline !important;
}

/* Mobile */

@media (max-width: 767px) {
    .frm_forms .frm_error_style {
        padding: 18px !important;
        margin-bottom: 25px !important;
				outline: none !important;
    }

    .frm_forms .frm_error_style > span {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .frm_forms .frm_error_style ul {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .frm_forms .frm_error_style li {
        font-size: 12px;
    }
}


/* Formidable — message de succès */

.frm_forms .frm_message {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 35px !important;
    padding: 22px 26px !important;
    background: rgb(7 31 100) !important;
    border: 1px solid #271E96 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: #fff !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
}

.with_frm_style .frm_message,
.frm_success_style {
		font-size: 24px !important;
}

/* Éventuels paragraphes ajoutés par Formidable */

.frm_forms .frm_message p {
    margin: 0 !important;
    color: inherit !important;
    font: inherit;
}


/* Mobile */

@media (max-width: 767px) {
    .frm_forms .frm_message {
        padding: 18px !important;
        margin-bottom: 25px !important;
        font-size: 16px !important;
    }

}















/* Formulaire de contact — nouvelle grille */
/* Formulaire : disposition desktop */

.edgar-contact__form .frm_fields_container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
        "nom           telephone"
        "entreprise    adresse_entreprise"
        "date          lieu"
        "type          description"
        "source        description"
        "obligatoires  valider" !important;
    align-items: stretch;
}

/* Attribution des champs */

.edgar-contact__form #frm_field_12_container {
    grid-area: nom !important;
}

.edgar-contact__form #frm_field_13_container {
    grid-area: telephone !important;
}

.edgar-contact__form #frm_field_16_container {
    grid-area: entreprise !important;
}

.edgar-contact__form #frm_field_17_container {
    grid-area: adresse_entreprise !important;
}

.edgar-contact__form #frm_field_22_container {
    grid-area: date !important;
}

.edgar-contact__form #frm_field_15_container {
    grid-area: lieu !important;
}

.edgar-contact__form #frm_field_18_container {
    grid-area: type !important;
}

.edgar-contact__form #frm_field_19_container {
    grid-area: source !important;
}

/* Description sur deux lignes */

.edgar-contact__form #frm_field_23_container {
    grid-area: description !important;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.edgar-contact__form #frm_field_23_container textarea {
    flex: 1;
    min-height: 0;
    height: 100%;
    resize: vertical;
}

/* Champs obligatoires et bouton */

.edgar-contact__form #frm_field_21_container {
    grid-area: obligatoires !important;
}

.edgar-contact__form #frm_field_20_container {
    grid-area: valider !important;
}

/* Responsive : une seule colonne */

@media (max-width: 767px) {

    .edgar-contact__form .frm_fields_container {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "nom"
            "telephone"
            "entreprise"
            "adresse_entreprise"
            "date"
            "lieu"
            "type"
            "source"
            "description"
            "obligatoires"
            "valider" !important;
    }

    .edgar-contact__form #frm_field_23_container textarea {
        flex: initial;
        height: auto;
        min-height: 150px;
    }
}

/* Mention champs obligatoires */


.edgar-contact__form #frm_field_21_container {
    margin: 0;
    padding: 0;
    color: var(--edgar-gold);
    font-family: var(--edgar-sans);
    font-size: 13px;
    line-height: 1.4;
}


/* Formidable — suppression de l'apparence native Safari */

.edgar-contact__form select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' fill='none' stroke='%23A67800' stroke-width='1.5'/%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 14px 9px !important;

    border-radius: 0 !important;
    box-shadow: none !important;

    padding-right: 42px !important;
    color: var(--edgar-white) !important;
    cursor: pointer;
}

/* Apparence au focus */

.edgar-contact__form select:focus {
    outline: 2px solid var(--edgar-gold);
    outline-offset: 0;
}
